From: Pat LaVarre <p.lavarre@ieee.org>
To: Andries Brouwer <Andries.Brouwer@cwi.nl>
Cc: Patrick Mansfield <patmans@us.ibm.com>,
USB Storage List <usb-storage@lists.one-eyed-alien.net>,
Matthew Dharm <mdharm-usb@one-eyed-alien.net>,
SCSI development list <linux-scsi@vger.kernel.org>
Subject: Re: [usb-storage] Time to allow MODE SENSE for USB disk-type storag edevices?
Date: 10 Mar 2004 11:53:15 -0700 [thread overview]
Message-ID: <1078944795.5156.210.camel@patibmrh9> (raw)
In-Reply-To: <20040310091312.GA25632@apps.cwi.nl>
> > res = sd_do_mode_sense(SRpnt, 0, 0x3F, buffer, 4, &data);
I see the structure of this code arbitrarily requires H = C. That
structure makes sense only when H = D <= C. Why we guess D <= C when C
is 4, I do not understand.
> * First attempt: ask for all pages (0x3F), ...
I hear Windows starts with page x08, not x3F.
> all pages (0x3F), but only 4 bytes.
SCSI Pass-Through Mode Sense Command May Crash the Computer
http://support.microsoft.com/?kbid=813908
suggests Talk-like-Windows excludes 4 bytes, by saying -i 4 -y "1A
xx:xx:xx 04 00" crashes the Win 2K kernel for much Atapi, just as -y "12
00:00:00 00 00" crashes some lk for much Usb.
> some devices hang if we ask for more than is available.
Also some hosts hang when D < H.
Offline recently I received an as yet unconfirmed report that 2.4.25
ioctl CDROM_SEND_PACKET fails (but does not hang) when D < H.
> ... my devices ... work...
Yes, here we choose among evils.
If Windows doesn't discover PDT x00/0E writability except by trying to
write blocks, then any other technique we invent will fail to
interoperate broadly.
Pat LaVarre
next prev parent reply other threads:[~2004-03-10 18:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-08 16:05 Time to allow MODE SENSE for USB disk-type storage devices? Alan Stern
2004-03-08 17:55 ` [usb-storage] Time to allow MODE SENSE for USB disk-type storage de vices? Pat LaVarre
2004-03-08 21:16 ` [usb-storage] Time to allow MODE SENSE for USB disk-typestorage " Pat LaVarre
2004-03-08 20:13 ` [usb-storage] Time to allow MODE SENSE for USB disk-type storage devices? Andries Brouwer
2004-03-10 1:43 ` Patrick Mansfield
2004-03-10 9:13 ` Andries Brouwer
2004-03-10 16:56 ` Alan Stern
2004-03-10 18:53 ` Pat LaVarre [this message]
2004-03-10 20:24 ` [usb-storage] Time to allow MODE SENSE for USB disk-type storag edevices? Alan Stern
2004-03-10 20:58 ` Pat LaVarre
2004-03-10 22:43 ` Alan Stern
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=1078944795.5156.210.camel@patibmrh9 \
--to=p.lavarre@ieee.org \
--cc=Andries.Brouwer@cwi.nl \
--cc=linux-scsi@vger.kernel.org \
--cc=mdharm-usb@one-eyed-alien.net \
--cc=patmans@us.ibm.com \
--cc=usb-storage@lists.one-eyed-alien.net \
/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