target: return UNSUPPORTED TARGET/SEGMENT DESC TYPE CODE sense
authorDavid Disseldorp <ddiss@suse.de>
Mon, 2 Jan 2017 17:04:04 +0000 (18:04 +0100)
committerBart Van Assche <bart.vanassche@sandisk.com>
Tue, 10 Jan 2017 16:41:09 +0000 (08:41 -0800)
commitc243849720ac237e9e7191fe57f619bb3a871d4c
tree3406921480c11066f43366d84be2b7df0cea39f8
parent7d38706669ce00603b187f667a4eb67c94eac098
target: return UNSUPPORTED TARGET/SEGMENT DESC TYPE CODE sense

Use UNSUPPORTED TARGET DESCRIPTOR TYPE CODE and UNSUPPORTED SEGMENT
DESCRIPTOR TYPE CODE additional sense codes if a descriptor type in an
XCOPY request is not supported, as specified in spc4r37 6.4.5 and 6.4.6.

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