target: support XCOPY requests without parameters
authorDavid Disseldorp <ddiss@suse.de>
Mon, 2 Jan 2017 17:04:09 +0000 (18:04 +0100)
committerBart Van Assche <bart.vanassche@sandisk.com>
Tue, 10 Jan 2017 16:41:30 +0000 (08:41 -0800)
commit87156518da94a696f2b27ab8945d531af2f1d339
tree8eb04eaa72f635ae3891401853d1802b66b1136c
parentf94fd098f674b78c29f482da1999d8de0c93c74e
target: support XCOPY requests without parameters

SPC4r37 6.4.1 EXTENDED COPY(LID4) states (also applying to LID1 reqs):
  A parameter list length of zero specifies that the copy manager shall
  not transfer any data or alter any internal state, and this shall not
  be considered an error.

This behaviour can be tested using the libiscsi ExtendedCopy.ParamHdr
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