* [PATCH] fsx: disable allocsp_calls if -F is specified
@ 2022-01-29 4:44 Zorro Lang
2022-01-30 4:56 ` Darrick J. Wong
0 siblings, 1 reply; 2+ messages in thread
From: Zorro Lang @ 2022-01-29 4:44 UTC (permalink / raw)
To: fstests; +Cc: djwong
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>
---
Hi Darrick,
Please help to take a look. I'm not sure if you'd like to disable
allocsp_calls by -F flag, or just copied that line then forgot to
change the F to another ?
Thanks,
Zorro
ltp/fsx.c | 1 +
1 file changed, 1 insertion(+)
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;
--
2.31.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fsx: disable allocsp_calls if -F is specified
2022-01-29 4:44 [PATCH] fsx: disable allocsp_calls if -F is specified Zorro Lang
@ 2022-01-30 4:56 ` Darrick J. Wong
0 siblings, 0 replies; 2+ messages in thread
From: Darrick J. Wong @ 2022-01-30 4:56 UTC (permalink / raw)
To: Zorro Lang; +Cc: fstests
On Sat, Jan 29, 2022 at 12:44:31PM +0800, Zorro Lang wrote:
> 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>
> ---
>
> Hi Darrick,
>
> Please help to take a look. I'm not sure if you'd like to disable
> allocsp_calls by -F flag, or just copied that line then forgot to
> change the F to another ?
Nah, that's ... fine. Thanks for fixing this. I hate ALLOCSP. :)
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
--D
> Thanks,
> Zorro
>
> ltp/fsx.c | 1 +
> 1 file changed, 1 insertion(+)
>
> 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;
> --
> 2.31.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-30 4:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-29 4:44 [PATCH] fsx: disable allocsp_calls if -F is specified Zorro Lang
2022-01-30 4:56 ` Darrick J. Wong
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.