From: Zorro Lang Date: Sat, 29 Jan 2022 04:44:31 +0000 (+0800) Subject: fsx: disable allocsp_calls if -F is specified X-Git-Tag: v2022.05.01~91 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=cd99a4999bfb273319b6494c8e9497b063684059;p=xfstests-dev.git 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 Reviewed-by: Darrick J. Wong Signed-off-by: Eryu Guan --- diff --git a/ltp/fsx.c b/ltp/fsx.c index 520e53a2..3ee37fe8 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;