[LTP] [PATCH 2/2] fill_fs: Ensure written data is not easily compressed

Cyril Hrubis chrubis@suse.cz
Tue Dec 6 14:33:02 CET 2022


Hi!
> --- a/lib/tst_fill_fs.c
> +++ b/lib/tst_fill_fs.c
> @@ -16,13 +16,20 @@ void tst_fill_fs(const char *path, int verbose)
>  {
>  	int i = 0;
>  	char file[PATH_MAX];
> -	char buf[4096];
> +	static char buf[4096];

I'm not sure if caching the random data is worth here, I bet that
reading the random data would be neglectible to the rest of the write
operations we do.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list