[LTP] [PATCH v2 1/5] swapon03: Don't create swap file twice
Petr Vorel
pvorel@suse.cz
Tue Nov 11 16:24:14 CET 2025
> Hi!
> > MAKE_SMALL_SWAPFILE(TEST_FILE) call is not needed, because the file is
> > created by is_swap_supported(TEST_FILE) call.
> I find it a bit ugly to depend on a leftover from is_swap_supported() to
> create the final swapfile. Maybe it would be cleaner to pass a path to
> an already created swapfile to the is_swap_supported() function instead
> so that the tests would create the file explicitly.
Sounds indeed better. I'll add it to my TODO list. Patchset could be rebased to
not include this for now.
Kind regards,
Petr
More information about the ltp
mailing list