diff options
author | stanley lieber <stanley.lieber@gmail.com> | 2011-04-23 16:28:58 +0000 |
---|---|---|
committer | stanley lieber <stanley.lieber@gmail.com> | 2011-04-23 16:28:58 +0000 |
commit | 92cab4a2e0183b9977861b86a244027d52b9c761 (patch) | |
tree | 1346aa0a37b8d20b168936c0da8e5d615e6ae35a /rc/bin/9fs | |
parent | a0befd6cb9e9918c7de2ab9fdd650d1050bac353 (diff) | |
download | plan9front-92cab4a2e0183b9977861b86a244027d52b9c761.tar.xz |
9fs: restore venti/vac.
Diffstat (limited to 'rc/bin/9fs')
-rwxr-xr-x | rc/bin/9fs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/rc/bin/9fs b/rc/bin/9fs index 796ef79ec..47b4083e6 100755 --- a/rc/bin/9fs +++ b/rc/bin/9fs @@ -44,6 +44,21 @@ case sourcesdump case sourcessnap 9fs sources 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 srv -m 'net!plan9.bell-labs.com!wiki' wiki /mnt/wiki case * |