]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
misc: allow zero duration for fsstress and fsx
authorDarrick J. Wong <djwong@kernel.org>
Wed, 21 Jan 2026 01:26:21 +0000 (17:26 -0800)
committerZorro Lang <zlang@kernel.org>
Sun, 25 Jan 2026 16:05:29 +0000 (00:05 +0800)
commit31f7192f90a89a6f808a37c3a3cd30491bd50eba
treea71aa1de9a07b13d9ace4bdcaef4930c0aa8c273
parent096adc20b3df8f983727f3130c8cd9fd4fd221a6
misc: allow zero duration for fsstress and fsx

Occasionally the common/fuzzy fuzz test helpers manage to time
something just right such that fsx or fsstress get invoked with a zero
second duration.  It's harmless to exit immediately without doing
anything, so allow this corner case.

[zlang: No action is taken if duration is 0]

Cc: fstests@vger.kernel.org # v2023.05.01
Fixes: 3e85dd4fe4236d ("misc: add duration for long soak tests")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
ltp/fsstress.c
ltp/fsx.c