Skip to content
  • Kevin Wolf's avatar
    qemu-img: Require larger zero areas for sparse handling · a22f123c
    Kevin Wolf authored
    
    
    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: default avatarKevin Wolf <kwolf@redhat.com>
    a22f123c