diff options
author | Denis V. Lunev <den@openvz.org> | 2015-01-30 11:42:14 +0300 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-02-06 17:24:20 +0100 |
commit | b953f075007a7860adce9fa410b2e116a3d5e29c (patch) | |
tree | a74183d720dfb65c01b65fc9acd93c9939f11f2e /migration/vmstate.c | |
parent | 37cc9f7f684ed035da63274daca1594c7ee16213 (diff) | |
download | qemu-b953f075007a7860adce9fa410b2e116a3d5e29c.zip qemu-b953f075007a7860adce9fa410b2e116a3d5e29c.tar.gz qemu-b953f075007a7860adce9fa410b2e116a3d5e29c.tar.bz2 |
block: use fallocate(FALLOC_FL_ZERO_RANGE) in handle_aiocb_write_zeroes
This efficiently writes zeroes on Linux if the kernel is capable enough.
FALLOC_FL_ZERO_RANGE correctly handles all cases, including and not
including file expansion.
CC: Kevin Wolf <kwolf@redhat.com>
CC: Stefan Hajnoczi <stefanha@redhat.com>
CC: Peter Lieven <pl@kamp.de>
CC: Fam Zheng <famz@redhat.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'migration/vmstate.c')
0 files changed, 0 insertions, 0 deletions