From: Jens Axboe <axboe@suse.de>
To: Markus Plail <plail@web.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [Bug] 2.5.44-ac2 cdrom eject panic
Date: Mon, 28 Oct 2002 15:58:50 +0100 [thread overview]
Message-ID: <20021028145850.GE2937@suse.de> (raw)
In-Reply-To: <87lm4iegtg.fsf@gitteundmarkus.de>
On Mon, Oct 28 2002, Markus Plail wrote:
> * Jens Axboe writes:
> >On Sun, Oct 27 2002, Jens Axboe wrote:
> >>> Now if C2 scans would work that'd be great ;-)
> >>>
> >>> [plail@plailis_lfs:plail]$ readcd dev=/dev/hdc -c2scan
> >>> Read speed: 7056 kB/s (CD 40x, DVD 5x).
> >>> Write speed: 0 kB/s (CD 0x, DVD 0x).
> >>> Capacity: 4116432 Blocks = 8232864 kBytes = 8039 MBytes = 8430 prMB
> >>> Sectorsize: 2048 Bytes
> >>> Copy from SCSI (0,0,0) disk to file '/dev/null'
> >>> end: 4116432
> >>> addr: 0 cnt: 99^Mreadcd: Operation not permitted. Cannot send SCSI cmd vi
> >>> readcd: Operation not permitted. Cannot send SCSI cmd via ioctl
> >>
> >>Interesting, have no tried readcd at all myself. Will give it a spin and
> >>fix this tomorrow.
>
> >It uses SCSI_IOCTL_SEND_COMMAND ioctl, an old piece of crap interface
> >instead of libscg. I can add the 50 lines or so to emulate that ioctl,
> >but it would probably be better if readcd just got converted to use
> >libscg instead.
>
> OK. Can you get in touch with Jörg to get that sorted out? Or should I
> post to cdwrite ML?
I'm trying to get it fixed, it looks as though I may have been premature
in saying that it uses SCSI_IOCTL_SEND_COMMAND is the reason it doesn't
work (of course I found this out after doing the complete emulation!).
Basically, from an strace, it looks as if ioctl(.., SG_IO, ..) returns
-ENOTTY after another ioctl does so even though it has completed many
times in the past on the same fd. Strange.
So no worries, I'll get it sorted. And I do talk to Joerg from time to
time myself.
--
Jens Axboe
next prev parent reply other threads:[~2002-10-28 14:56 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-25 10:36 [Bug] 2.5.44-ac2 cdrom eject panic Nyk Tarr
2002-10-25 10:39 ` Jens Axboe
2002-10-25 13:09 ` Markus Plail
2002-10-25 14:35 ` Jens Axboe
2002-10-25 14:42 ` Jens Axboe
2002-10-25 16:39 ` Markus Plail
2002-10-25 16:53 ` Jens Axboe
2002-10-27 19:41 ` Markus Plail
2002-10-27 18:56 ` Jens Axboe
2002-10-28 12:14 ` Jens Axboe
2002-10-28 15:14 ` Markus Plail
2002-10-28 14:58 ` Jens Axboe [this message]
2002-10-25 13:10 ` Nyk Tarr
2002-10-25 14:46 ` Jens Axboe
2002-10-25 14:48 ` Jens Axboe
2002-10-25 17:25 ` Nyk Tarr
2002-10-25 17:31 ` Jens Axboe
2002-10-25 13:49 ` Alan Cox
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=20021028145850.GE2937@suse.de \
--to=axboe@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=plail@web.de \
/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.