On Thu, Jun 16, 2022 at 10:04:36PM -0500, Mike Christie wrote: > If the WRITE_SAME NDOB bit is set then there is not going to be a > buffer. LIO core will then complain: > > TARGET_CORE[iSCSI]: Expected Transfer Length: 0 does not match SCSI CDB > Length: 512 for SAM Opcode: 0x93 > > This fixes the issue by detecting when the bit is set and adjusting the > size. The patch looks good and useful, but right the taret code doesn't even support MI_REPORT_SUPPORTED_OPERATION_CODES to report support for NDOB, so who ends up using it?