]> xenbits.xensource.com Git - libvirt.git/commit
qemu_driver.c: factor out duplication in compression-type handling
authorJim Meyering <meyering@redhat.com>
Wed, 9 Sep 2009 08:10:38 +0000 (10:10 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 9 Sep 2009 10:11:34 +0000 (12:11 +0200)
commitaec22258ef01d7cf36b031a42d9963b58171707e
tree0a5463a563bb75a11f03633d8030a99904ab0c5f
parent1aec7d8606b604056cf2aec824eea0af1034e832
qemu_driver.c: factor out duplication in compression-type handling

* src/qemu_driver.c (QEMUD_SAVE_FORMAT_LAST): Define.
(qemudSaveCompressionTypeFromString): Declare.
(qemudSaveCompressionTypeToString): Declare.
(qemudDomainSave): Use those functions rather than open-coding them.
Use "cat >> '%s' ..." in place of equivalent
"dd of='%s' oflag=append conv=notrunc ...".
src/qemu_driver.c