21 |
# If you do not need this, moving things directly into @EXPORT or @EXPORT_OK |
# If you do not need this, moving things directly into @EXPORT or @EXPORT_OK |
22 |
# will save memory. |
# will save memory. |
23 |
our %EXPORT_TAGS = ( |
our %EXPORT_TAGS = ( |
24 |
'all' => [ qw(XATTR_CREATE XATTR_REPLACE) ], |
'all' => [ qw(XATTR_CREATE XATTR_REPLACE fuse_get_context) ], |
25 |
'xattr' => [ qw(XATTR_CREATE XATTR_REPLACE) ] |
'xattr' => [ qw(XATTR_CREATE XATTR_REPLACE) ] |
26 |
); |
); |
27 |
|
|
28 |
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); |
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); |
29 |
|
|
30 |
our @EXPORT = (); |
our @EXPORT = (); |
31 |
our $VERSION = '0.07_3'; |
our $VERSION = '0.09'; |
32 |
|
|
33 |
sub AUTOLOAD { |
sub AUTOLOAD { |
34 |
# This AUTOLOAD is used to 'autoload' constants from the constant() |
# This AUTOLOAD is used to 'autoload' constants from the constant() |
79 |
rename link chmod chown truncate utime open read write statfs |
rename link chmod chown truncate utime open read write statfs |
80 |
flush release fsync setxattr getxattr listxattr removexattr); |
flush release fsync setxattr getxattr listxattr removexattr); |
81 |
my @subs = map {undef} @names; |
my @subs = map {undef} @names; |
82 |
my @validOpts = qw(ro allow_other default_permissions fsname use_ino); |
my @validOpts = qw(ro allow_other default_permissions fsname use_ino nonempty); |
83 |
my $tmp = 0; |
my $tmp = 0; |
84 |
my %mapping = map { $_ => $tmp++ } @names; |
my %mapping = map { $_ => $tmp++ } @names; |
85 |
my %optmap = map { $_ => 1 } @validOpts; |
my %optmap = map { $_ => 1 } @validOpts; |
234 |
|
|
235 |
=back |
=back |
236 |
|
|
237 |
|
=head3 Fuse::fuse_get_context |
238 |
|
|
239 |
|
use Fuse "fuse_get_context"; |
240 |
|
my $caller_uid = fuse_get_context()->{"uid"}; |
241 |
|
my $caller_gid = fuse_get_context()->{"gid"}; |
242 |
|
my $caller_pid = fuse_get_context()->{"pid"}; |
243 |
|
|
244 |
|
Access context information about the current Fuse operation. |
245 |
|
|
246 |
=head2 FUNCTIONS YOUR FILESYSTEM MAY IMPLEMENT |
=head2 FUNCTIONS YOUR FILESYSTEM MAY IMPLEMENT |
247 |
|
|
248 |
=head3 getattr |
=head3 getattr |