Re: [Mono-list] ANN: Linux filesystems in C# (FUSE wrapper)

2005-05-13 Thread kamel Derouiche

--- Valient Gough [EMAIL PROTECTED] 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 
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] ANN: Linux filesystems in C# (FUSE wrapper)

2005-05-12 Thread Valient Gough
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


regards,
Valient
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list