]> git.proxmox.com Git - mirror_qemu.git/commit - block/file-posix.c
raw-posix: implement write_zeroes with MAY_UNMAP for files
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Nov 2013 12:39:55 +0000 (13:39 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 3 Dec 2013 14:26:49 +0000 (15:26 +0100)
commit260a82e524b7f86c12b8e39d4c3f208af95645f7
tree866cf9e47120f5884e7df2585090201cbed20370
parentfa6252b0565526ec2347e248172f91771e0d9f47
raw-posix: implement write_zeroes with MAY_UNMAP for files

Writing zeroes to a file can be done by punching a hole if
MAY_UNMAP is set.

Note that in this case ENOTSUP is not ignored, but makes
the block layer fall back to the generic implementation.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/raw-posix.c
trace-events