scsi: scsi_debug: Implement VERIFY(10), add VERIFY(16)
authorDouglas Gilbert <dgilbert@interlog.com>
Tue, 21 Apr 2020 15:14:19 +0000 (11:14 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 5 May 2020 03:05:44 +0000 (23:05 -0400)
commitc3e2fe9222d428f115baeba2f6b3637b3aa444cd
tree69697cc95063a83bf948b854a44e87a0eae4e97e
parent87c715dcde633f4cc4690a24a240e838181e6a9d
scsi: scsi_debug: Implement VERIFY(10), add VERIFY(16)

With the addition of the per_host_store option, the ability to check
whether two different ramdisk images are the same or not becomes
practical. Prior to this patch VERIFY(10) always returned true (i.e.  the
SCSI GOOD status) without checking. This option adds support for BYTCHK
equal to 0, 1 and 3. If the comparison fails, then a sense key of
MISCOMPARE is returned as per the T10 standards. Also add support for the
VERIFY(16) command.

Link: https://lore.kernel.org/r/20200421151424.32668-4-dgilbert@interlog.com
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c