The NetApp driver uses NetApp specific API calls to implement the actual cloning of the file. You could probably generalize it by implementing the keeping of a cached image file on the destination share for future copies, and then implement a standard "copy file" method that could be overloaded by individual drivers. In implementing the cache image though you would also need to implement a cache "scrubber" that will come around and clean up the cached files once you reach (user) defined thresholds.
Andrew Kerr OpenStack QA Cloud Solutions Group NetApp From: "Luohao (brian)" <brian.luo...@huawei.com> Reply-To: "OpenStack Development Mailing List (not for usage questions)" <openstack-dev@lists.openstack.org> Date: Monday, April 14, 2014 at 2:17 AM To: "OpenStack Development Mailing List (not for usage questions)" <openstack-dev@lists.openstack.org> Subject: Re: [openstack-dev] Efficient image cloning implementation in NetApp nfs drivers // make this part of base NFS driver Nice idea. Actually, fast image cloning has been widely supported by most NAS devices, and VMware VAAI also started to require this criteria many years ago. However, I am not quite sure what exactly need to put into the base NFS driver, anyways, the fast cloning api will vary for specific vendors. -Hao From: Nilesh P Bhosale [mailto:nilesh.bhos...@in.ibm.com] Sent: Monday, April 14, 2014 1:51 PM To: OpenStack Development Mailing List (not for usage questions) Subject: [openstack-dev] Efficient image cloning implementation in NetApp nfs drivers // make this part of base NFS driver Hi All, I was going through the following blue print, NetApp proposed and implemented in its driver (NetAppNFSDriver - cinder/volume/drivers/netapp/nfs.py) a while back (change <https://review.openstack.org/#/c/41868/>): https://blueprints.launchpad.net/cinder/+spec/netapp-cinder-nfs-image-cloni ng It looks quite an interesting and valuable feature for the end customers. Can we make it part of the base NfsDriver (cinder/volume/drivers/nfs.py)? so that the customers using the base NFS driver can benefit and also other drivers inheriting from this base NFS driver (e.g. IBMNAS_NFSDriver, NexentaNfsDriver) can also benefit. Please let me know your valuable opinion. I can start a blueprint for the Juno release. Thanks, Nilesh _______________________________________________ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev