Re: [PATCH] Improve code for detecting errors near the end of a CD

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

 



On Sat, 15 Oct 2005, Douglas Gilbert wrote:

> Alan,
> In include/scsi/scsi_eh.h there are several helper functions
> to aid processing SCSI errors. This includes SCSI sense data
> descriptor format (which won't be needed for DVD/HD/BD for
> some time with a (2**32 * 2048) byte maximum using existing
> fixed sense data format). However there is
> scsi_get_sense_info_fld() to fetch the info field.
> 
> sd, st and sg have been converted to use these helpers,
> where appropriate.
> 
> MMC-4 does not mention that the valid bit needs to
> be set on a MEDIUM/HARDWARE error and I have seen
> real life examples of this. [So it's poorly defined
> if one gets a medium error on lba 0.] You may also like to
> consider deferred errors which can occur according to
> MMC-4.

I just read the scsi_get_sense_info_fld routine.  For fixed format data, 
it won't return anything if the Valid bit isn't set!

This makes it hard to adopt both your first two suggestions... :-)

Alan Stern

-
: 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