Adding this case to 9fs allows users to store vac scores (as in vac's -f) in /lib/scores or $home/lib/scores and run '9fs whatever.vac' to mount them using vacfs. I've been using this for a few months to get at backups of various unix systems, and it's a very nice, comfortable, simple addition that I think is general enough to warrant inclusion in the default 9fs. Notes: Wed Jan 20 16:13:40 EST 2010 geoff done a little differently to mesh with our existing 9fs. Reference: /n/sources/patch/applied/9fs-vac-scores Date: Wed Jun 3 22:16:41 CES 2009 Signed-off-by: a@9srv.net Reviewed-by: geoff --- /rc/bin/9fs Wed Jun 3 22:06:17 2009 +++ /rc/bin/9fs Wed Jun 3 22:06:15 2009 @@ -29,6 +29,14 @@ mount -n /srv/sources /n/sourcessnap main/snapshot case wiki srv -m 'net!plan9.bell-labs.com!wiki' wiki /mnt/wiki +# Lookup archives in ($home)/lib/scores +case *.vac + if(test -e $home/lib/scores/$1) + vacfs -S $1 $home/lib/scores/$1 && mount /srv/$1 /n/$1 + if not if(test -e /lib/scores/$1) { + vacfs -S $1 /lib/scores/$1 && mount /srv/$1 /n/$1 + } + if not echo 'Don''t know how to mount' $1 case * switch($#*){ case 1