Invalid command operation code "WRITE SAME"

Drive does not support the SCSI “WRITE SAME” command.

[87217.361249] sd 9:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[87217.361252] sd 9:0:0:0: [sdc] tag#0 Sense Key : Illegal Request [current]
[87217.361254] sd 9:0:0:0: [sdc] tag#0 Add. Sense: Invalid command operation code
[87217.361257] sd 9:0:0:0: [sdc] tag#0 CDB: Write same(16) 93 08 00 00 00 01 61 f8 19 18 00 00 00 48 00 00
[87217.361259] print_req_error: critical target error, dev sdc, sector 5938616600 flags 803

Is there a firmware update for the 4TB WD passport to fix this? I’m sure this error is terrifying many less knowledgeable Linux users and causing WD to process unnecessary RMAs. In any case, it is a huge security issue, because file systems use this command to efficiently clear freed blocks to zeros.

3 Likes

Please fix this.

WRITE_SAME is not required to be supported by the command set. The only question here is: Does the device indicate that it supports WRITE_SAME, but then does not? In this case, clear firmware defect that WD would need to fix. Otherwise, clear Linux kernel defect. Don’t issue WRITE_SAME if the device tells you it doesn’t support WRITE_SAME.

But then again most of the people who will comment here are idiots coming from their overlord Fefe, following his retarded narrative without using their own brains for one second.