However, I have noticed that I can also eject the disk under these
conditions:
mount -t ext2 /dev/hdc1 /sy
dd if=/dev/hdc1 of=/dev/null count=1
Now the eject button causes the drive to spin down even though
/dev/hdc1 is still mounted.
I think that some sort of checking needs to be added in
drivers/block/ide.c:ide_open() and :ide_release(), perhaps a counter that
is incremented and then decremented. However, I haven't looked at the code
too closely, and I'm not sure exactly when ide_release() gets called.
This occurs at least with 1.3.86, but I'm sure the problem exists in
all other recent kernels.
Jeff
-- \/ Jeff Epler jepler@{inetnebr.com|cse.unl.edu|herbie.unl.edu|nyx.cs.du.edu}