[LTP] [PATCH v2 0/2] add method to create swapfile by MB size

Li Wang liwang@redhat.com
Tue Mar 19 11:08:20 CET 2024


V1 --> V2
	* squash 2/3 to 1/3 to make the build completely
	* make use of Wei's suggest to simplify the process
	* refine some code incedent

Li Wang (2):
  libswap: add two methods to create swapfile
  swapon01: create 128MB swapfile

 include/libswap.h                             | 16 ++++++++++++++--
 libs/libltpswap/libswap.c                     | 14 +++++++++++---
 testcases/kernel/syscalls/swapoff/swapoff01.c |  2 +-
 testcases/kernel/syscalls/swapoff/swapoff02.c |  2 +-
 testcases/kernel/syscalls/swapon/swapon01.c   |  2 +-
 testcases/kernel/syscalls/swapon/swapon02.c   |  4 ++--
 testcases/kernel/syscalls/swapon/swapon03.c   |  4 ++--
 7 files changed, 32 insertions(+), 12 deletions(-)

-- 
2.40.1



More information about the ltp mailing list