From: Pat LaVarre <p.lavarre@ieee.org>
To: linux-scsi@vger.kernel.org
Subject: zero block writes
Date: 14 Oct 2003 13:48:27 -0600 [thread overview]
Message-ID: <1066160907.3501.9.camel@patehci2> (raw)
$
$ sg_dd of=/dev/sg0 if=/dev/null bs=2k count=1
0+0 records in
0+0 records out
$
cdb trace tells me this sg utils idiom assaults the device with a zero
block write, specifically:
...
usb-storage: Command WRITE_10 (10 bytes)
usb-storage: 2a 00 00 00 00 00 00 00 00 00
usb-storage: Bulk command S 0x43425355 T 0x1e Trg 0 LUN 0 L 0 F 0 CL 10
...
I wonder if any of you find this sg utils factoid ineffably interesting,
as I do?
I know I have a personal history of pain with the scsi folk who dispute
the t10 claim that the cdb x 0A 00:00:00 00 00 means write out x100
blocks rather than zero and/or while yet that the cdb x 2A 00
00:00:00:00 00 00:00 00 does mean write out zero blocks.
I know I explicitly wrote code into a revision, at a time beyond the
original release of pldd, to discard writes of zero bytes quietly,
rather than passing them thru to the device.
I know such pass thru's trip over such unit attentions as x 6 29 reset.
Pat LaVarre
next reply other threads:[~2003-10-14 19:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-14 19:48 Pat LaVarre [this message]
2003-10-14 22:34 ` zero block writes Douglas Gilbert
2003-10-14 23:18 ` Pat LaVarre
2003-10-20 17:55 ` Pat LaVarre
2003-10-20 22:46 ` Pat LaVarre
2003-10-14 22:43 ` Pat LaVarre
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=1066160907.3501.9.camel@patehci2 \
--to=p.lavarre@ieee.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox