]> git.karo-electronics.de Git - karo-tx-linux.git/commit
target: use XCOPY TOO MANY TARGET DESCRIPTORS sense
authorDavid Disseldorp <ddiss@suse.de>
Fri, 23 Dec 2016 10:37:54 +0000 (11:37 +0100)
committerBart Van Assche <bart.vanassche@sandisk.com>
Tue, 10 Jan 2017 16:40:43 +0000 (08:40 -0800)
commit61c359194c46cbffec9a1f2c59c1c4011222ad84
tree4fdbf9486391c23786969431ff8c93180adf6431
parente864212078ded276bdb272b2e0ee6a979357ca8a
target: use XCOPY TOO MANY TARGET DESCRIPTORS sense

spc4r37 6.4.3.4 states:
  If the number of CSCD descriptors exceeds the allowed number, the copy
  manager shall terminate the command with CHECK CONDITION status, with
  the sense key set to ILLEGAL REQUEST, and the additional sense code
  set to TOO MANY TARGET DESCRIPTORS.

LIO currently responds with INVALID FIELD IN PARAMETER LIST, which sees
it fail the libiscsi ExtendedCopy.DescrLimits test.

Signed-off-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
drivers/target/target_core_xcopy.c