« Previous | Next » 

Revision 72706ea4

ID72706ea4cd38bfcb151265df0178ba21863d7518

Added by Jeff Cody about 10 years ago

block: resize backing file image during offline commit, if necessary

Currently, if an image file is logically larger than its backing file,
committing it via 'qemu-img commit' will fail.

For instance, if we have a base image with a virtual size 10G, and a
snapshot image of size 20G, then committing the snapshot offline with
'qemu-img commit' will likely fail.

This will automatically attempt to resize the base image, if the
snapshot image to be committed is larger.

Signed-off-by: Jeff Cody <>
Reviewed-by: Fam Zheng <>
Reviewed-by: Eric Blake <>
Reviewed-by: Benoit Canet <>
Signed-off-by: Kevin Wolf <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences