eject test fails with kernel 3.19
Hi,
eject(1) fails for scsi_debug module version 1.85 (kernel 3.19).
The Problem is that command ALLOW_MEDIUM_REMOVAL now returns driverstatus==DRIVER_SENSE with sensecode==0x20 (INVALID COMMAND OPERATION CODE).
If I ignore that senscode then the other two START_STOP commands finish successfully.
Should this be fixed in eject(1) or in scsi_debug or is it just a bad idea to eject scsi_debug devices? This documentations says ALLOW_MEDIUM_REMOVAL is supported.
http://sg.danny.cz/sg/sdebug.html
I guess the issue came with this kernel commit:
commit c2248fc974df7be55a5f6db6b6f99a90b749581b
Author: Douglas Gilbert <[email protected]> Date: Mon Nov 24 20:46:29 2014 -0500
scsi_debug: change SCSI command parser to table driven
The existing 'big switch' parser in queuecommand() is changed to a table driven parser. The old and new queuecommand() were moved in the source so diff would not shuffle them. Apart from the new tables most other changes are refactoring existing response code to be more easily called out of the table parser. The 'strict' parameter is added so that cdb_s can be checked for non-zero values in parts of the cdb that are reserved. Some other changes
include: tweak request sense response when D_SENSE differs; support NDOB in Write Same(16); and fix crash in Get LBA Status when LBP was inactive.
cu,
Rudi
Quoted 11 lines · Ruediger Meier
Hi,
eject(1) fails for
scsi_debugmodule version 1.85 (kernel 3.19).The Problem is that command
ALLOW_MEDIUM_REMOVALnow returns driverstatus==DRIVER_SENSE with sensecode==0x20 (INVALID COMMAND OPERATION CODE).If I ignore that senscode then the other two
START_STOPcommands finish successfully.
Quoted 6 lines
Should this be fixed in eject(1) or in
scsi_debugor is it just a bad idea to ejectscsi_debugdevices? This documentations saysALLOW_MEDIUM_REMOVALis supported.
http://sg.danny.cz/sg/sdebug.htmlI guess the issue came with this kernel commit:
Then the kernel needs fixing. Breaking userspace is a no no, plain and simple. Who knows what other program(s) might be affected.
Thanks,
Davidlohr