diff options
author | Bernhard Kohl <Riedel-und-Kohl@t-online.de> | 2012-05-13 23:39:01 +0200 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-05-15 12:43:21 -0700 |
commit | 66246617ab7f0587f42ca49825a16d7a391fe15b (patch) | |
tree | 3a3586cdaa64a78a08720e3437624853164d9b1f /drivers/target | |
parent | 33933a0e962bba4af32de7db912e2fdfef603d24 (diff) | |
download | linux-3.10-66246617ab7f0587f42ca49825a16d7a391fe15b.tar.gz linux-3.10-66246617ab7f0587f42ca49825a16d7a391fe15b.tar.bz2 linux-3.10-66246617ab7f0587f42ca49825a16d7a391fe15b.zip |
target: add support for the WRITE_VERIFY command
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>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_transport.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index eeb16b1ad01..2a34d0e4c24 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c @@ -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, §or_ret); if (sector_ret) goto out_unsupported_cdb; |