lkml.org 
[lkml]   [2000]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: EEK! Able to eject mounted Zip Disk (2.3.46/2.2.13)
On Thu, 2 Mar 2000, Guest section DW wrote:
>I suspect the following:
>- eject uses privately constructed SCSI commands to eject your disk
> so you are doing this entirely behind the back of everybody,
> the kernel does not know what you did.

While true, I know of no utilities that will frame a scsi command to eject a
disk -- it wouldn't work with IDE devices (I said _I_D_E_ not _A_T_A_P_I_)
or propriatary interfaces. (The only thing I know about is my own creation
and it does work with SCSI and ATAPI devices.)

>- refusing to eject /dev/sdb4 is something eject.c does for you;
> you might fix eject.c to also refuse /dev/sdb; send the patch
> to the maintainer.

Actually, the stock eject uses a standard ioctl() to eject media. The kernel
maintains a use count and will not eject anything it thinks is still in use.

--Ricky

PS: My toy is only in the hands of one person... in fact, specifically
conjoured up for his screwed up DVD drive.



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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