mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
Setting the 'sparse' optional boolean causes writes to be omitted if the block to be written contains all zero bytes. This should help with sparse backing files (eg. raw, qcow2, dm-thin, etc). Also, modify virt-resize to use this option by default when copying devices. The savings in virt-resize can be quite startling, eg 'du -sh' (ie. true size) of a resized disk image: 8.1G /tmp/f15x32-resized.img # before this change 3.2G /tmp/f15x32-resized.img # after this change