]> Git Repo - qemu.git/commit
block: use fallocate(FALLOC_FL_ZERO_RANGE) in handle_aiocb_write_zeroes
authorDenis V. Lunev <[email protected]>
Fri, 30 Jan 2015 08:42:14 +0000 (11:42 +0300)
committerKevin Wolf <[email protected]>
Fri, 6 Feb 2015 16:24:20 +0000 (17:24 +0100)
commitb953f075007a7860adce9fa410b2e116a3d5e29c
treea74183d720dfb65c01b65fc9acd93c9939f11f2e
parent37cc9f7f684ed035da63274daca1594c7ee16213
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 <[email protected]>
CC: Stefan Hajnoczi <[email protected]>
CC: Peter Lieven <[email protected]>
CC: Fam Zheng <[email protected]>
Signed-off-by: Denis V. Lunev <[email protected]>
Reviewed-by: Max Reitz <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/raw-posix.c
configure
This page took 0.026341 seconds and 4 git commands to generate.