From 3e3d081d28ff60331d791ae9bc4e1f8d98701d86 Mon Sep 17 00:00:00 2001 From: Mark Glines Date: Mon, 11 Mar 2002 12:07:47 +0000 Subject: no longer link against efence add documentation for Fuse::main() and the optional flags (and mountpoint) fix the multithreading/debug flag stuff turn off multithreading by default (makes read() stable!) --- perl/loopback.pl | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'perl/loopback.pl') diff --git a/perl/loopback.pl b/perl/loopback.pl index 4a531e2..c055db5 100644 --- a/perl/loopback.pl +++ b/perl/loopback.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/debugperl use strict; use Fuse; @@ -104,7 +104,25 @@ sub x_mknod { my ($mountpoint) = ""; $mountpoint = shift(@ARGV) if @ARGV; -Fuse::main(mountpoint=>$mountpoint, getattr=>\&x_getattr, readlink=>\&x_readlink, getdir=>\&x_getdir, mknod=>\&x_mknod, - mkdir=>\&x_mkdir, unlink=>\&x_unlink, rmdir=>\&x_rmdir, symlink=>\&x_symlink, rename=>\&x_rename, link=>\&x_link, - chmod=>\&x_chmod, chown=>\&x_chown, truncate=>\&x_truncate, utime=>\&x_utime, open=>\&x_open, read=>\&x_read, write=>\&x_write +Fuse::main( + unthreaded=>1, + debug=>1, + mountpoint=>$mountpoint, + getattr=>\&x_getattr, + readlink=>\&x_readlink, + getdir=>\&x_getdir, + mknod=>\&x_mknod, + mkdir=>\&x_mkdir, + unlink=>\&x_unlink, + rmdir=>\&x_rmdir, + symlink=>\&x_symlink, + rename=>\&x_rename, + link=>\&x_link, + chmod=>\&x_chmod, + chown=>\&x_chown, + truncate=>\&x_truncate, + utime=>\&x_utime, + open=>\&x_open, + read=>\&x_read, + write=>\&x_write ); -- cgit v1.2.3