lkml.org 
[lkml]   [2000]   [Sep]   [1]   [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
Jens Axboe wrote:
>
> 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.
Ok, now I think to know what you are meaning: The program locking the door
should stay active until the CD-ROM should be unlocked, right ?

I always though about issuing some single call to lock or unlock the drive (e.g.
setcd), but I never thought about this. What do I have to do to make this
possible ? Could you give me some hint on how to allow root to unlock it in a
clean way ? I wouldn't be very happy to apply special 'CD-ROM bootable interim
hack' patches to each kernel I build for the project. Is there a way to do this
general enough so that it can go into the main kernel (maybe another config
option in /proc/sys/dev/cdrom if root should be allowed to unlock under all
conditions) ?

Thanks for your help,
Rene
-
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.072 / U:1.372 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site