diff options
author | Zorro Lang <zlang@redhat.com> | 2022-01-29 12:44:31 +0800 |
---|---|---|
committer | Eryu Guan <guaneryu@gmail.com> | 2022-02-14 01:10:47 +0800 |
commit | cd99a4999bfb273319b6494c8e9497b063684059 (patch) | |
tree | f68877957528a9468816ffba1fc65e703dc7a054 | |
parent | 394c20991779de09e6fb1b60aa5c9eab1dfc9549 (diff) | |
download | xfstests-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |