Re:Inferno, Part 3: Let's Make a Filesystem
by 0x006A on Monday August 24, 2015 @12:53PM
(#10111193)
but why is FUSE used more often?
Re:Inferno, Part 3: Let's Make a Filesystem
by vezzy-fnord on Monday August 24, 2015 @12:59PM
(#10111256)
FUSE is an informally specified one-stop library that explicitly targets the Linux VFS, so it might be considered more convenient for whatever reason. There's also a general lack of knowledge about Plan 9 and Inferno on anything beyond a superficial level, though this might be improving.
9P is a small generic protocol that is often independently implemented because of its simplicity, so there are many heterogenous libraries for it.
However, FUSE implementations are actively maintained for all the BSDs and OS X as well.
Re:Inferno, Part 3: Let's Make a Filesystem
by vezzy-fnord on Monday August 24, 2015 @08:42PM
(#10113736)
Which required significant kernel additions in the case of the BSDs, and is a third-party kext for OS X.
In contrast, 9P is just a byte stream protocol that ranges from weekend project implementations in ~1000 LoC (yet still perfectly usable) to full strength client-server libraries. It's much more versatile and can be done entirely in userspace without special kernel cooperation beyond a basic POSIX runtime.
Re:Inferno, Part 3: Let's Make a Filesystem
by 0xdeadbeefbabe on Monday August 24, 2015 @12:55PM
(#10111208)
What's the typical way to handle transport security on 9p2000 or 9p?
Re:Inferno, Part 3: Let's Make a Filesystem
by vezzy-fnord on Monday August 24, 2015 @01:11PM
(#10111367)
See for instance: http://plan9.bell-labs.com/wiki/plan9/9p_services_using_srv,...
TLS tunneling is common. v9fs and diod give SSH port forwarding as an option. It's very generic, so the options are plentiful. 9P is formally transport-agnostic, from what I recall. Plan 9 natively preferred IL over TCP for a while before officially deprecating it around 2003.
It's just SSL; you can get more information at http://plan9.bell-labs.com/sys/doc/auth.html. There is also factotum, which serves a purpose somewhere between ssh-agent and an OS X-style Keychain.
Either way, it's much more elegant and portable than something like FUSE.