[Mono-list] ANN: Linux filesystems in C# (FUSE wrapper)
kamel Derouiche
kamelderouiche at yahoo.com
Fri May 13 17:47:52 EDT 2005
--- Valient Gough <valient at gmail.com> wrote:
> Announcement for SULF - a C# interface to FUSE
> (fuse.sf.net) which
> allows the creation of Linux filesystems in C#.
> Why? Because I
> could. It has received major updates over the last
> few weeks and has
> the beginnings of high-level interfaces, as well as
> pass-through
> wrappers to make virtual filesystems easier to
> implement.
>
> The project documentation and download links are
> available at
> http://pobox.com/~vgough/sulf
>
> An example filesystem (using high-level map
> interface - see
> examples/HelloFS.cs):
>
> ----
>
> Sulf.MapFS root = new Sulf.MapFS();
> // populate the directory with some files -
> // and a tmp directory which is really just a
> wrapper for /var/tmp
> root["hello"] = "Hello world!\n";
> root["README"] =
> "This file comes from the 'hello' filesystem
> example.\n"
> +"It is part of the SULF C# project which builds
> on FUSE.\n"
> +"For more information, see
> http://pobox.com/~vgough/sulf \n"
> +"\n"
> +"Also, try \"cat hello\"\n";
> root["tmp"] = new PassthruDirNode( "tmp", "/var/tmp"
> );
>
> // mount the filesystem in /tmp/hellofs
> Channel channel = Sulf.Mounter.Mount("HelloFS",
> root, "/tmp/hellofs");
> channel.EventLoop();
>
> ----
>
> > ls /tmp/hellofs
> hello README tmp
>
> > cat /tmp/hellofs/README
> This file comes from the 'hello' filesystem example.
> It is part of the SULF C# project which builds on
> FUSE.
> For more information, see
> http://pobox.com/~vgough/sulf
>
> Also, try "cat hello"
>
> > ls -lad /tmp/hellofs/tmp
> drwxrwxrwt 9 root root 1584 2005-05-12 23:49
> /tmp/hellofs/tmp
> > ls -lad /var/tmp
> drwxrwxrwt 9 root root 1584 2005-05-12 23:49
> /var/tmp
that would be very interest if that goes for UFS2 of
NetBSD or FreeBSD
Thank you
Kamel
NetBSD is very JIHBED
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Mono-list
mailing list