lkml.org 
[lkml]   [1996]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectSyquest drive trouble: Allows ejects.
Date
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}


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.042 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site