]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fallocate: allow O_CREATE if mode is FALLOC_FL_WRITE_ZEROES
authorLukas Herbolt <lukas@herbolt.com>
Wed, 1 Oct 2025 11:54:50 +0000 (13:54 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 1 Oct 2025 13:05:32 +0000 (15:05 +0200)
commit3059771445a81446544bbb08ba2dfeb4506ba598
tree11d0a476d16979212d156c2df5e532006ff75a64
parent2412842c253c31559e5e6e9b6f3ecba7902aeafa
fallocate: allow O_CREATE if mode is FALLOC_FL_WRITE_ZEROES

With the new flag we can create the ZEROED allcoated files directly and not
in the two steps. Removing FALLOC_FL_WRITE_ZEROES from the flags of not using
O_CREATE on open().

Signed-off-by: Lukas Herbolt <lukas@herbolt.com>
sys-utils/fallocate.c