Messages in this thread | | | From | Jeff Epler <> | Subject | Syquest drive trouble: Allows ejects. | Date | Sat, 13 Apr 1996 12:32:22 -0500 (CDT) |
| |
I've got a Syquest EZ-Drive as /dev/hdc. Under Linux, ejection can be stopped in software. So, while a filesystem is mounted I can press the button and the eject will be deferred till I unmount it.
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}
| |