summaryrefslogtreecommitdiffstats
path: root/sys/cam/ctl/ctl_frontend_iscsi.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2014-07-16 15:57:17 +0000
committermav <mav@FreeBSD.org>2014-07-16 15:57:17 +0000
commit7b21dd3b31b8f07a5be046ff2f243eb5fd4b1e21 (patch)
tree7d63c809c6f94d9453beaad7bd5a624884e26519 /sys/cam/ctl/ctl_frontend_iscsi.c
parent4a70d74f6e621a6b19b574f9fcbd60741ace2c07 (diff)
downloadFreeBSD-src-7b21dd3b31b8f07a5be046ff2f243eb5fd4b1e21.zip
FreeBSD-src-7b21dd3b31b8f07a5be046ff2f243eb5fd4b1e21.tar.gz
Add support for VMWare dialect of EXTENDED COPY command, aka VAAI Clone.
This allows to clone VMs and move them between LUNs inside one storage host without generating extra network traffic to the initiator and back, and without being limited by network bandwidth. LUNs participating in copy operation should have UNIQUE NAA or EUI IDs set. For LUNs without these IDs VMWare will use traditional copy operations. Beware: the above LUN IDs explicitly set to values non-unique from the VM cluster point of view may cause data corruption if wrong LUN is addressed! MFC after: 2 weeks Sponsored by: iXsystems, Inc.
Diffstat (limited to 'sys/cam/ctl/ctl_frontend_iscsi.c')
-rw-r--r--sys/cam/ctl/ctl_frontend_iscsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/ctl/ctl_frontend_iscsi.c b/sys/cam/ctl/ctl_frontend_iscsi.c
index beecdd9..2c4f4dd 100644
--- a/sys/cam/ctl/ctl_frontend_iscsi.c
+++ b/sys/cam/ctl/ctl_frontend_iscsi.c
@@ -2702,7 +2702,7 @@ cfiscsi_scsi_command_done(union ctl_io *io)
* Do not return status for aborted commands.
* There are exceptions, but none supported by CTL yet.
*/
- if (io->io_hdr.status == CTL_CMD_ABORTED &&
+ if ((io->io_hdr.flags & CTL_FLAG_ABORT) &&
(io->io_hdr.flags & CTL_FLAG_ABORT_STATUS) == 0) {
ctl_free_io(io);
icl_pdu_free(request);
OpenPOWER on IntegriCloud