Skip to content
  • Stefan Hajnoczi's avatar
    0e71be19
    qed: add .bdrv_co_write_zeroes() support · 0e71be19
    Stefan Hajnoczi authored
    
    
    Zero writes are a dedicated interface for writing regions of zeroes into
    the image file.  If clusters are not yet allocated it is possible to use
    an efficient metadata representation which keeps the image file compact
    and does not store individual zero bytes.
    
    Implementing this for the QED image format is fairly straightforward.
    The only issue is that when a zero write touches an existing cluster we
    have to allocate a bounce buffer and perform a regular write.
    
    Signed-off-by: default avatarStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    0e71be19
    qed: add .bdrv_co_write_zeroes() support
    Stefan Hajnoczi authored
    
    
    Zero writes are a dedicated interface for writing regions of zeroes into
    the image file.  If clusters are not yet allocated it is possible to use
    an efficient metadata representation which keeps the image file compact
    and does not store individual zero bytes.
    
    Implementing this for the QED image format is fairly straightforward.
    The only issue is that when a zero write touches an existing cluster we
    have to allocate a bounce buffer and perform a regular write.
    
    Signed-off-by: default avatarStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
Loading