]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
fuzzy: clear out the scratch filesystem if it's too full
authorDarrick J. Wong <djwong@kernel.org>
Fri, 30 Dec 2022 22:12:54 +0000 (14:12 -0800)
committerZorro Lang <zlang@kernel.org>
Sat, 14 Jan 2023 13:51:18 +0000 (21:51 +0800)
commit4564b9e5c51519dbe5a9572e30157d99dfb98334
tree857084da7f01c2db76f1e4c8d9d9c7c0f0437c2b
parentae42d50a2acd193c7e11f2bb8ee1de7f4a124473
fuzzy: clear out the scratch filesystem if it's too full

If the online fsck stress tests run for long enough, they'll fill up the
scratch filesystem completely.  While it is interesting to test repair
functionality on a *nearly* full filesystem undergoing a heavy workload,
a totally full filesystem is really only exercising the ENOSPC handlers
in the kernel.  That's not what we came here to test, so change the
fsstress loop to detect a nearly full filesystem and erase everything
before starting fsstress again.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/fuzzy