]> xenbits.xensource.com Git - libvirt.git/commit
add compression support for "virsh dump"
authorKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Thu, 28 Oct 2010 07:31:46 +0000 (16:31 +0900)
committerEric Blake <eblake@redhat.com>
Fri, 29 Oct 2010 16:04:34 +0000 (10:04 -0600)
commit95a17abda7116d71bacda456647225ccd9dd9c99
tree702183fc69c9512578400bca018ee89e26a62189
parent41b2cee2a8946c3ee293ca04ed60f7e2817936b9
add compression support for "virsh dump"

Add dump_image_format[] to qemu.conf and support compressed dump
at virsh dump. coredump compression is important for saving disk space
in an environment where multiple guests run.

In general, "disk space for dump" is specially allocated and will be
a dead space in the system. It's used only at emergency. So, it's better
to have both of save_image_format and dump_image_format. "save" is done
in scheduled manner with enough calculated disk space for it.

This code reuses some of save_image_format[] and supports the same format.

Changelog:
 - modified libvirtd_qemu.aug
 - modified test_libvirtd_qemu.aug
 - fixed error handling of qemudSaveCompressionTypeFromString()
src/qemu/libvirtd_qemu.aug
src/qemu/qemu.conf
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
src/qemu/qemu_driver.c
src/qemu/test_libvirtd_qemu.aug