fshalt: remove kfs support

This commit is contained in:
cinap_lenrek 2015-08-21 19:40:29 +02:00
parent 985b2457cd
commit 3db2012126
2 changed files with 2 additions and 28 deletions

View file

@ -22,21 +22,9 @@ unmount /mnt/consoles >[2]/dev/null
kill consolefs | rc # don't compete with /mnt/consoles kill consolefs | rc # don't compete with /mnt/consoles
sleep 1 sleep 1
k=`{ls /srv/kfs*cmd >[2]/dev/null|sort -r}
c=`{ls /srv/cwfs*cmd >[2]/dev/null} c=`{ls /srv/cwfs*cmd >[2]/dev/null}
h=`{ls /srv/hjfs*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 # for scram, don't scram other systems
bind -b '#P' /dev bind -b '#P' /dev
if(! ~ $reboot yes){ if(! ~ $reboot yes){
@ -49,10 +37,7 @@ if(! ~ $reboot yes){
# halting (binaries we run can't be on the fs we're halting) # halting (binaries we run can't be on the fs we're halting)
ramfs ramfs
builtin cd /tmp builtin cd /tmp
cp /bin/dial/expect /tmp
cp /bin/disk/kfscmd /tmp
cp /bin/echo /tmp cp /bin/echo /tmp
cp /bin/iostats /tmp
mkdir /tmp/lib mkdir /tmp/lib
cp /rc/lib/rcmain /tmp/lib cp /rc/lib/rcmain /tmp/lib
cp /bin/ns /tmp cp /bin/ns /tmp
@ -68,15 +53,6 @@ bind /tmp /bin
fn x { fn x {
echo echo
echo -n halting... 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){ for (i in $c){
echo -n $i... echo -n $i...
echo halt >>$i echo halt >>$i

View file

@ -16,11 +16,9 @@ fshalt, scram, reboot \- halt any local file systems and optionally shut down or
.SH DESCRIPTION .SH DESCRIPTION
.I Fshalt .I Fshalt
syncs and halts all local syncs and halts all local
.IR cwfs (4), .IR cwfs (4)
.IR hjfs (4),
.IR venti (8),
and and
.IR kfs (4) .IR hjfs (4)
servers. servers.
If given If given
.BR -r , .BR -r ,