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, Lars Kellogg-Stedman wrote:
>I'm way out of my league on this one, but doesn't SCSI provide a way to
>"lock" removable media into a device, such that an "unlock" command is
>required before it can be ejected?

Yes it does, but that generally only applies to the eject button. I've only
seen one DVD drive that applied it to a bus provided command.

>It seems that mounting a removeable device (and I believe removable
>devices are identified as such) should lock the media so that eject, even
>if it's sending an eject command directly to the device, will fail to
>eject media with a mounted filesystem.

Yes, the kernel does submit a "prevent allow" command to the drive on mount
and releases it on umount -- usually :-) But as above, that doesn't always
prevent a "start stop unit" command from unloading the media.

Given the other number of bugs/problems with IOMEGA drives... I doubt it's
preventing ejection by command.

--Ricky



-
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:0.062 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site