On 05/26/14 08:22, Julian Elischer wrote:
I've seen this pattern a bit too much.

  user: I see error X
  dev:   turn on quirk Y, disabling {lock device, queuing, syncing,
block erase, etc.}


Would it be possible for part of the attach code for drives, to silently
run through a bunch of these commands and just turn off those that
return errors? In the Old (old) SCSI code we did this in some devices,
and in some cases there were capability descriptions in some of the
sense pages.

(though I think that was on some proprietary subdrivers).

Yes we already do that. Please send me patches/improvements for:

sys/dev/usb/usb_msctest.c

and

usb_error_t
usb_msc_auto_quirk(struct usb_device *udev, uint8_t iface_index)

--HPS
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "[email protected]"

Reply via email to