]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: (swaplabel) don't create test image with truncate(1)
authorThomas Weißschuh <thomas@t-8ch.de>
Sat, 1 Nov 2025 15:50:49 +0000 (16:50 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Sat, 8 Nov 2025 14:08:27 +0000 (15:08 +0100)
commitccb00ea5efe064b265104fbd19b36883172d9700
tree88fd39a5de71b985850f13b90288c04feed52cb1
parent13b4a466cef2ff9176cb40eaaf0a82f42c1f0f71
tests: (swaplabel) don't create test image with truncate(1)

truncate(1) can create holes in the file. These will trigger a warning
in mkswap(1), failing the testsuite. Given that fallocate(1) now alway
supports posix_fallocate() which works on all filesystems, truncate(1)
is unnecessary anyways.

Reported-by: Christian Hesse <mail@eworm.de>
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
tests/ts/misc/swaplabel