[LTP] [PATCH v1] swapoff01.c: Adjust blocks size base on pagesize

Li Wang liwang@redhat.com
Fri Feb 23 05:11:06 CET 2024


Hi Wei, Cyril,


> > I do not think that this is a right solution though. Is there any reason
> > why we pass number of blocks to the make_swapfile instead of megabytes?
> >
> @Li Wang, could you give some clue for above question(for why pass number
> of blocks instead of megabytes)?
>

I just keep the function interface like the original
(it wasn't designed by me:), but I guess the only
advantage is to test 1 block for different FS types.

-- 
Regards,
Li Wang


More information about the ltp mailing list