[Mono-dev] Announce: Mono.Fuse 0.4.0
pablosantosluac at terra.es
Sun May 13 12:53:37 EDT 2007
I've tried with 0.4.1 but I don't see the GetOperationContext method...
BTW, I'm impressed about how easy is implementing a filesystem using
Mono/Fuse... Great! I think it is good for implementation purposes, but also
the best way to teach something interesting in, for instance, an operating
systems course... I hope to come with something interesting pretty soon ...
----- Original Message -----
From: "Jonathan Pryor" <jonpryor at vt.edu>
To: "pablosantosluac" <pablosantosluac at terra.es>
Cc: "mono-devel-list" <mono-devel-list at ximian.com>; "Mono List"
<mono-list at ximian.com>
Sent: Sunday, January 28, 2007 12:18 AM
Subject: Re: [Mono-dev] Announce: Mono.Fuse 0.4.0
> 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
> 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