
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@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org