Incorporating review comments from v1:
https://www.redhat.com/archives/libvir-list/2011-July/msg00842.html
Still to be written: new API for managing save state images in isolation:
https://www.redhat.com/archives/libvir-list/2011-July/msg00855.html
virConnectDomainSaveGetXMLDesc
virConnectDomainSaveModify
as well as virsh commands to wrap them:
virsh managedsave-dumpxml file
virsh managedsave-define file xml
virsh managedsave-edit file
Eric Blake (16):
command: move all docs into .c file
command: avoid leaking fds across fork
build: rename files.h to virfile.h
qemu: fix error message with migrate2 xml
save: document new public API
save: wire up remote protocol
save: wire up trivial save/restore flags implementations
save: add --bypass-cache flag to virsh save/restore operations
save: support --xml to virsh save/restore
save: let iohelper handle inherited fd
save: let iohelper work on O_DIRECT fds
save: add virFileDirectFd wrapper type
save: support BYPASS_CACHE during qemu save/restore
save: support bypass-cache flag in qemu.conf
save: support bypass-cache flag in libvirt-guests init script
save: support qemu modifying xml on domain save/restore
HACKING | 2 +-
cfg.mk | 3 +-
configure.ac | 6 +-
daemon/libvirtd.c | 2 +-
docs/hacking.html.in | 2 +-
include/libvirt/libvirt.h.in | 30 ++-
po/POTFILES.in | 1 +
src/Makefile.am | 2 +-
src/conf/domain_conf.c | 2 +-
src/conf/network_conf.c | 2 +-
src/conf/nwfilter_conf.c | 2 +-
src/conf/storage_conf.c | 2 +-
src/conf/storage_encryption_conf.c | 2 +-
src/driver.h | 12 +
src/fdstream.c | 36 +--
src/libvirt.c | 181 ++++++++++++-
src/libvirt_private.syms | 16 +-
src/libvirt_public.syms | 2 +
src/libxl/libxl_conf.c | 2 +-
src/libxl/libxl_driver.c | 36 +++-
src/locking/lock_driver_sanlock.c | 2 +-
src/lxc/lxc_container.c | 2 +-
src/lxc/lxc_controller.c | 2 +-
src/lxc/lxc_driver.c | 2 +-
src/node_device/node_device_linux_sysfs.c | 2 +-
src/nodeinfo.c | 2 +-
src/nwfilter/nwfilter_ebiptables_driver.c | 2 +-
src/openvz/openvz_conf.c | 2 +-
src/openvz/openvz_driver.c | 2 +-
src/phyp/phyp_driver.c | 2 +-
src/qemu/libvirtd_qemu.aug | 2 +
src/qemu/qemu.conf | 16 +
src/qemu/qemu_capabilities.c | 2 +-
src/qemu/qemu_command.c | 18 +--
src/qemu/qemu_conf.c | 12 +-
src/qemu/qemu_conf.h | 5 +-
src/qemu/qemu_domain.c | 2 +-
src/qemu/qemu_driver.c | 229 ++++++++++++----
src/qemu/qemu_hotplug.c | 2 +-
src/qemu/qemu_migration.c | 4 +-
src/qemu/qemu_monitor.c | 2 +-
src/qemu/qemu_process.c | 2 +-
src/remote/remote_driver.c | 4 +-
src/remote/remote_protocol.x | 17 +-
src/remote_protocol-structs | 13 +
src/rpc/virnetclient.c | 2 +-
src/rpc/virnetserver.c | 2 +-
src/rpc/virnetsocket.c | 2 +-
src/secret/secret_driver.c | 2 +-
src/security/security_apparmor.c | 2 +-
src/security/security_selinux.c | 2 +-
src/security/virt-aa-helper.c | 2 +-
src/storage/storage_backend.c | 2 +-
src/storage/storage_backend_fs.c | 2 +-
src/storage/storage_backend_iscsi.c | 2 +-
src/storage/storage_backend_logical.c | 2 +-
src/storage/storage_backend_mpath.c | 2 +-
src/storage/storage_backend_scsi.c | 2 +-
src/storage/storage_driver.c | 2 +-
src/test/test_driver.c | 44 +++-
src/uml/uml_conf.c | 2 +-
src/uml/uml_driver.c | 2 +-
src/util/bridge.c | 2 +-
src/util/cgroup.c | 2 +-
src/util/command.c | 430 +++++++++++++++++++++--------
src/util/command.h | 223 +--------------
src/util/conf.c | 2 +-
src/util/dnsmasq.c | 2 +-
src/util/event_poll.c | 2 +-
src/util/files.c | 80 ------
src/util/hooks.c | 2 +-
src/util/interface.c | 2 +-
src/util/iohelper.c | 194 ++++++++++---
src/util/logging.c | 2 +-
src/util/macvtap.c | 2 +-
src/util/pci.c | 2 +-
src/util/stats_linux.c | 2 +-
src/util/storage_file.c | 2 +-
src/util/util.c | 2 +-
src/util/uuid.c | 2 +-
src/util/viraudit.c | 2 +-
src/util/virfile.c | 253 +++++++++++++++++
src/util/{files.h => virfile.h} | 33 ++-
src/vbox/vbox_tmpl.c | 2 +-
src/vmware/vmware_conf.c | 2 +-
src/vmware/vmware_driver.c | 2 +-
src/xen/block_stats.c | 2 +-
src/xen/xen_driver.c | 36 +++-
src/xen/xen_hypervisor.c | 2 +-
src/xen/xen_inotify.c | 2 +-
src/xen/xend_internal.c | 2 +-
tests/commandhelper.c | 2 +-
tests/commandtest.c | 2 +-
tests/nodeinfotest.c | 2 +-
tests/testutils.c | 2 +-
tests/virnetsockettest.c | 2 +-
tests/xencapstest.c | 2 +-
tools/console.c | 2 +-
tools/libvirt-guests.init.sh | 10 +-
tools/libvirt-guests.sysconf | 5 +
tools/virsh.c | 107 ++++++--
tools/virsh.pod | 47 +++-
102 files changed, 1560 insertions(+), 685 deletions(-)
delete mode 100644 src/util/files.c
create mode 100644 src/util/virfile.c
rename src/util/{files.h => virfile.h} (57%)
--
1.7.4.4