From: Ondrej Zary <linux@rainbow-software.org>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Cc: linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: LS-120 eject does not work with libata
Date: Fri, 6 Mar 2009 18:34:22 +0100 [thread overview]
Message-ID: <200903061834.24907.linux@rainbow-software.org> (raw)
Hello,
I remember fixing LS-120 eject in ide-floppy 3 years ago.
Found this time thatit does not work with libata (2.6.28):
# eject -v /dev/sda
eject: device name is `/dev/sda'
eject: expanded name is `/dev/sda'
eject: `/dev/sda' is not mounted
eject: `/dev/sda' is not a mount point
eject: `/dev/sda' is a multipartition device
eject: trying to eject `/dev/sda' using CD-ROM eject command
eject: CD-ROM eject command failed
eject: trying to eject `/dev/sda' using SCSI commands
eject: SCSI eject succeeded
# strace eject -v /dev/sda
[...]
write(1, "eject: trying to eject `/dev/sda"..., 54eject: trying to eject `/dev/sda' using SCSI commands
) = 54
ioctl(3, SG_GET_VERSION_NUM, 0xbfbaeac4) = 0
ioctl(3, SG_IO, 0xbfbaea50) = 0
ioctl(3, SG_IO, 0xbfbaea50) = 0
ioctl(3, SG_IO, 0xbfbaea50) = 0
ioctl(3, BLKRRPART, 0xbfbaea50) = 0
write(1, "eject: SCSI eject succeeded\n", 28eject: SCSI eject succeeded
) = 28
[...]
It looks like everything is OK. The only problem is that the disk
does not eject (only spins up).
It does work when using SCSI generic device:
# eject -v /dev/sg0
eject: device name is `/dev/sg0'
eject: expanded name is `/dev/sg0'
eject: `/dev/sg0' is not mounted
eject: `/dev/sg0' is not a mount point
eject: `/dev/sg0' is not a multipartition device
eject: trying to eject `/dev/sg0' using CD-ROM eject command
eject: CD-ROM eject command failed
eject: trying to eject `/dev/sg0' using SCSI commands
eject: SCSI eject succeeded
The disk spins up and does some reads (most probably useless) and then ejects.
Now I wonder where the problem is...
--
Ondrej Zary
reply other threads:[~2009-03-06 17:34 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=200903061834.24907.linux@rainbow-software.org \
--to=linux@rainbow-software.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.