]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
fuzzy: abort scrub stress testing if the scratch fs went down
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:50:57 +0000 (21:50 +0800)
commitae42d50a2acd193c7e11f2bb8ee1de7f4a124473
tree443ba779cdb44baeaf815d50c8022a9c28a344b3
parent20df87599f66d0ba396352b5b3f5fd898c7ee176
fuzzy: abort scrub stress testing if the scratch fs went down

There's no point in continuing a stress test of online fsck if the
filesystem goes down.  We can't query that kind of state directly, so as
a proxy we try to stat the mountpoint and interpret any error return as
a sign that the fs is down.

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