fshalt: remove kfs support
This commit is contained in:
parent
985b2457cd
commit
3db2012126
2 changed files with 2 additions and 28 deletions
|
@ -22,21 +22,9 @@ unmount /mnt/consoles >[2]/dev/null
|
|||
kill consolefs | rc # don't compete with /mnt/consoles
|
||||
sleep 1
|
||||
|
||||
k=`{ls /srv/kfs*cmd >[2]/dev/null|sort -r}
|
||||
c=`{ls /srv/cwfs*cmd >[2]/dev/null}
|
||||
h=`{ls /srv/hjfs*cmd >[2]/dev/null}
|
||||
|
||||
for (i in $k){
|
||||
echo -n $i...
|
||||
switch($i){
|
||||
case /srv/kfs.cmd
|
||||
disk/kfscmd sync
|
||||
case *
|
||||
disk/kfscmd -n `{echo $i | sed -n 's%/srv/kfs.(.*).cmd%\1%p'} sync
|
||||
}
|
||||
sleep 2
|
||||
}
|
||||
|
||||
# for scram, don't scram other systems
|
||||
bind -b '#P' /dev
|
||||
if(! ~ $reboot yes){
|
||||
|
@ -49,10 +37,7 @@ if(! ~ $reboot yes){
|
|||
# halting (binaries we run can't be on the fs we're halting)
|
||||
ramfs
|
||||
builtin cd /tmp
|
||||
cp /bin/dial/expect /tmp
|
||||
cp /bin/disk/kfscmd /tmp
|
||||
cp /bin/echo /tmp
|
||||
cp /bin/iostats /tmp
|
||||
mkdir /tmp/lib
|
||||
cp /rc/lib/rcmain /tmp/lib
|
||||
cp /bin/ns /tmp
|
||||
|
@ -68,15 +53,6 @@ bind /tmp /bin
|
|||
fn x {
|
||||
echo
|
||||
echo -n halting...
|
||||
for (i in $k){
|
||||
echo -n $i...
|
||||
switch($i){
|
||||
case /srv/kfs.cmd
|
||||
kfscmd halt
|
||||
case *
|
||||
kfscmd -n `{echo $i | sed -n 's%/srv/kfs.(.*).cmd%\1%p'} halt
|
||||
}
|
||||
}
|
||||
for (i in $c){
|
||||
echo -n $i...
|
||||
echo halt >>$i
|
||||
|
|
|
@ -16,11 +16,9 @@ fshalt, scram, reboot \- halt any local file systems and optionally shut down or
|
|||
.SH DESCRIPTION
|
||||
.I Fshalt
|
||||
syncs and halts all local
|
||||
.IR cwfs (4),
|
||||
.IR hjfs (4),
|
||||
.IR venti (8),
|
||||
.IR cwfs (4)
|
||||
and
|
||||
.IR kfs (4)
|
||||
.IR hjfs (4)
|
||||
servers.
|
||||
If given
|
||||
.BR -r ,
|
||||
|
|
Loading…
Reference in a new issue