Randy Dunlap wrote: > > Yes, this problem has been around forever AFAIK. You didn't add > to it. Do we need to file a bug report in Bugzilla or something, so people have a documentation of the work-around, until it is fixed? I think that for now I will wrap it up as it is. Could you send me the right BUG_ON() in place, with a printk pointing users to a solution? and I'll redo all the patches. >> >> One more thing if I may? Do you have at hand an old Zip cartridge that >> has bad sectors or other errors on it. My motivation is to exercise the >> Sense return code-path. I would like to make sure that its doing the >> expected. It is the part that changed the most. >> I will try to look if there is a way to send a scsi_read using sg3_utils that >> will read passed the media capacity, and will trigger a short read. I guess >> on an unmounted device. Douglas? > > No, I don't have any bad media that I know of. > I suggest that you look into the "Fault-injection framework" > (CONFIG_FAULT_INJECTION) to see if it can inject some errors for you. > Oh, I didn't realize there is one. OK nice I will look into it, thanks. > --- > ~Randy > *** Remember to use Documentation/SubmitChecklist when testing your code *** Boaz - 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