Bad sector detection in sr.c and sd.c

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

 



James:

With regard to your commit 366c246de9cec909c5eba4f784c92d1e75b4dc38
(sd: handle bad lba in sense information)...

Shouldn't analogous changes be made in sr_done()?  The code there looks 
rather old and somewhat bogus.  It doesn't need to be quite as careful 
as the code in sd_done() because you can assume that sr.c will never 
handle devices with more than 2 billion sectors (an assumption already 
present in sr_prep_fn()).

Also, do you have any objection to a patch for sd_done() which would
use the scsi_cmnd's residue if bad_lba is outside the interval from
start_lba to end_lba?

Alan Stern

-
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