Home
last modified time | relevance | path

Searched hist:ef72f76e (Results 1 – 1 of 1) sorted by relevance

/qemu/block/
H A Dqed.cef72f76e Tue Aug 28 13:04:27 GMT 2012 Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> qed: refuse unaligned zero writes with a backing file

Zero writes have cluster granularity in QED. Therefore they can only be
used to zero entire clusters.

If the zero write request leaves sectors untouched, zeroing the entire
cluster would obscure the backing file. Instead return -ENOTSUP, which
is handled by block.c:bdrv_co_do_write_zeroes() and falls back to a
regular write.

The qemu-iotests 034 test cases covers this scenario.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>