lkml.org 
[lkml]   [2000]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Bug: remounting CD-ROM drives does not lock/unlock drive
On Mon, Aug 28 2000, Rene Mayrhofer wrote:
> I already tried to do so, but I could not find a way.to lock the CD-ROM
> tray on my (SCSI DVD) CD-ROM drive after it has been mounted with the door
> not being lock. How can this be done ?
>
> 'setcd -l1' does not work

I don't know setcd, but issuing a CDROM_LOCKDOOR ioctl with arg 1
will lock the door. Unmounting is a different issue, because currently
you can't do that if the drive is opened more than once (which it will
be, mount + locking program). I guess we could work around this by allowing
root to unlock a busy drive, or some other hack like that.

> 'echo 1 > /proc/sys/dev/cdrom/lock' doesn't either

This just controls whether tray is locked when it is opened, so it has
no effect after the mount.

--
* Jens Axboe <axboe@suse.de>
* SuSE Labs
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.057 / U:0.656 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site