[LTP] [Patch v6 6/8] libswap: customize swapfile size
Petr Vorel
pvorel@suse.cz
Wed Jan 31 19:01:30 CET 2024
Hi Li,
> The key change is the modification of the make_swapfile function to
> accept an additional parameter blocks, specifying the number of
> blocks to allocate for the swap file. This change allows for more
> granular control over the size of swap files created during tests.
Reviewed-by: Petr Vorel <pvorel@suse.cz>
...
> diff --git a/include/libswap.h b/include/libswap.h
> index d4b5301a5..e67d65756 100644
> --- a/include/libswap.h
> +++ b/include/libswap.h
> @@ -14,7 +14,7 @@
> /*
> * Make a swap file
> */
nit: it'd be nice to have a parameter description (feel free to add before
merge).
> -int make_swapfile(const char *swapfile, int safe);
> +int make_swapfile(const char *swapfile, int blocks, int safe);
Kind regards,
Petr
More information about the ltp
mailing list