Re: [PATCH 4/6] Support volume data upload/download APIs in storage driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/23/2011 11:36 AM, Daniel P. Berrange wrote:
> Use generic FD streams to allow data upload/download to/from
> any storage volume
> 
> * src/storage/storage_driver.c: Wire up upload/download APIs
> ---
>  src/storage/storage_driver.c |  132 +++++++++++++++++++++++++++++++++++++++++-
>  1 files changed, 130 insertions(+), 2 deletions(-)

ACK.

> +
> +    /* Not using O_CREAT because the file is required to
> +     * already exist at this point */
> +    if (virFDStreamOpenFile(stream,
> +                            vol->target.path,
> +                            offset, length,
> +                            O_WRONLY) < 0)

This won't work with root-squash NFS volumes, but that can be a later fixup.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]