]> git.proxmox.com Git - mirror_qemu.git/commit - blockdev.c
block: make 'top' argument to block-commit optional
authorJeff Cody <jcody@redhat.com>
Mon, 30 Jun 2014 13:14:15 +0000 (15:14 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 1 Jul 2014 08:15:33 +0000 (10:15 +0200)
commit7676e2c597000eff3a7233b40cca768b358f9bc9
treee02d1a413a6d4db0333f9dadd74ad2d9ac9aeea3
parentc891e3bbc5bc3d74ad0ba896852a9796ceb147c2
block: make 'top' argument to block-commit optional

Now that active layer block-commit is supported, the 'top' argument
no longer needs to be mandatory.

Change it to optional, with the default being the active layer in the
device chain.

[kwolf: Rebased and resolved conflict in tests/qemu-iotests/040]

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
blockdev.c
qapi/block-core.json
qmp-commands.hx
tests/qemu-iotests/040