• K
    qemu-img: Require larger zero areas for sparse handling · a22f123c
    Kevin Wolf 提交于
    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: NKevin Wolf <kwolf@redhat.com>
    a22f123c
qemu-img.c 45.5 KB