[libvirt] [PATCH] add compress stream support
Vasiliy Tolstov
v.tolstov at selfip.ru
Fri Sep 25 09:39:26 UTC 2015
2015-09-23 16:18 GMT+03:00 Daniel P. Berrange <berrange at redhat.com>:
> nstead pass flags to the virStorageVolDownload/Upload functions,
> eg VIR_STORAGE_VOL_STREAM_COMPRESS_ZLIB. This flag would get passed
> across to the storage driver, which can then turn on compression in
> the virFDStream impl. This would require
>
> - Add the enum flags to include/libvirt/libvirt-storage.h
> - Add libarchive support to src/fdstream.c
> - Handle the new flags in src/storage/storage_driver.c to
> turn on the libarchive compression in fdsream.c
I have a problems with enabling compression in fdstream. In my case
use pass flag to VolDownload, in storage_driver i don't have ability
to access privateData of the stream, so i need to create additional
variable in stream struct ?
Or i miss something? Also does the same stream can be used to read and
write in the same time? (libarchive need to init own structure for
read or for write)
--
Vasiliy Tolstov,
e-mail: v.tolstov at selfip.ru
More information about the libvir-list
mailing list