]> xenbits.xensource.com Git - libvirt.git/commit
Introduce virStorageVol{Download,Upload}Flags
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 8 Apr 2016 13:41:18 +0000 (15:41 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 18 May 2017 05:42:13 +0000 (07:42 +0200)
commit1f43aa67c56be0ce39b9c94a37b8cf2f400fb132
tree7cc6945a9dea241eac2fd04069a7466cef24cdb0
parent8f08f28f742ef9d512f6ef5d2cc0da8e6f2f4500
Introduce virStorageVol{Download,Upload}Flags

These flags to APIs will tell if caller wants to use sparse
stream for storage transfer. At the same time, it's safe to
enable them in storage driver frontend and rely on our backends
checking the flags. This way we can enable specific flags only on
some specific backends, e.g. enable
VIR_STORAGE_VOL_DOWNLOAD_SPARSE_STREAM for filesystem backend but
not iSCSI backend.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
include/libvirt/libvirt-storage.h
src/libvirt-storage.c
src/remote/remote_protocol.x
src/storage/storage_driver.c
src/storage/storage_util.c