Re: [RFC, PATCH] SCSI tape: MTIOCSENSE ioctl to return the sense data from errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux