9fs: restore venti/vac.

This commit is contained in:
stanley lieber 2011-04-23 16:28:58 +00:00
parent a0befd6cb9
commit 92cab4a2e0

View file

@ -44,6 +44,21 @@ case sourcesdump
case sourcessnap case sourcessnap
9fs sources 9fs sources
mount -n /srv/sources /n/sourcessnap main/snapshot mount -n /srv/sources /n/sourcessnap main/snapshot
# arbitrary venti archives
case vac:*
vacfs <{echo $1}
case *.vac
if (test -e $1)
score=$1
if not if (! ~ $1 /* && test -e $home/lib/vac/$1)
score=$home/lib/vac/$1
if not if (! ~ $1 /* && test -e /lib/vac/$1)
score=/lib/vac/$1
if not {
echo $0: $1: no such score file >[1=2]
exit 'no score file'
}
vacfs -m /n/`{basename $1 .vac} `{cat $score}
case wiki case wiki
srv -m 'net!plan9.bell-labs.com!wiki' wiki /mnt/wiki srv -m 'net!plan9.bell-labs.com!wiki' wiki /mnt/wiki
case * case *