From 4a960ece17c94989d4082f5d3d8c32b34eded57c Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Fri, 7 Dec 2018 12:42:19 +0100 Subject: vmdk: Reject excess extents in blockdev-create Clarify that the number of extents provided in BlockdevCreateOptionsVmdk must match the number of extents that will actually be used. Providing more extents will result in an error now. This requires adapting the test case to provide the right number of extents. Signed-off-by: Kevin Wolf Reviewed-by: Markus Armbruster --- qapi/block-core.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qapi') diff --git a/qapi/block-core.json b/qapi/block-core.json index a5924b40af..5f17d67d71 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -4184,7 +4184,8 @@ # twoGbMaxExtentSparse and twoGbMaxExtentFlat formats. For # monolithicFlat, only one entry is required; for # twoGbMaxExtent* formats, the number of entries required is -# calculated as extent_number = virtual_size / 2GB. +# calculated as extent_number = virtual_size / 2GB. Providing +# more extents than will be used is an error. # @subformat The subformat of the VMDK image. Default: "monolithicSparse". # @backing-file The path of backing file. Default: no backing file is used. # @adapter-type The adapter type used to fill in the descriptor. Default: ide. -- cgit v1.2.3-55-g7522