lkml.org 
[lkml]   [1999]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Ejecting a mounted CD-ROM works :-(
In lists.linux.kernel you write:

>Hi *

>I did some experiments with cdrecord last few days, for example how to
>eject a CDROM ...

>ok, let´s do that
># cdrecord dev=0,2,0 -eject

>*click**screeek**click*
>CD is ejected from my cdrom now :-)

>Ok, try to eject a mounted(!!) cd-rom. This should make some headace
>to the kernel, this is the reason why cdroms (eject-button) are locked
>while mounted, right?

If you ask the kernel for ejecting the cdrom (CDROMEJECT ioctl), you'll
get a EBUSY.

cdrecord talks directly to the device (via generic scsi), therefore
the kernel can't block the eject attempt.

Gerd

--
We are ftpadm of FB13. Prepare to be mirrored. Resistance is futile.
-- ftp.cs.tu-berlin.de greeting message

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.086 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site