X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=Fuse.pm;h=b87f1fad4785244da0ac263d2389400ce78f1859;hb=6ab5d2b9097f10b2c11567047f7809193c7315ea;hp=98821e186d907e9bc5353833163d23a947a060a9;hpb=54f1ee63f81bc2943fab158b6034c680654b0981;p=perl-fuse.git diff --git a/Fuse.pm b/Fuse.pm index 98821e1..b87f1fa 100644 --- a/Fuse.pm +++ b/Fuse.pm @@ -21,14 +21,14 @@ our @ISA = qw(Exporter DynaLoader); # If you do not need this, moving things directly into @EXPORT or @EXPORT_OK # will save memory. our %EXPORT_TAGS = ( - 'all' => [ qw(XATTR_CREATE XATTR_REPLACE) ], + 'all' => [ qw(XATTR_CREATE XATTR_REPLACE fuse_get_context) ], 'xattr' => [ qw(XATTR_CREATE XATTR_REPLACE) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our @EXPORT = (); -our $VERSION = '0.07'; +our $VERSION = '0.09_2'; sub AUTOLOAD { # This AUTOLOAD is used to 'autoload' constants from the constant() @@ -234,6 +234,15 @@ threads::shared.) =back +=head3 Fuse::fuse_get_context + + use Fuse "fuse_get_context"; + my $caller_uid = fuse_get_context()->{"uid"}; + my $caller_gid = fuse_get_context()->{"gid"}; + my $caller_pid = fuse_get_context()->{"pid"}; + +Access context information about the current Fuse operation. + =head2 FUNCTIONS YOUR FILESYSTEM MAY IMPLEMENT =head3 getattr