]> xenbits.xensource.com Git - libvirt.git/commitdiff
blockcopy: allow larger buf-size
authorEric Blake <eblake@redhat.com>
Sun, 31 Aug 2014 04:02:19 +0000 (22:02 -0600)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 1 Sep 2014 15:29:07 +0000 (17:29 +0200)
While qemu definitely caps granularity to 64 MiB, it places no
limits on buf-size.  On a machine beefy enough for lots of
memory, a buf-size larger than 2 GiB is feasible, so we should
pass a 64-bit parameter.

* include/libvirt/libvirt.h.in (VIR_DOMAIN_BLOCK_COPY_BUF_SIZE):
Allow 64 bits.

Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
include/libvirt/libvirt.h.in

index 935831434edd59952e90dfe9f0515ed991748d7b..a64f597d39b544c6d9e319453cd3624b134ba41b 100644 (file)
@@ -2678,8 +2678,8 @@ typedef enum {
  * VIR_DOMAIN_BLOCK_COPY_BUF_SIZE:
  * Macro for the virDomainBlockCopy buffer size tunable: it represents
  * how much data in bytes can be in flight between source and destination,
- * as an unsigned int. Specifying 0 is the same as omitting this parameter,
- * to request the hypervisor default.
+ * as an unsigned long long. Specifying 0 is the same as omitting this
+ * parameter, to request the hypervisor default.
  */
 #define VIR_DOMAIN_BLOCK_COPY_BUF_SIZE "buf-size"