From: Andrey Borzenkov <arvidjaar@mail.ru>
To: linux-kernel@vger.kernel.org
Subject: CDEJECT for SCSI disks/ide-floppy in drivers/block/scsi_ioctl.c
Date: Thu, 12 Jun 2003 19:26:47 +0400 [thread overview]
Message-ID: <200306121919.05603.arvidjaar@mail.ru> (raw)
At least in 2.5.70 there is common drivers/block/scsi_ioctl.c that defines
CDEJECT and is used by both SCSI and IDE ioctls. This fails for SCSI disks
and should fail for ide-floppy as well (unverified for the lack of hardware).
Both lock tray on open and that prevents media from being ejected (even if
command appears to succeed).
This happens to sometimes work for CD-ROMs because they do not lock media when
opened with O_NONBLOCK. It is not clear if this is a feature - device opened
with O_NONBLOCK is still busy so it should be locked as well.
CDEJECT implementation should unlock tray first; is moving it into
drivers/block/scsi_ioctl.c a long term goal? Would it make sense to add
CDROM_LOCKDOOR ioctl to this file as well?
Hmm ... just realized it fails for ide-floppy that has specia case for Click!
drive. But then, it is impossible to add generic unlock command to
scsi_iotcl.c as well.
Thank you
-andrey
reply other threads:[~2003-06-12 15:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200306121919.05603.arvidjaar@mail.ru \
--to=arvidjaar@mail.ru \
--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
all inboxes | Powered by JetHome®