[4740] in Athena Bugs
attach (VS6.4R)
daemon@ATHENA.MIT.EDU (David Krikorian)
Thu Apr 12 02:46:17 1990
Date: Thu, 12 Apr 90 02:46:01 -0400
From: David Krikorian <dkk@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Cc: tytso@ATHENA.MIT.EDU
Reply-To: dkk@ATHENA.MIT.EDU
Attach doesn't deal correctly with over-mounted RVDs. Mount is also
messing up, which may be the problem attach is having. In the
following sequence, I attach two RVDs in a row, on the same
mountpoint. When I detach the first (covered) one, I am given no clue
that the detach failed, /etc/mtab shows *both* mounts gone, and
vdstats shows no change:
------------------------
hecate# mount
...
/dev/vdoa on /urvd type 4.2 (ro)
/dev/vd1a on /srvd type 4.2 (ro)
/dev/vd2a on /urvd type 4.2 (ro)
hecate# attach
filesystem mountpoint user mode
---------- ---------- ---- ----
m66-vsusr /urvd root r
m11-vssys /srvd root r
m11-vsusr /urvd root r
hecate# detach m66-vsusr
m66-vsusr: detached
hecate# attach
filesystem mountpoint user mode
---------- ---------- ---- ----
m11-vssys /srvd root r
m11-vsusr /urvd root r
hecate# vdstats
Maximum of 10 drives.
Drive Mode Status State Blocks Server Name
0 r 0 spun-up 297024 polyhymnia vsusr
1 r 0 spun-up 22308 aeschylus vssys
2 r 0 spun-up 297024 aeschylus vsusr
hecate# spindown 0
spindown: drive 0 : Device busy
hecate# mount
...
/dev/vd1a on /srvd type 4.2 (ro)
------------------------
What should have happened is that detach should have given an error,
because m66-vsusr couldn't be detached until after e40public-vsusr.
Several things went wrong here.