OpenBSD xfs noofs

Christopher christopher at 0x90.org
Thu Nov 17 16:21:18 CET 2005


On Thu, Nov 17, 2005 at 02:05:08AM +0100, Tomas Olsson wrote:
> Pailloncy Jean-Gerard <jg at rilk.com> writes:
> Any code out there? I know Keso has several versions...
> And http://www.0x90.org/~christopher/xfs/ may help some.

And David Leonard's ftpfs:
	http://www.adaptive-enterprises.com.au:81/~d/software/ftpfs/
It's written for an older version of arla so it won't compile, but there
are some useful bits I'll mention below.

> The normal way is to start with arlad (is it "afsd" in OpenBSD?), use a few

src/usr.bin/afs/src

> relevant snippets and ignore the AFS backend etc. Interesting files are
> messages.c, xfs.c and kernel.c. You need to create directories (at least a
> simple root for starters) in BSD dirent format, see bsd-subr.c.

look at dir.c from ftpfs as well, his dir writing implementation is
easier to understand than the one in arla.

> I think a reasonable "hello world" (ls /yourroot) needs a VERSION message
> exchange, followed by INSTALLROOT and INSTALLDATA for that node. xfs is
> likely to ask for them (GETROOT and GETDATA). I haven't tried this, so
> there may be more needed. You'll probably want to do 'fs xfsdeb all' to see
> what's going on in the kernel.

Only the VERSION is required at startup.  Arla will send a GETROOT the
moment you touch /yourroot.  After that, depending on how you touch
/yourroot, arla will likely send either an OPEN (ls /yourroot) or
GETNODE (cd /yourroot/somedir).

--chris





More information about the Arla-drinkers mailing list