libvirt/tools
Eric Blake c1d75deea2 blockcopy: expose new API in virsh
Expose the new power of virDomainBlockCopy through virsh (well,
all but the finer-grained bandwidth, as that is its own can of
worms for a later patch).  Continue to use the older API where
possible, for maximum compatibility.

The command now requires either --dest (with optional --format
and --blockdev), to directly describe the file destination, or
--xml, to name a file that contains an XML description such as:

<disk type='network'>
  <driver type='raw'/>
  <source protocol='gluster' name='vol1/img'>
    <host name='red'/>
  </source>
</disk>

[well, it may be a while before the qemu driver is actually patched
to act on that particular xml beyond just parsing it, but the virsh
interface won't need changing at that time]

Non-zero option parameters are converted into virTypedParameters,
and if anything requires the new API, the command can synthesize
appropriate XML even if the --dest option was used instead of --xml.

The existing --raw flag remains for back-compat, but the preferred
spelling is now --format=raw, since the new API now allows us
to specify all formats rather than just a boolean raw to suppress
probing.

I hope I did justice in describing the effects of granularity and
buf-size on how they get passed through to qemu.

* tools/virsh-domain.c (cmdBlockCopy): Add new options --xml,
--granularity, --buf-size, --format. Make --raw an alias for
--format=raw. Call new API if new parameters are in use.
* tools/virsh.pod (blockcopy): Document new options.

Signed-off-by: Eric Blake <eblake@redhat.com>
2014-09-06 21:45:05 -06:00
..
wireshark Fix const correctness 2014-07-16 12:07:24 +02:00
libvirt_win_icon_16x16.ico
libvirt_win_icon_32x32.ico
libvirt_win_icon_48x48.ico
libvirt_win_icon_64x64.ico
libvirt-guests.init.in
libvirt-guests.service.in
libvirt-guests.sh.in libvirt-guests: fix some typos in a comment 2014-07-25 12:06:07 +02:00
libvirt-guests.sysconf
Makefile.am
virsh_win_icon.rc
virsh-console.c
virsh-console.h
virsh-domain-monitor.c virsh: Implement command to excercise the bulk stats APIs 2014-08-28 13:28:32 +02:00
virsh-domain-monitor.h
virsh-domain.c blockcopy: expose new API in virsh 2014-09-06 21:45:05 -06:00
virsh-domain.h virsh: domain: Split out code to lookup domain from string 2014-08-26 22:48:05 +02:00
virsh-edit.c
virsh-host.c maint: use consistent if-else braces in remaining spots 2014-09-04 14:34:03 -06:00
virsh-host.h
virsh-interface.c
virsh-interface.h
virsh-network.c virsh-network: Resolve Coverity RESOURCE_LEAK 2014-08-28 08:12:16 -04:00
virsh-network.h
virsh-nodedev.c virsh-nodedev: Avoid spurious errors 2014-06-02 18:09:09 +02:00
virsh-nodedev.h
virsh-nwfilter.c
virsh-nwfilter.h
virsh-pool.c storage: ZFS support 2014-08-12 19:40:20 +04:00
virsh-pool.h
virsh-secret.c maint: shorten 'TypeType' function names 2014-05-16 00:22:18 -06:00
virsh-secret.h
virsh-snapshot.c
virsh-snapshot.h
virsh-volume.c cleanup spaces between parentheses and braces 2014-08-20 14:50:21 +02:00
virsh-volume.h
virsh.c blockjob: add new --bytes flag to virsh blockjob 2014-09-05 13:13:23 -06:00
virsh.h blockjob: add new --bytes flag to virsh blockjob 2014-09-05 13:13:23 -06:00
virsh.pod blockcopy: expose new API in virsh 2014-09-06 21:45:05 -06:00
virt-host-validate-common.c
virt-host-validate-common.h
virt-host-validate-lxc.c
virt-host-validate-lxc.h
virt-host-validate-qemu.c
virt-host-validate-qemu.h
virt-host-validate.c
virt-login-shell.c
virt-login-shell.conf
virt-login-shell.pod
virt-pki-validate.in
virt-sanlock-cleanup.in
virt-xml-validate.in