]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
xfs/176: fix broken setup code
authorDave Chinner <dchinner@redhat.com>
Tue, 26 Nov 2024 20:58:10 +0000 (07:58 +1100)
committerZorro Lang <zlang@kernel.org>
Sun, 8 Dec 2024 14:09:21 +0000 (22:09 +0800)
commit732e70d57edc44b120ed49da4abd90e9cd62c11c
tree02aa0dbde62dad335c9ea89d30ca190b84464abe
parent92d6f78787436b0de653532c93bd059fd80877bc
xfs/176: fix broken setup code

The test does not pass the mkfs output through the mkfs filter, so
the inode size is not set up correctly. Hence it calculates the
CHUNK_SIZE as 0, and it ends up getting stuck in an endless loop
throwing ENOSPC errors because the offset never changes.

While there, use 'echo -n' rather than 'touch' to create zero length
files much faster.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Zorro lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/176