inst: ask to ream the filesystem in mounthjfs
This commit is contained in:
parent
a1f69ed555
commit
929441dd26
1 changed files with 12 additions and 1 deletions
|
@ -28,12 +28,23 @@ case go
|
||||||
fsflags=(-m $rd)
|
fsflags=(-m $rd)
|
||||||
export fsflags
|
export fsflags
|
||||||
|
|
||||||
|
ream=no
|
||||||
|
if(! ~ $fstype `{fstype $fs})
|
||||||
|
ream=yes
|
||||||
|
prompt -d $ream 'Ream the filesystem?' yes no
|
||||||
|
ream=$rd
|
||||||
|
|
||||||
log Starting $fstype file server for $fs
|
log Starting $fstype file server for $fs
|
||||||
unmount /n/newfs >[2]/dev/null
|
unmount /n/newfs >[2]/dev/null
|
||||||
echo halt >>/srv/$service.cmd >[2]/dev/null
|
echo halt >>/srv/$service.cmd >[2]/dev/null
|
||||||
rm -f /srv/$service /srv/$service.cmd
|
rm -f /srv/$service /srv/$service.cmd
|
||||||
|
|
||||||
hjfs -n $service $fsflags -Srf $fs
|
if(~ $ream yes){
|
||||||
|
hjfs -n $service $fsflags -Srf $fs
|
||||||
|
}
|
||||||
|
if not {
|
||||||
|
hjfs -n $service $fsflags -Sf $fs
|
||||||
|
}
|
||||||
|
|
||||||
log Configuring $fstype file server for $fs
|
log Configuring $fstype file server for $fs
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue