public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 0/3] swapon03: Try to swapon() as many files until it fails
@ 2025-11-05 15:47 Petr Vorel
  2025-11-05 15:47 ` [LTP] [PATCH 1/3] swapon03: Cleanup Petr Vorel
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Petr Vorel @ 2025-11-05 15:47 UTC (permalink / raw)
  To: ltp

Hi,

Previously tst_max_swapfiles() had fine tuning for a specific kernel
version which was fragile due various backports in enterprise kernels.

Let's try to create and use as many swap files until swapon() fails.
Then check for expected EPERM.

+ minor cleanup.

Petr Vorel (3):
  swapon03: Cleanup
  swapon03: Try to swapon() as many files until it fails
  libswap: Remove now unused tst_max_swapfiles()

 include/libswap.h                           |  7 --
 libs/swap/libswap.c                         | 64 ---------------
 testcases/kernel/syscalls/swapon/swapon03.c | 86 +++++++++++----------
 3 files changed, 47 insertions(+), 110 deletions(-)

-- 
2.51.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-11-06 13:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-05 15:47 [LTP] [PATCH 0/3] swapon03: Try to swapon() as many files until it fails Petr Vorel
2025-11-05 15:47 ` [LTP] [PATCH 1/3] swapon03: Cleanup Petr Vorel
2025-11-05 15:47 ` [LTP] [PATCH 2/3] swapon03: Try to swapon() as many files until it fails Petr Vorel
2025-11-06  3:46   ` Li Wang via ltp
2025-11-06  9:07     ` Petr Vorel
2025-11-06 10:11   ` Avinesh Kumar
2025-11-06 12:03     ` Petr Vorel
2025-11-06 13:31       ` Avinesh Kumar
2025-11-05 15:47 ` [LTP] [PATCH 3/3] libswap: Remove now unused tst_max_swapfiles() Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox