From 37222900743962e146a82b7077a18c3f39859a19 Mon Sep 17 00:00:00 2001 From: Jeff Cody Date: Fri, 24 Jan 2014 09:02:37 -0500 Subject: block: update block commit documentation regarding image truncation This updates the documentation for commiting snapshot images. Specifically, this highlights what happens when the base image is either smaller or larger than the snapshot image being committed. In the case of the base image being smaller, it is resized to the larger size of the snapshot image. In the case of the base image being larger, it is not resized automatically, but once the commit has completed it is safe for the user to truncate the base image. Signed-off-by: Jeff Cody Reviewed-by: Fam Zheng Reviewed-by: Eric Blake Signed-off-by: Kevin Wolf --- qapi-schema.json | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'qapi-schema.json') diff --git a/qapi-schema.json b/qapi-schema.json index e04949de52..1ff607ac3c 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -1994,6 +1994,13 @@ # user needs to complete the job with the block-job-complete # command after getting the ready event. (Since 2.0) # +# If the base image is smaller than top, then the base image +# will be resized to be the same size as top. If top is +# smaller than the base image, the base will not be +# truncated. If you want the base image size to match the +# size of the smaller top, you can safely truncate it +# yourself once the commit operation successfully completes. +# # # @speed: #optional the maximum speed, in bytes per second # -- cgit v1.2.1