Home
last modified time | relevance | path

Searched refs:MNTPOINT (Results 1 - 25 of 108) sorted by relevance

12345

/third_party/ltp/testcases/kernel/syscalls/umount2/
H A Dumount2_02.c26 #define MNTPOINT "mntpoint" macro
44 {FLAG_EXP_ERRNO_DESC(MNT_EXPIRE | MNT_FORCE, EINVAL, ""), MNTPOINT, 0},
45 {FLAG_EXP_ERRNO_DESC(MNT_EXPIRE | MNT_DETACH, EINVAL, ""), MNTPOINT, 0},
46 {FLAG_EXP_ERRNO_DESC(MNT_EXPIRE, EAGAIN, "initial call"), MNTPOINT, 0},
47 {FLAG_EXP_ERRNO_DESC(MNT_EXPIRE, EAGAIN, "after access"), MNTPOINT, 1},
48 {FLAG_DESC(MNT_EXPIRE, "second call"), MNTPOINT, 0},
50 {FLAG_DESC(UMOUNT_NOFOLLOW, "mntpoint"), MNTPOINT, 0},
80 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, NULL); in test_umount2()
87 SAFE_ACCESS(MNTPOINT, F_OK); in test_umount2()
102 SAFE_SYMLINK(MNTPOINT, SYMLIN in setup()
[all...]
H A Dumount2_01.c40 #define MNTPOINT "mntpoint" macro
82 SAFE_MKDIR(cleanup, MNTPOINT, DIR_MODE); in setup()
93 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); in umount2_verify()
96 fd = SAFE_CREAT(cleanup, MNTPOINT "/file", FILE_MODE); in umount2_verify()
98 TEST(umount2(MNTPOINT, MNT_DETACH)); in umount2_verify()
108 ret = access(MNTPOINT "/file", F_OK); in umount2_verify()
124 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); in umount2_verify()
127 fd = SAFE_OPEN(cleanup, MNTPOINT "/file", O_RDONLY); in umount2_verify()
146 if (tst_umount(MNTPOINT)) in umount2_verify()
157 if (mount_flag && tst_umount(MNTPOINT)) in cleanup()
[all...]
H A 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()
/third_party/ltp/testcases/kernel/syscalls/mount/
H A Dmount07.c32 #define MNTPOINT "mntpoint" macro
105 SAFE_STATFS(MNTPOINT, &buf); in test_statfs()
108 MNTPOINT); in test_statfs()
111 MNTPOINT); in test_statfs()
120 MNTPOINT); in setup()
122 MNTPOINT); in setup()
124 tst_get_tmpdir(), MNTPOINT); in setup()
130 if (tst_is_mounted(MNTPOINT)) in cleanup()
131 SAFE_UMOUNT(MNTPOINT); in cleanup()
147 TST_EXP_PASS_SILENT(mount(tst_device->dev, MNTPOINT, tst_devic in run()
[all...]
H A Dmount03.c34 #define MNTPOINT "mntpoint" macro
36 #define BIN_PATH MNTPOINT "/" TESTBIN
51 snprintf(file, PATH_MAX, "%s/rdonly", MNTPOINT); in test_rdonly()
57 snprintf(file, PATH_MAX, "%s/nodev", MNTPOINT); in test_nodev()
65 snprintf(file, PATH_MAX, "%s/noexec", MNTPOINT); in test_noexec()
72 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, MS_REMOUNT, NULL); in test_remount()
73 snprintf(file, PATH_MAX, "%s/remount", MNTPOINT); in test_remount()
108 snprintf(file, PATH_MAX, "%s/noatime", MNTPOINT); in test_file_dir_noatime()
111 snprintf(dir, PATH_MAX, "%s/nodiratime", MNTPOINT); in test_file_dir_noatime()
204 if (tst_is_mounted(MNTPOINT)) in cleanup()
[all...]
H A 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/quotactl/
H A 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,
/third_party/ltp/testcases/kernel/syscalls/move_mount/
H A 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,
H A 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/
H A 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()
H A 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()
H A 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/
H A Dstatx05.c32 #define MNTPOINT "mnt_point" macro
33 #define TESTDIR_FLAGGED MNTPOINT"/test_dir1"
34 #define TESTDIR_UNFLAGGED MNTPOINT"/test_dir2"
97 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, 0); in setup()
112 tst_umount(MNTPOINT); in cleanup()
123 .mntpoint = MNTPOINT,
H A Dstatx12.c26 #define MNTPOINT "mntpoint" macro
27 #define TESTFILE MNTPOINT"/testfile"
36 {MNTPOINT, 1, &dir_fd},
73 dir_fd = SAFE_OPEN(MNTPOINT, O_DIRECTORY); in setup()
90 .mntpoint = MNTPOINT,
H A Dstatx09.c31 #define MNTPOINT "mnt_point" macro
32 #define TESTFILE_FLAGGED MNTPOINT"/test_file1"
33 #define TESTFILE_UNFLAGGED MNTPOINT"/test_file2"
130 TEST(mount(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, NULL)); in setup()
148 tst_umount(MNTPOINT); in cleanup()
158 .mntpoint = MNTPOINT,
/third_party/ltp/testcases/kernel/syscalls/fsopen/
H A 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/fallocate/
H A 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, TST_FILL_RANDOM); in run()
139 tst_purge_dir(MNTPOINT); in run()
150 .mntpoint = MNTPOINT,
/third_party/ltp/testcases/kernel/syscalls/rename/
H A 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/openat/
H A Dopenat04.c39 #define MNTPOINT "mntpoint" macro
40 #define WORKDIR MNTPOINT "/testdir"
90 do_mount(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, "noacl"); in setup()
159 if (mount_flag && tst_umount(MNTPOINT)) in cleanup()
160 tst_res(TWARN | TERRNO, "umount(%s)", MNTPOINT); in cleanup()
170 .mntpoint = MNTPOINT,
/third_party/ltp/testcases/kernel/syscalls/fsconfig/
H A 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/
H A 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/
H A 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/
H A 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/
H A 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/syscalls/lremovexattr/
H A Dlremovexattr01.c46 #define MNTPOINT "mntpoint" macro
47 #define FILENAME MNTPOINT"/lremovexattr01testfile"
48 #define SYMLINK MNTPOINT"/lremovexattr01symlink"
121 .mntpoint = MNTPOINT,

Completed in 13 milliseconds

12345