target: Add TCM_MISCOMPARE_VERIFY sense handling
authorNicholas Bellinger <nab@daterainc.com>
Mon, 19 Aug 2013 22:10:38 +0000 (15:10 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 9 Sep 2013 21:29:27 +0000 (14:29 -0700)
commit818b571ca053e19be336de1cc75c01dd5445e969
tree20b1244ccd2aa71d46abfe015b368742ebaecab1
parenta6b0133c19af1ab268ed1f4414efa2782896a870
target: Add TCM_MISCOMPARE_VERIFY sense handling

This patch adds TCM_MISCOMPARE_VERIFY (ASC=0x1d, ASCQ=0x00) sense
handling to transport_send_check_condition_and_sense(), which is
required for a COMPARE_AND_WRITE comparision failure.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Martin Petersen <martin.petersen@oracle.com>
Cc: Chris Mason <chris.mason@fusionio.com>
Cc: James Bottomley <JBottomley@Parallels.com>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Nicholas Bellinger <nab@daterainc.com>
drivers/target/target_core_transport.c
include/target/target_core_base.h