diff options
author | Kevin Wolf <kwolf@redhat.com> | 2018-01-09 17:35:26 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2018-03-09 15:17:47 +0100 |
commit | cbf2b7c4045550353a08c0b182beef7a72e4f813 (patch) | |
tree | dcc6f622f6de7dada70ac9be84cd9d4258de48fe /linux-user | |
parent | 8ca5bfdc46031a10475fce428446d3e3c1b89e5b (diff) |
qcow2: Let qcow2_create() handle protocol layer
Currently, qcow2_create() only parses the QemuOpts and then calls
qcow2_co_create() for the actual image creation, which includes both the
creation of the actual file on the file system and writing a valid empty
qcow2 image into that file.
The plan is that qcow2_co_create() becomes the function that implements
the functionality for a future 'blockdev-create' QMP command, which only
creates the qcow2 layer on an already opened file node.
This is a first step towards that goal: Let's move out anything that
deals with the protocol layer from qcow2_co_create() into
qcow2_create(). This means that qcow2_co_create() doesn't need a file
name any more.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions