aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZorro Lang <zlang@redhat.com>2022-01-29 12:44:31 +0800
committerEryu Guan <guaneryu@gmail.com>2022-02-14 01:10:47 +0800
commitcd99a4999bfb273319b6494c8e9497b063684059 (patch)
treef68877957528a9468816ffba1fc65e703dc7a054
parent394c20991779de09e6fb1b60aa5c9eab1dfc9549 (diff)
downloadxfstests-dev-cd99a4999bfb273319b6494c8e9497b063684059.tar.gz
fsx: disable allocsp_calls if -F is specified
As the fsx.c source code says: int fallocate_calls = 1; /* -F flag disables */ int allocsp_calls = 1; /* -F flag disables */ The allocsp_calls and fallocate_calls should be disabled, if the -F option is specified. But current fsx forgets to disable allocsp_calls as is documented. Signed-off-by: Zorro Lang <zlang@redhat.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
-rw-r--r--ltp/fsx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ltp/fsx.c b/ltp/fsx.c
index 520e53a274..3ee37fe8ec 100644
--- a/ltp/fsx.c
+++ b/ltp/fsx.c
@@ -2835,6 +2835,7 @@ main(int argc, char **argv)
break;
case 'F':
fallocate_calls = 0;
+ allocsp_calls = 0;
break;
case 'K':
keep_size_calls = 0;