On Sat, 2007-01-27 at 21:11 +0100, pablosantosluac wrote:
> Is it possible to know the user id on each file system operation? Purpose 
> would be showing different contents to different users...

Yes, but no.

Yes, this is/should be possible:
Mono.Fuse.FileSystem.GetOperationContext().UserId would contain this
information.

The "No" is that Release 0.4.0 contained a marshaling bug, so that
UserId is always 0.  The Git tree has this fixed, so if you grab
git-HEAD things should work for you.

Alternatively, you can add [In, Out] to the `context' parameter in
Mono.Fuse.FileSystem.mfh_fuse_get_context(), e.g changing
src/Mono.Fuse/Mono.Fuse/FileSystem.cs line 313 to:

        private static extern int mfh_fuse_get_context (
                [In, Out] FileSystemOperationContext context
        );

 - Jon


_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to