commit | 260a82e524b7f86c12b8e39d4c3f208af95645f7 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Fri Nov 22 13:39:55 2013 +0100 |
committer | Stefan Hajnoczi <stefanha@redhat.com> | Tue Dec 03 15:26:49 2013 +0100 |
tree | 866cf9e47120f5884e7df2585090201cbed20370 | |
parent | fa6252b0565526ec2347e248172f91771e0d9f47 [diff] |
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>