[LTP] [Patch v6 0/8] improvement work on libswap library

Li Wang liwang@redhat.com
Wed Jan 31 11:25:06 CET 2024


v5-->v6
	* return bool for is_swap_supported
	* test swap file on the MNTPOINT
	* remove some unnecessary comments

CI: https://github.com/wangli5665/ltp/actions/runs/7724190252/job/21055841641

Test Env:
        Fedora38(x86_64, Btrfs), RHEL9(s390x, XFS), RHEL8(aarch64, XFS)

Li Wang (7):
  libswap: add known swap supported fs check
  swapon01: Improving test with memory limits and swap reporting
  libswap: add function to prealloc contiguous file
  libswap: Introduce file contiguity check
  libswap: customize swapfile size
  swapon/off: enable all_filesystem in swap test
  libswap: Refactor is_swap_supported function to return status

Petr Vorel (1):
  swapon01: Test on all filesystems

 include/libswap.h                             |   4 +-
 libs/libltpswap/libswap.c                     | 188 ++++++++++++++++--
 testcases/kernel/syscalls/swapoff/swapoff01.c |  19 +-
 testcases/kernel/syscalls/swapoff/swapoff02.c |  20 +-
 testcases/kernel/syscalls/swapon/swapon01.c   |  18 +-
 testcases/kernel/syscalls/swapon/swapon02.c   |  27 ++-
 testcases/kernel/syscalls/swapon/swapon03.c   |  12 +-
 7 files changed, 234 insertions(+), 54 deletions(-)

-- 
2.40.1



More information about the ltp mailing list