Page MenuHomeFreeBSD

D49467.diff
No OneTemporary

D49467.diff

diff --git a/sys/dev/usb/storage/umass.c b/sys/dev/usb/storage/umass.c
--- a/sys/dev/usb/storage/umass.c
+++ b/sys/dev/usb/storage/umass.c
@@ -2230,6 +2230,13 @@
* command format needed by the specific command set
* and return the converted command in
* "sc->sc_transfer.cmd_data"
+ *
+ * For commands we know the device doesn't support, we
+ * either complete them with an illegal request, or fake
+ * the completion, based on what upper layers tolerate.
+ * Ideally, we'd let the periph drivers know and not
+ * fake things up, but some periphs fall short of the
+ * ideal.
*/
if (umass_std_transform(sc, ccb, cmd, ccb->csio.cdb_len)) {
if (sc->sc_transfer.cmd_data[0] == INQUIRY) {

File Metadata

Mime Type
text/plain
Expires
Thu, May 1, 1:07 PM (13 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17285216
Default Alt Text
D49467.diff (736 B)

Event Timeline