@@ -192,7 +192,7 @@ int make_swapfile(const char *file, const int lineno,
bool is_swap_supported(const char *filename)
{
int i, sw_support = 0;
- int ret = SAFE_MAKE_SWAPFILE_BLKS(filename, 10);
+ int ret = SAFE_MAKE_MINIMAL_SWAPFILE(filename);
int fi_contiguous = file_is_contiguous(filename);
long fs_type = tst_fs_type(filename);
const char *fstype = tst_fs_type_name(fs_type);
@@ -87,7 +87,7 @@ static void setup(void)
nobody_uid = nobody->pw_uid;
is_swap_supported(TEST_FILE);
- SAFE_MAKE_SWAPFILE_BLKS(SWAP_FILE, 10);
+ SAFE_MAKE_MINIMAL_SWAPFILE(SWAP_FILE);
}
static struct tst_test test = {
@@ -50,8 +50,8 @@ static void setup(void)
is_swap_supported(TEST_FILE);
SAFE_TOUCH(NOTSWAP_FILE, 0777, NULL);
- MAKE_SWAPFILE_BLKS(SWAP_FILE, 10);
- MAKE_SWAPFILE_BLKS(USED_FILE, 10);
+ MAKE_MINIMAL_SWAPFILE(SWAP_FILE);
+ MAKE_MINIMAL_SWAPFILE(USED_FILE);
if (tst_syscall(__NR_swapon, USED_FILE, 0))
tst_res(TWARN | TERRNO, "swapon(alreadyused) failed");
@@ -49,7 +49,7 @@ static int setup_swap(void)
/* Create the swapfile */
snprintf(filename, sizeof(filename), "%s%02d", TEST_FILE, j + 2);
- MAKE_SWAPFILE_BLKS(filename, 10);
+ MAKE_MINIMAL_SWAPFILE(filename);
/* turn on the swap file */
TST_EXP_PASS_SILENT(swapon(filename, 0));
@@ -62,7 +62,7 @@ static int setup_swap(void)
tst_brk(TFAIL, "Failed to setup swap files");
tst_res(TINFO, "Successfully created %d swap files", swapfiles);
- MAKE_SWAPFILE_BLKS(TEST_FILE, 10);
+ MAKE_MINIMAL_SWAPFILE(TEST_FILE);
return 0;
}