target: add support for the WRITE_VERIFY command
authorBernhard Kohl <Riedel-und-Kohl@t-online.de>
Sun, 13 May 2012 21:39:01 +0000 (23:39 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 15 May 2012 19:43:21 +0000 (12:43 -0700)
Some legacy OS use WRITE_VERIFY on hard disks.

Signed-off-by: Bernhard Kohl <bernhard.kohl@gmx.net>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c

index eeb16b1..2a34d0e 100644 (file)
@@ -2481,6 +2481,7 @@ static int transport_generic_cmd_sequencer(
                cmd->se_cmd_flags |= SCF_SCSI_DATA_SG_IO_CDB;
                break;
        case WRITE_10:
+       case WRITE_VERIFY:
                sectors = transport_get_sectors_10(cdb, cmd, &sector_ret);
                if (sector_ret)
                        goto out_unsupported_cdb;