public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Guest section DW <dwguest@win.tue.nl>
Cc: Giuliano Pochini <pochini@shiny.it>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>,
	linux-kernel@vger.kernel.org, lna@bigfoot.com
Subject: Re: I can eject a mounted CD
Date: Wed, 18 Apr 2001 23:36:37 +0200	[thread overview]
Message-ID: <20010418233637.J501@suse.de> (raw)
In-Reply-To: <E14pqzO-0004bp-00@the-village.bc.nu> <XFMail.010418150323.pochini@shiny.it> <20010418150622.P490@suse.de> <20010418230335.A17216@win.tue.nl>
In-Reply-To: <20010418230335.A17216@win.tue.nl>; from dwguest@win.tue.nl on Wed, Apr 18, 2001 at 11:03:35PM +0200

On Wed, Apr 18 2001, Guest section DW wrote:
> On Wed, Apr 18, 2001 at 03:06:22PM +0200, Jens Axboe wrote:
> > On Wed, Apr 18 2001, Giuliano Pochini wrote:
> 
> > > > vmware and one or two other apps I've also seen do this. WHen
> > > > you unlock the cdrom door as root you can unlock it even if a
> > > > file system is mounted
> > > 
> > > Right, so I'll check what eject(1) does. It might eject the disk
> > > even if it failed to unmount.
> > 
> > It shouldn't be able to. But check and see what happens.
> 
> (1) There are many different programs all called eject(1).  I find at
> least four of them on this machine.
> 
> (2) I missed the start of the discussion; if this is a SCSI cdrom then
> many eject programs will use raw SCSI commands and the kernel does not
> try to parse raw SCSI commands so does not know that it is ejecting a
> mounted cdrom.

#2 can be done on any CDROM these days in fact, if eject uses
CDROM_SEND_PACKET then it can _always_ open the tray as well regardless
of mount status etc.

-- 
Jens Axboe


  reply	other threads:[~2001-04-18 21:37 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-13 22:12 I can eject a mounted CD Giuliano Pochini
     [not found] ` <3AD78C81.51D8ED35@lvcm.com>
2001-04-16 19:16   ` Giuliano Pochini
2001-04-17 20:50     ` Alan Cox
2001-04-18  7:25       ` Giuliano Pochini
2001-04-18  9:00         ` Tim Peeler
2001-04-18  9:17           ` Giuliano Pochini
2001-04-18 13:24             ` Jeremy Jackson
2001-04-18 12:23         ` Alan Cox
2001-04-18 12:25           ` Jens Axboe
2001-04-18 13:03           ` Giuliano Pochini
2001-04-18 13:06             ` Jens Axboe
2001-04-18 21:03               ` Guest section DW
2001-04-18 21:36                 ` Jens Axboe [this message]
2001-04-19  7:49                 ` Giuliano Pochini
2001-04-18  8:42     ` Anthony D. Saxton
2001-04-19 21:36 ` Tomas Jura
2001-04-20  7:49   ` Giuliano Pochini
     [not found]     ` <kara.2760-0.987788475@kara.hadess.net>
2001-04-20 17:41       ` Bastien Nocera

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=20010418233637.J501@suse.de \
    --to=axboe@suse.de \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=dwguest@win.tue.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lna@bigfoot.com \
    --cc=pochini@shiny.it \
    /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