[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-devel-list
Subject:    Re: [Mono-dev] Announce: Mono.Fuse 0.4.0
From:       Jonathan Pryor <jonpryor () vt ! edu>
Date:       2007-01-27 22:18:27
Message-ID: 1169936307.26423.36.camel () melchior ! magi
[Download RAW message or body]

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-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic