Lines Matching refs:filename
48 static int check_and_swapoff(const char *filename);
59 char *filename; member
85 TEST(ltp_syscall(__NR_swapon, swap_testfiles[0].filename, 0)); in main()
102 (__NR_swapon, swap_testfiles[1].filename, 0)); in main()
112 (__NR_swapon, swap_testfiles[2].filename, in main()
156 char filename[15]; in setup_swap() local
206 if (sprintf(filename, "swapfile%02d", j + 2) < 0) { in setup_swap()
213 make_swapfile(cleanup, filename); in setup_swap()
216 res = ltp_syscall(__NR_swapon, filename, 0); in setup_swap()
227 "swapfile: %s\n", filename); in setup_swap()
249 make_swapfile(cleanup, swap_testfiles[j].filename); in setup_swap()
261 char filename[FILENAME_MAX]; in clean_swap() local
264 if (snprintf(filename, sizeof(filename), in clean_swap()
272 if (check_and_swapoff(filename) != 0) { in clean_swap()
274 filename); in clean_swap()
280 if (check_and_swapoff(swap_testfiles[j].filename) != 0) { in clean_swap()
282 swap_testfiles[j].filename); in clean_swap()
293 static int check_and_swapoff(const char *filename) in check_and_swapoff() argument
299 "grep -q '%s.*file' /proc/swaps", filename) < 0) { in check_and_swapoff()
309 if (ltp_syscall(__NR_swapoff, filename) != 0) { in check_and_swapoff()