]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fallocate: add FALLOC_FL_WRITE_ZEROES support
authorZhang Yi <yi.zhang@huawei.com>
Wed, 13 Aug 2025 02:40:15 +0000 (10:40 +0800)
committerKarel Zak <kzak@redhat.com>
Wed, 13 Aug 2025 10:15:14 +0000 (12:15 +0200)
commitf27b33b45f9d7daf745dba8b71996efd1120407a
treec7dd0939d55d30f9d446aad77a968320053f1d7c
parent477752620c9826ce9b568045f3184d04464ff67e
fallocate: add FALLOC_FL_WRITE_ZEROES support

The Linux kernel (since version 6.17) supports FALLOC_FL_WRITE_ZEROES in
fallocate(2). Add support for FALLOC_FL_WRITE_ZEROES to the fallocate
utility by introducing a new option -w|--write-zeroes.

Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=278c7d9b5e0c
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
sys-utils/fallocate.1.adoc
sys-utils/fallocate.c