qemu-img: Require larger zero areas for sparse handling
authorKevin Wolf <kwolf@redhat.com>
Fri, 26 Aug 2011 13:27:13 +0000 (15:27 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 29 Aug 2011 12:42:39 +0000 (14:42 +0200)
commiteb7f480fc2b8bdee43853ed5722882b037a25674
treeb9992c37d4a4645e6282375c669ae1e771206a1c
parent54a96714ce32dc9138411a37bc59861b982a3131
qemu-img: Require larger zero areas for sparse handling

By default, require 4k of consecutive zero bytes for qemu-img to make the
output file sparse by not issuing a write request for the zeroed parts. Add an
-S option to allow users to tune this setting.

This helps to avoid situations where a lot of zero sectors and data sectors are
mixed and qemu-img tended to issue many tiny 512 byte writes.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-img-cmds.hx
qemu-img.c
qemu-img.texi