Home | History | Annotate | Download | only in swapon

Lines Matching refs:filename

48 static int check_and_swapoff(const char *filename);
59 char *filename;
85 TEST(ltp_syscall(__NR_swapon, swap_testfiles[0].filename, 0));
102 (__NR_swapon, swap_testfiles[1].filename, 0));
112 (__NR_swapon, swap_testfiles[2].filename,
156 char filename[15];
205 /* prepare filename for the iteration */
206 if (sprintf(filename, "swapfile%02d", j + 2) < 0) {
208 "filename");
213 make_swapfile(cleanup, filename);
216 res = ltp_syscall(__NR_swapon, filename, 0);
227 "swapfile: %s\n", filename);
249 make_swapfile(cleanup, swap_testfiles[j].filename);
261 char filename[FILENAME_MAX];
264 if (snprintf(filename, sizeof(filename),
266 tst_resm(TWARN, "sprintf() failed to create filename");
272 if (check_and_swapoff(filename) != 0) {
274 filename);
280 if (check_and_swapoff(swap_testfiles[j].filename) != 0) {
282 swap_testfiles[j].filename);
293 static int check_and_swapoff(const char *filename)
299 "grep -q '%s.*file' /proc/swaps", filename) < 0) {
309 if (ltp_syscall(__NR_swapoff, filename) != 0) {