target: Reject EXTENDED_COPY when emulate_3pc is disabled
authorNicholas Bellinger <nab@linux-iscsi.org>
Tue, 8 Oct 2013 01:05:14 +0000 (18:05 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 9 Oct 2013 08:54:44 +0000 (01:54 -0700)
commitacb3f2600eb8cdd35643a8b9237719ce61c98d41
tree38d93b11145669f061c84bac3932b9c9b9c08f32
parent3f7a46c67440a7fa422919ab2059cbab838ca558
target: Reject EXTENDED_COPY when emulate_3pc is disabled

This patch rejects EXTENDED_COPY when the emulate_3pc attribute has
been explicitly disabled for the receiving device.

It also adds a similar check in target_xcopy_locate_se_dev_e4() to
ignore these devices when doing a search based upon the identifier
WWN provided by EXTENDED_COPY parameter list target descriptors.

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_xcopy.c