]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemu: caps: Add capability for change-backing-file command
authorPeter Krempa <pkrempa@redhat.com>
Mon, 26 May 2014 12:09:22 +0000 (14:09 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 4 Jul 2014 11:00:16 +0000 (13:00 +0200)
This command allows to change the backing file name recorded in the
metadata of a qcow (or other) image. The capability also notifies that
the "block-stream" and "block-commit" commands understand the
"backing-file" attribute.

src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h

index 40ebf2947c491742ef5e1812ecf4ff94dc0c2b6d..c665e2ba2755b3274ccce161af88a20c163ba1f1 100644 (file)
@@ -258,6 +258,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
               "host-pci-multidomain",
               "msg-timestamp",
               "active-commit",
+              "change-backing-file",
     );
 
 
@@ -1415,6 +1416,7 @@ struct virQEMUCapsStringFlags virQEMUCapsCommands[] = {
     { "blockdev-snapshot-sync", QEMU_CAPS_DISK_SNAPSHOT },
     { "add-fd", QEMU_CAPS_ADD_FD },
     { "nbd-server-start", QEMU_CAPS_NBD_SERVER },
+    { "change-backing-file", QEMU_CAPS_CHANGE_BACKING_FILE },
 };
 
 struct virQEMUCapsStringFlags virQEMUCapsEvents[] = {
index 0ea8de8f3851720d7b0f08c6b90091bf61d34244..99cf9ed0194c2ed6feb8a3b17d0fbe3d002c9d8f 100644 (file)
@@ -208,6 +208,7 @@ typedef enum {
     QEMU_CAPS_HOST_PCI_MULTIDOMAIN = 166, /* support domain > 0 in host pci address */
     QEMU_CAPS_MSG_TIMESTAMP      = 167, /* -msg timestamp */
     QEMU_CAPS_ACTIVE_COMMIT      = 168, /* block-commit works without 'top' */
+    QEMU_CAPS_CHANGE_BACKING_FILE = 169, /* change name of backing file in metadata */
 
     QEMU_CAPS_LAST,                   /* this must always be the last item */
 } virQEMUCapsFlags;