]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit746608881d33b3c89be7d2eeb3e1ad3d2985a2d5
tree69697cc95063a83bf948b854a44e87a0eae4e97e
parent1c87ed2e49fc9ffc0ff4493e9b862513b4f6daf3
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