Home
last modified time | relevance | path

Searched refs:MNTPOINT (Results 1 – 25 of 73) sorted by relevance

123

/third_party/ltp/testcases/kernel/syscalls/quotactl/
Dquotactl07.c36 SAFE_STATFS(MNTPOINT, &before); in verify_quota()
39 SAFE_STATFS(MNTPOINT, &after); in verify_quota()
58 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, "usrquota"); in setup()
60 SAFE_UMOUNT(MNTPOINT); in setup()
62 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, "noquota"); in setup()
65 fd = SAFE_OPEN(MNTPOINT, O_RDONLY); in setup()
72 if (mount_flag && tst_umount(MNTPOINT)) in cleanup()
73 tst_res(TWARN | TERRNO, "umount(%s)", MNTPOINT); in cleanup()
87 .mntpoint = MNTPOINT,
Dquotactl06.c46 #define USRPATH MNTPOINT "/aquota.user"
47 #define MNTPOINT "mntpoint" macro
48 #define TESTDIR1 MNTPOINT "/testdir1"
49 #define TESTDIR2 MNTPOINT "/testdir2"
172 const char *const cmd[] = {"quotacheck", "-ugF", var->fmt_name, MNTPOINT, NULL}; in setup()
214 .mntpoint = MNTPOINT,
Dquotactl08.c43 #define MNTPOINT "mntpoint" macro
160 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, NULL); in setup()
163 fd = SAFE_OPEN(MNTPOINT, O_RDONLY); in setup()
174 if (mount_flag && tst_umount(MNTPOINT)) in cleanup()
175 tst_res(TWARN | TERRNO, "umount(%s)", MNTPOINT); in cleanup()
217 .mntpoint = MNTPOINT,
/third_party/ltp/testcases/kernel/syscalls/umount2/
Dumount2_01.c41 #define MNTPOINT "mntpoint" macro
83 SAFE_MKDIR(cleanup, MNTPOINT, DIR_MODE); in setup()
94 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); in umount2_verify()
97 fd = SAFE_CREAT(cleanup, MNTPOINT "/file", FILE_MODE); in umount2_verify()
99 TEST(umount2(MNTPOINT, MNT_DETACH)); in umount2_verify()
109 ret = access(MNTPOINT "/file", F_OK); in umount2_verify()
125 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); in umount2_verify()
128 fd = SAFE_OPEN(cleanup, MNTPOINT "/file", O_RDONLY); in umount2_verify()
147 if (tst_umount(MNTPOINT)) in umount2_verify()
158 if (mount_flag && tst_umount(MNTPOINT)) in cleanup()
Dumount2_03.c34 #define MNTPOINT "mntpoint" macro
55 {MNTPOINT, 0,
103 SAFE_MKDIR(cleanup, MNTPOINT, DIR_MODE); in setup()
105 SAFE_SYMLINK(cleanup, MNTPOINT, SYMLINK); in setup()
112 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); in test_umount2()
123 if (tst_umount(MNTPOINT)) in test_umount2()
160 if (mount_flag && tst_umount(MNTPOINT)) in cleanup()
Dumount2_02.c39 #define MNTPOINT "mntpoint" macro
85 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); in main()
92 if (tst_umount(MNTPOINT)) in main()
123 SAFE_MKDIR(cleanup, MNTPOINT, DIR_MODE); in setup()
132 if (access(MNTPOINT, F_OK) == -1) in test_umount2()
136 TEST(umount2_retry(MNTPOINT, test_cases[i].flag)); in test_umount2()
175 if (mount_flag && tst_umount(MNTPOINT)) in cleanup()
/third_party/ltp/testcases/kernel/syscalls/move_mount/
Dmove_mount02.c10 #define MNTPOINT "mntpoint" macro
23 {"invalid-from-fd", &invalid_fd, "", AT_FDCWD, MNTPOINT, MOVE_MOUNT_F_EMPTY_PATH, EBADF},
24 {"invalid-from-path", &fsmfd, "invalid", AT_FDCWD, MNTPOINT, MOVE_MOUNT_F_EMPTY_PATH, ENOENT},
25 {"invalid-to-fd", &fsmfd, "", -1, MNTPOINT, MOVE_MOUNT_F_EMPTY_PATH, EBADF},
27 {"invalid-flags", &fsmfd, "", AT_FDCWD, MNTPOINT, 0x08, EINVAL},
68 SAFE_UMOUNT(MNTPOINT); in run()
89 .mntpoint = MNTPOINT,
Dmove_mount01.c10 #define MNTPOINT "mntpoint" macro
59 TEST(move_mount(fsmfd, "", AT_FDCWD, MNTPOINT, in run()
68 if (tst_is_mounted_at_tmpdir(MNTPOINT)) { in run()
69 SAFE_UMOUNT(MNTPOINT); in run()
80 .mntpoint = MNTPOINT,
/third_party/ltp/testcases/kernel/syscalls/umount/
Dumount02.c22 #define MNTPOINT "mntpoint" macro
33 {"Already mounted/busy", MNTPOINT, EBUSY},
65 SAFE_MKDIR(MNTPOINT, 0775); in setup()
66 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, NULL); in setup()
69 fd = SAFE_CREAT(MNTPOINT "/file", 0777); in setup()
78 tst_umount(MNTPOINT); in cleanup()
Dumount01.c14 #define MNTPOINT "mntpoint" macro
21 SAFE_MOUNT(tst_device->dev, MNTPOINT, in verify_umount()
26 TEST(umount(MNTPOINT)); in verify_umount()
45 SAFE_MKDIR(MNTPOINT, 0775); in setup()
51 tst_umount(MNTPOINT); in cleanup()
Dumount03.c17 #define MNTPOINT "mntpoint" macro
23 TEST(umount(MNTPOINT)); in verify_umount()
42 SAFE_MKDIR(MNTPOINT, 0775); in setup()
43 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, NULL); in setup()
56 tst_umount(MNTPOINT); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/statx/
Dstatx05.c31 #define MNTPOINT "mnt_point" macro
32 #define TESTDIR_FLAGGED MNTPOINT"/test_dir1"
33 #define TESTDIR_UNFLAGGED MNTPOINT"/test_dir2"
96 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, 0); in setup()
111 tst_umount(MNTPOINT); in cleanup()
122 .mntpoint = MNTPOINT,
/third_party/ltp/testcases/kernel/syscalls/rename/
Drename11.c44 #define MNTPOINT "mntpoint" macro
109 SAFE_MKDIR(cleanup, MNTPOINT, 0755); in setup()
110 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); in setup()
152 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, MS_REMOUNT | MS_RDONLY, in test_erofs()
161 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, MS_REMOUNT, NULL); in test_erofs()
180 if (mount_flag && tst_umount(MNTPOINT) < 0) in cleanup()
/third_party/ltp/testcases/kernel/syscalls/fallocate/
Dfallocate05.c28 #define MNTPOINT "mntpoint" macro
42 fd = SAFE_OPEN(MNTPOINT "/test_file", O_WRONLY | O_CREAT, 0644); in setup()
60 fd = SAFE_OPEN(MNTPOINT "/test_file", O_WRONLY | O_CREAT | O_TRUNC, in run()
71 tst_fill_fs(MNTPOINT, 1); in run()
139 tst_purge_dir(MNTPOINT); in run()
150 .mntpoint = MNTPOINT,
/third_party/ltp/testcases/kernel/syscalls/fsopen/
Dfsopen01.c11 #define MNTPOINT "mntpoint" macro
52 TEST(move_mount(fsmfd, "", AT_FDCWD, MNTPOINT, in run()
62 if (tst_is_mounted_at_tmpdir(MNTPOINT)) { in run()
63 SAFE_UMOUNT(MNTPOINT); in run()
77 .mntpoint = MNTPOINT,
/third_party/ltp/testcases/kernel/syscalls/fsconfig/
Dfsconfig01.c11 #define MNTPOINT "mntpoint" macro
69 TEST(move_mount(fsmfd, "", AT_FDCWD, MNTPOINT, in run()
76 if (tst_is_mounted_at_tmpdir(MNTPOINT)) { in run()
77 SAFE_UMOUNT(MNTPOINT); in run()
90 .mntpoint = MNTPOINT,
/third_party/ltp/testcases/kernel/syscalls/sync_file_range/
Dsync_file_range02.c24 #define MNTPOINT "mnt_point" macro
25 #define FNAME1 MNTPOINT"/test1"
26 #define FNAME2 MNTPOINT"/test2"
27 #define FNAME3 MNTPOINT"/test3"
130 .mntpoint = MNTPOINT,
/third_party/ltp/testcases/kernel/syscalls/fsmount/
Dfsmount01.c12 #define MNTPOINT "mntpoint" macro
75 TEST(move_mount(mfd, "", AT_FDCWD, MNTPOINT, MOVE_MOUNT_F_EMPTY_PATH)); in run()
84 if (tst_is_mounted_at_tmpdir(MNTPOINT)) { in run()
85 SAFE_UMOUNT(MNTPOINT); in run()
95 .mntpoint = MNTPOINT,
/third_party/ltp/testcases/kernel/syscalls/open_tree/
Dopen_tree02.c10 #define MNTPOINT "mntpoint" macro
19 {"invalid-fd", -1, MNTPOINT, OPEN_TREE_CLONE, EBADF},
21 {"invalid-flags", AT_FDCWD, MNTPOINT, 0xFFFFFFFF, EINVAL},
52 .mntpoint = MNTPOINT,
/third_party/ltp/testcases/kernel/syscalls/fspick/
Dfspick02.c10 #define MNTPOINT "mntpoint" macro
19 {"invalid-fd", -1, MNTPOINT, FSPICK_NO_AUTOMOUNT | FSPICK_CLOEXEC, EBADF},
21 {"invalid-flags", AT_FDCWD, MNTPOINT, 0x10, EINVAL},
51 .mntpoint = MNTPOINT,
/third_party/ltp/testcases/kernel/controllers/memcg/regression/
Dmemcg_test_3.c21 #define MNTPOINT "memcg" macro
66 SAFE_MKDIR(MNTPOINT, 0644); in setup()
68 ret = mount("memcg", MNTPOINT, "cgroup", 0, "memory"); in setup()
84 tst_umount(MNTPOINT); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/mount/
Dmount01.c37 #define MNTPOINT "mntpoint" macro
54 TEST(mount(device, MNTPOINT, fs_type, 0, NULL)); in main()
60 TEST(tst_umount(MNTPOINT)); in main()
88 SAFE_MKDIR(cleanup, MNTPOINT, DIR_MODE); in setup()
/third_party/ltp/testcases/kernel/syscalls/chdir/
Dchdir01.c21 #define MNTPOINT "mntpoint" macro
56 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, NULL); in setup()
59 workdir = SAFE_MALLOC(strlen(cwd) + strlen(MNTPOINT) + 2); in setup()
60 sprintf(workdir, "%s/%s", cwd, MNTPOINT); in setup()
148 .mntpoint = MNTPOINT,
/third_party/ltp/testcases/kernel/syscalls/lremovexattr/
Dlremovexattr01.c46 #define MNTPOINT "mntpoint" macro
47 #define FILENAME MNTPOINT"/lremovexattr01testfile"
48 #define SYMLINK MNTPOINT"/lremovexattr01symlink"
121 .mntpoint = MNTPOINT,
/third_party/ltp/testcases/kernel/syscalls/renameat/
Drenameat01.c55 #define MNTPOINT "mntpoint" macro
185 SAFE_MKDIR(cleanup, MNTPOINT, DIRMODE); in setup()
186 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); in setup()
189 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, MS_REMOUNT | MS_RDONLY, in setup()
245 if (mount_flag && tst_umount(MNTPOINT) < 0) in cleanup()
246 tst_resm(TWARN | TERRNO, "umount %s failed", MNTPOINT); in cleanup()

123