public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Pat LaVarre <p.lavarre@ieee.org>
To: linux-scsi@vger.kernel.org
Subject: Re: sg utils sg_io -i 0x24 -y "12 00:00:00 24 00"
Date: 26 Nov 2003 09:15:12 -0700	[thread overview]
Message-ID: <1069863312.4325.45.camel@patrh9> (raw)
In-Reply-To: <1068594777.6448.7.camel@patrh9>

> again there we see CDB for length, data for expected
> length returning actual length, sense for expected length returning
> actual length.

ftp://members.aol.com/plscsi/linux/plscsi.tar.gz
says g++ rather than gcc in that Makefile for the sake of that minority
of folk who have gcc/g++ configured so that gcc fails to link after
compiling .cpp.

http://members.aol.com/plscsi/linux/plscsi.tar.gz
fetches the same, but via http rather than via ftp.

Neither, whoops, yet give us the following popular patch that often
makes such commands work as:

plscsi /dev/hdc
plscsi /dev/hdd
plscsi /dev/scd0

Pat LaVarre

diff -Nur plscsi.2002-09-21/sgio.cpp plscsi/sgio.cpp
--- plscsi.2002-09-21/sgio.cpp	2002-09-21 13:25:18.000000000 -0600
+++ plscsi/sgio.cpp	2003-11-26 09:10:59.109906736 -0700
@@ -116,6 +116,7 @@
     sgio->theErrFile = stderr;
 
     sgio->theOpenMode = O_RDWR; /* O_RDONLY often works */
+    sgio->theOpenMode = O_RDONLY|O_NONBLOCK;
     sgio->theFileDescriptor = -1;
     sgio->theSgVersionNum = 0; /* 0 = unknown */
 



  parent reply	other threads:[~2003-11-26 16:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-07  0:38 sg utils sg_io -i 0x24 -y "12 00:00:00 24 00" Pat LaVarre
2003-11-07 16:24 ` Pat LaVarre
2003-11-07 16:56   ` Pat LaVarre
2003-11-07 17:09     ` Pat LaVarre
2003-11-07 17:17       ` Pat LaVarre
2003-11-07 17:51 ` Patrick Mansfield
2003-11-07 18:11   ` Pat LaVarre
2003-11-07 18:27     ` Pat LaVarre
2003-11-07 18:31       ` Pat LaVarre
2003-11-11 23:52         ` Pat LaVarre
2003-11-14  3:09           ` Douglas Gilbert
2003-11-26 16:15           ` Pat LaVarre [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-11-27 17:15 Pat LaVarre
2003-12-03  0:17 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=1069863312.4325.45.camel@patrh9 \
    --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