Linux SCSI subsystem development
 help / color / mirror / Atom feed
From: Pat LaVarre <p.lavarre@ieee.org>
To: dougg@torque.net
Cc: linux-scsi@vger.kernel.org
Subject: Re: zero block writes
Date: 20 Oct 2003 16:46:46 -0600	[thread overview]
Message-ID: <1066690005.2814.14.camel@patehci2> (raw)
In-Reply-To: <3F8C79F0.6070105@torque.net>

> > $ 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
> > ...
>
> A new beta (1.05) should be out tomorrow that fixes this
> (I just put one up about 1 hour ago).

Looks good, thank you.  Again I tried contrasting:

sg_dd of=/dev/sg0 if=/dev/zero bs=2k count=1
sg_dd of=/dev/sg0 if=/dev/null bs=2k count=1

I'm pleased to report the sg3_utils-1.05.tar.gz I fetched today passes
cdb's thru drivers/usb/storage/usb.usb_stor_show_command only from
/dev/zero, not from /dev/null.

Pat LaVarre



  parent reply	other threads:[~2003-10-20 22:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-14 19:48 zero block writes Pat LaVarre
2003-10-14 22:34 ` Douglas Gilbert
2003-10-14 23:18   ` Pat LaVarre
2003-10-20 17:55     ` Pat LaVarre
2003-10-20 22:46   ` Pat LaVarre [this message]
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=1066690005.2814.14.camel@patehci2 \
    --to=p.lavarre@ieee.org \
    --cc=dougg@torque.net \
    --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