Re: Bug: remounting CD-ROM drives does not lock/unlock drive

From: Jens Axboe (axboe@suse.de)
Date: Thu Aug 31 2000 - 09:49:02 EDT

  • Next message: Alan Cox: "Re: [PATCH] 2.2: /proc/config.gz"

    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/
    



    This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 09:54:32 EDT