]> git.proxmox.com Git - mirror_qemu.git/commit
block: x-blockdev-create QMP command
authorKevin Wolf <kwolf@redhat.com>
Tue, 9 Jan 2018 15:50:57 +0000 (16:50 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 9 Mar 2018 14:17:47 +0000 (15:17 +0100)
commitb0292b851b85ba81c0cfedf5b576c32189cfaa11
tree0b9bde93bb32195746ad36129979c6e2394cb6aa
parente8eb8637786635e73df3da3d24aff0e01d48fa51
block: x-blockdev-create QMP command

This adds a synchronous x-blockdev-create QMP command that can create
qcow2 images on a given node name.

We don't want to block while creating an image, so this is not the final
interface in all aspects, but BlockdevCreateOptionsQcow2 and
.bdrv_co_create() are what they actually might look like in the end. In
any case, this should be good enough to test whether we interpret
BlockdevCreateOptions as we should.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/Makefile.objs
block/create.c [new file with mode: 0644]
block/qcow2.c
include/block/block_int.h
qapi/block-core.json