[Mono-dev] Announce: Mono.Fuse 0.4.0

Jonathan Pryor jonpryor at vt.edu
Sat Jan 27 17:18:27 EST 2007


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





More information about the Mono-devel-list mailing list