target: Return an error for WRITE SAME with ANCHOR==1
authorRoland Dreier <roland@purestorage.com>
Mon, 14 Oct 2013 22:49:23 +0000 (15:49 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 16 Oct 2013 20:32:07 +0000 (13:32 -0700)
commit5cb770bf4b777dae832151f4bc4d35e7a99f9880
treee0f0b0166f472bfafc99175a1983b4a4316ad7de
parent2053a1db41193c2b5e1f47a91aaba0fd63ba7102
target: Return an error for WRITE SAME with ANCHOR==1

Per SBC-3, since we report ANC_SUP==0 in VPD page B2h, we need to return
an error (ILLEGAL REQUEST/INVALID FIELD IN CDB) for all WRITE SAME
requests with ANCHOR==1.

Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_sbc.c