diff options
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2012-08-28 14:04:27 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-08-29 15:23:35 +0200 |
commit | ef72f76e58107bd4096018c3db2912d28249308e (patch) | |
tree | a4601e141bf87c772980c1aef6c0fd462dc3fe87 /coroutine-sigaltstack.c | |
parent | 18fec301cd2a38f72a5eeba2656a0c5b4fa69fb7 (diff) |
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>
Diffstat (limited to 'coroutine-sigaltstack.c')
0 files changed, 0 insertions, 0 deletions