Skip navigation.

outer space is getting closer…

, ,

Since my first experiments with the 9P filesystem on linux, a number of things changed:

Several bugs got fixed both in the client and the server code, and things start looking brighter for use. The main hurdle for deployment is, at this very stage, (the lack of) security support - not a small one, though… Any serious deployment has to wait for this feature to be fully implemented, but experimenting in safe environments can already be done.

npfs

A special note is needed for npfs - there is no ready package yet, and you'll need to get it from the CVS repository:

$ cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/npfs login
$ cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/npfs co -P npfs

And now the trouble might start: the configuration script and the Makefile do not catch your environment well enough to allow for the simple and well-known `./configure` and `make`. I do not know how to solve problems on anything but Linux, and I do not know how to solve them for various environments.

First thing, if you are compiling on Linux: don't run `./configure`: it will only break stuff that else might have worked. Specifically, you might need to check in the Makefiles that libnpfs/mount-Linux.c gets compiled.

I myself did not have libaio installed: the feature is not protected well enough, so you manually need to make sure not to reference it:

In the file fs/ufs.c comment out the block:

//#if SYSNAME == Linux
//#define NPFS_USE_AIO
//#define NPFS_USE_AIO
//#endif

and then manually purge every Makefile of the string -laio. You are now ready to go, and `make` will provide you a npfs server.

Get it going!

The new npfs is much more flexible than the old u9fs and easily allows you to mount the 9P filesystem in userspace (replace the username me with your own username):

  1. `mkdir ~/mnt/9/`;
  2. `./npfs -s -p 5640&`;
  3. `sudo mount -t 9P 10.0.0.1 /home/me/mnt/9 -o port=5640,name=me&` - sudo here is only needed because of how mount is designed on Unix systems; I am confident that we'll soon see some fuse way of mounting in userspace;
  4. `ls ~/mnt/9/`.

Have fun!

ssh brute force attack annoyancesine qua non

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.

December 2009
S M T W T F S
November 2009January 2010
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31