2 # 9fs filesystem [mountpoint] - srv & mount filesystem, usually from plan 9
7 echo usage: 9fs service '[mountpoint]' >[1=2]
10 part=`{ls /dev/fs/9fat /dev/sd*/9fat >[2]/dev/null}
12 echo 'no 9fat partition found' >[1=2]
18 if(! test -f /srv/dos)
19 dossrv >/dev/null </dev/null >[2]/dev/null
21 unmount /n/9fat >/dev/null >[2]/dev/null
22 mount -c /srv/dos /n/9fat $part
23 unmount /n/9 >/dev/null >[2]/dev/null
24 mount -c /srv/dos /n/9 $part
26 if(! test -f /srv/kfs)
28 mount -c /srv/kfs /n/kfs
30 mount /srv/boot /n/dump dump >[2]/dev/null ||
31 mount /srv/boot /n/dump main/archive ||
32 mount /srv/boot /n/dump dump # again to print error
34 mount /srv/boot /n/snap main/snapshot
36 mount -C /srv/boot /n/other other
37 case juke # ye olde file server
38 srv -q il!jukefs && mount /srv/il!jukefs /n/juke
40 srv -nq tcp!sources.cs.bell-labs.com sources /n/sources
43 mount -n /srv/sources /n/sourcesdump main/archive
46 mount -n /srv/sources /n/sourcessnap main/snapshot
47 # arbitrary venti archives
53 if not if (! ~ $1 /* && test -e $home/lib/vac/$1)
54 score=$home/lib/vac/$1
55 if not if (! ~ $1 /* && test -e /lib/vac/$1)
58 echo $0: $1: no such score file >[1=2]
61 vacfs -m /n/`{basename $1 .vac} `{cat $score}
63 srv -m 'net!plan9.bell-labs.com!wiki' wiki /mnt/wiki