2 # 9fs filesystem [mountpoint] - srv & mount filesystem, usually from plan 9
7 echo usage: 9fs service '[mountpoint]' >[1=2]
11 part=`{ls $2 >[2]/dev/null}
13 part=`{ls /dev/fs/9fat /dev/sd*/9fat >[2]/dev/null}
15 echo 'no 9fat partition found' >[1=2]
21 if(! test -f /srv/dos)
22 dossrv >/dev/null </dev/null >[2]/dev/null
24 unmount /n/9fat >/dev/null >[2]/dev/null
25 mount -c /srv/dos /n/9fat $part
26 unmount /n/9 >/dev/null >[2]/dev/null
27 mount -c /srv/dos /n/9 $part
29 if(! test -f /srv/kfs)
31 mount -c /srv/kfs /n/kfs
33 mount /srv/boot /n/dump dump >[2]/dev/null ||
34 mount /srv/boot /n/dump main/archive ||
35 mount /srv/boot /n/dump dump # again to print error
37 mount /srv/boot /n/snap main/snapshot
39 mount -C /srv/boot /n/other other
40 case juke # ye olde file server
41 srv -q il!jukefs && mount /srv/il!jukefs /n/juke
43 srv -nqC tcp!sources.cs.bell-labs.com sources /n/sources
46 mount -nC /srv/sources /n/sourcesdump main/archive
49 mount -nC /srv/sources /n/sourcessnap main/snapshot
50 # arbitrary venti archives
56 if not if (! ~ $1 /* && test -e $home/lib/vac/$1)
57 score=$home/lib/vac/$1
58 if not if (! ~ $1 /* && test -e /lib/vac/$1)
61 echo $0: $1: no such score file >[1=2]
64 vacfs -m /n/`{basename $1 .vac} `{cat $score}
66 srv -m 'net!plan9.bell-labs.com!wiki' wiki /mnt/wiki