OSDN Git Service

vdi: Change 'static' create option to 'preallocation' in QMP
authorKevin Wolf <kwolf@redhat.com>
Tue, 20 Mar 2018 14:08:00 +0000 (15:08 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 26 Mar 2018 10:16:12 +0000 (12:16 +0200)
commit61fa64871dcd823633aac129762d424a8a19e6ee
tree91aeaca09122048e2901fbe93026018b8ddba8c9
parentabf754fe406ecaf5b5018a6f34b2eba569352673
vdi: Change 'static' create option to 'preallocation' in QMP

What static=on really does is what we call metadata preallocation for
other block drivers. While we can still change the QMP interface, make
it more consistent by using 'preallocation' for VDI, too.

This doesn't implement any new functionality, so the only supported
preallocation modes are 'off' and 'metadata' for now.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/vdi.c
qapi/block-core.json