]> xenbits.xensource.com Git - qemu-xen.git/commit
file-posix: Support BDRV_REQ_ZERO_WRITE for truncate
authorKevin Wolf <kwolf@redhat.com>
Fri, 24 Apr 2020 12:54:44 +0000 (14:54 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 30 Apr 2020 15:51:07 +0000 (17:51 +0200)
commit2f0c6e7a650de133eccd94e9bb6cf7b2070f07f1
tree3f297a56f774a0e18cfcc5423b11969088275d90
parent1ddaabaecb7eaeb6d8948a32340af95db44c54a1
file-posix: Support BDRV_REQ_ZERO_WRITE for truncate

For regular files, we always get BDRV_REQ_ZERO_WRITE behaviour from the
OS, so we can advertise the flag and just ignore it.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200424125448.63318-7-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/file-posix.c