]> git.proxmox.com Git - qemu.git/commit - blockdev.c
block: package preparation code in qmp_transaction()
authorWenchao Xia <xiawenc@linux.vnet.ibm.com>
Wed, 8 May 2013 10:25:12 +0000 (18:25 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 24 May 2013 14:17:55 +0000 (16:17 +0200)
commit9b9877ee9f1c27588a286f591852c0b7c0548b6a
treea2128acf2c7ca89e4b73413aa21ed70d9f5addf2
parent64afc2b4d48fb21e085517c38a59a3f61a11283c
block: package preparation code in qmp_transaction()

The code before really committing is moved into a function. Most
code is simply moved from qmp_transaction(), except that on fail it
just returns now. Other code such as input parsing is not touched,
to make it easier in review.

Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c