Linux SCSI subsystem development
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: Kai Makisara <Kai.Makisara@kolumbus.fi>
Cc: linux-scsi@vger.kernel.org, Arne Wiebalck <arne.wiebalck@cern.ch>
Subject: Re: [RFC, PATCH] SCSI tape: MTIOCSENSE ioctl to return the sense data from errors
Date: Fri, 11 Jul 2008 11:07:10 -0700	[thread overview]
Message-ID: <20080711110710.8728881e.randy.dunlap@oracle.com> (raw)
In-Reply-To: <alpine.LNX.1.10.0807111643250.5811@kai.makisara.local>

On Fri, 11 Jul 2008 16:57:00 +0300 (EEST) Kai Makisara wrote:

> -----------------------8<-----------------------------------------------
> diff --git a/Documentation/scsi/st.txt b/Documentation/scsi/st.txt
> index 4075260..7847655 100644
> --- a/Documentation/scsi/st.txt
> +++ b/Documentation/scsi/st.txt
> @@ -457,6 +459,17 @@ MTIOCGET Returns some status information.
>  	is set if there is no tape in the drive. GMT_EOD means either
>  	end of recorded data or end of tape. GMT_EOT means end of tape.
>  
> +The following ioctl uses the structure mtsense to return error information:
> +MTIOCSENSE returns the sense data from the previous "interesting" SCSI command
> +	resulting in CHECK CONDITION. Sense data is not saved from a command
> +	if is used only for supporting the implementation of the tape

	if is used ??  Confusing.  Maybe "if it is used".

> +	semantics and the sense data from that command would overwrite the
> +	sense data from the error interesting to the user. For instance, error
> +	from backspacing over a block by st after a read error does not
> +	overwrite the sense data from the read. The field 'latest' tells if
> +	the sense data is from the previous SCSI command sent to the device
> +	(all SCSI commands are counted). The cmd field is the command byte
> +	from the SCSI command resulting in the sense data.
>  
>  MISCELLANEOUS COMPILE OPTIONS
>  

---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/

  reply	other threads:[~2008-07-11 18:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-11 13:57 [RFC, PATCH] SCSI tape: MTIOCSENSE ioctl to return the sense data from errors Kai Makisara
2008-07-11 18:07 ` Randy Dunlap [this message]
2008-07-13 14:24 ` [RFC, PATCH v2] " Kai Makisara
2008-07-21 16:30   ` James Bottomley
2008-07-21 19:27     ` Kai Makisara

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=20080711110710.8728881e.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=Kai.Makisara@kolumbus.fi \
    --cc=arne.wiebalck@cern.ch \
    --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