target: Allow non zero ListID in EXTENDED_COPY parameter list
authorNicholas Bellinger <nab@linux-iscsi.org>
Mon, 7 Oct 2013 22:22:15 +0000 (15:22 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 9 Oct 2013 08:54:43 +0000 (01:54 -0700)
commit3f7a46c67440a7fa422919ab2059cbab838ca558
tree40b9ad24651ca731c5436705ab80977e5458f3f5
parent934a138e970e5af73d6f79469a1eb363572abbaa
target: Allow non zero ListID in EXTENDED_COPY parameter list

This patch changes target_do_xcopy() to allow processing of non-zero
ListIDs in EXTENDED_COPY parameter list data, instead of returning
CHECK_CONDITION status.

As the copy offload implementation reports SNLID=1 (Supports No ListID)
in OPERATING PARAMETERS, any ListID value presented by the client is
currently ignored.

Also, properly extract list_id_usage for informational purposes.

Reported-by: Thomas Glanzmann <thomas@glanzmann.de>
Reported-by: Douglas Gilbert <dgilbert@interlog.com>
Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_xcopy.c