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