diff options
author | Mark Glines <mark@glines.org> | 2002-02-06 15:20:11 +0000 |
---|---|---|
committer | Mark Glines <mark@glines.org> | 2002-02-06 15:20:11 +0000 |
commit | 8ed09245417578c923df998bdc6a95412ad833c7 (patch) | |
tree | 68b9410e03d073d81a36d241d0a2d0e029314f2e /perl/example.pl | |
parent | f782fc4376e8b4bbe86a00d62bb1bbcd821a5b1c (diff) | |
download | libfuse-8ed09245417578c923df998bdc6a95412ad833c7.tar.gz |
some fixes - next up is read()
Diffstat (limited to 'perl/example.pl')
-rwxr-xr-x | perl/example.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/perl/example.pl b/perl/example.pl index d01278c..9ba1117 100755 --- a/perl/example.pl +++ b/perl/example.pl @@ -48,14 +48,17 @@ sub e_getattr { sub e_getdir { # return as many text filenames as you like, followed by the retval. + print((scalar keys %files)."\n"); return (keys %files),0; } sub e_open { # VFS sanity check; it keeps all the necessary state, not much to do here. my ($file) = filename_fixup(shift); + print("open called\n"); return -ENOENT() unless exists($files{$file}); return -EISDIR() unless exists($files{$file}{cont}); + print("open ok\n"); return 0; } @@ -82,6 +85,6 @@ Fuse::main( getdir=>\&e_getdir, open=>\&e_open, statfs=>\&e_statfs, - #read=>\&e_read, + read=>\&e_read, #debug=>1, threaded=>0 ); |