diff options
author | mav <mav@FreeBSD.org> | 2014-07-16 15:57:17 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-07-16 15:57:17 +0000 |
commit | 7b21dd3b31b8f07a5be046ff2f243eb5fd4b1e21 (patch) | |
tree | 7d63c809c6f94d9453beaad7bd5a624884e26519 /sys/cam/ctl/ctl_frontend.c | |
parent | 4a70d74f6e621a6b19b574f9fcbd60741ace2c07 (diff) | |
download | FreeBSD-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.c')
-rw-r--r-- | sys/cam/ctl/ctl_frontend.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl_frontend.c b/sys/cam/ctl/ctl_frontend.c index ecd5cba..34b4a9e 100644 --- a/sys/cam/ctl/ctl_frontend.c +++ b/sys/cam/ctl/ctl_frontend.c @@ -234,6 +234,8 @@ ctl_port_deregister(struct ctl_port *port) port->port_devid = NULL; free(port->target_devid, M_CTL); port->target_devid = NULL; + free(port->init_devid, M_CTL); + port->init_devid = NULL; for (i = 0; i < port->max_initiators; i++) free(port->wwpn_iid[i].name, M_CTL); free(port->wwpn_iid, M_CTL); |