public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Jim Nelson <jimnelson@btinet.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Locking CD tray w/o opening device
Date: Fri, 14 Jun 2002 07:45:56 +0200	[thread overview]
Message-ID: <20020614054556.GE4779@suse.de> (raw)
In-Reply-To: <200206110328.g5B3SgL08447@marc2.theaimsgroup.com> <200206110328.g5B3SgL08447@marc2.theaimsgroup.com> <5.1.0.14.2.20020613150319.00a09360@mail.btinet.net>

On Thu, Jun 13 2002, Jim Nelson wrote:
> At 12:00 AM 6/11/02 -0500, you wrote:
> >You could echo "1" >/proc/sys/dev/cdrom/lock
> >
> >If you do this, even when a cd is *not* in the drive it will be locked.
> >For information like this, it might be best to open xchat, and head to
> >openprojects.net and join #linuxhelp. This is a good question, just
> >perhaps  not right for the lkml?
> 
> 
> Um, No.  My /proc/sys/dev/cdrom/lock defaults to a 1, and the drive opens 
> when a disc is not present at the touch of the button. 

Yeah, the above explanation of 'lock' is wrong. It merely controls
whether the tray should be locked when someone is using the CD-ROM. If
noone is using it, it will still be unlocked. There _is_ a var that
controls permanent locking, however it isn't exported through proc.
You'll have to use the CDROM_LOCKDOOR ioctl.

-- 
Jens Axboe


  reply	other threads:[~2002-06-14  5:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-11  3:28 Locking CD tray w/o opening device Hank Leininger
2002-06-11  5:00 ` Austin Gonyou
2002-06-13 20:05   ` Jim Nelson
2002-06-14  5:45     ` Jens Axboe [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-06-11  2:53 Nathan Neulinger
2002-06-11  3:20 ` Erik Andersen
2002-06-11 10:25 ` Andreas Roedl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020614054556.GE4779@suse.de \
    --to=axboe@suse.de \
    --cc=jimnelson@btinet.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox