]> git.proxmox.com Git - mirror_qemu.git/commit - blockdev.c
block: Disallow snapshots if the overlay doesn't support backing files
authorAlberto Garcia <berto@igalia.com>
Tue, 3 Nov 2015 10:32:35 +0000 (12:32 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 11 Nov 2015 15:25:48 +0000 (16:25 +0100)
commit08b24cfe3765f4b739700778814048e7d9a045fe
treeece881c5e0c550972730db1419cbc0c846335d6b
parenta0d64a61db602696f4f1895a890c65eda5b3b618
block: Disallow snapshots if the overlay doesn't support backing files

This addresses scenarios like this one:

  { 'execute': 'blockdev-add', 'arguments':
    { 'options': { 'driver': 'qcow2',
                   'node-name': 'new0',
                   'file': { 'driver': 'file',
                             'filename': 'new.qcow2',
                             'node-name': 'file0' } } } }

  { 'execute': 'blockdev-snapshot', 'arguments':
    { 'node': 'virtio0',
      'overlay': 'file0' } }

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c