/third_party/ltp/testcases/kernel/syscalls/umount2/ |
H A D | umount2_02.c | 26 #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 D | umount2_01.c | 40 #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 D | umount2_03.c | 34 #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 D | mount07.c | 32 #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 D | mount03.c | 34 #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 D | mount01.c | 37 #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 D | quotactl07.c | 36 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 D | move_mount02.c | 10 #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 D | move_mount01.c | 10 #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 D | umount02.c | 22 #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 D | umount01.c | 14 #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 D | umount03.c | 17 #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 D | statx05.c | 32 #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 D | statx12.c | 26 #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 D | statx09.c | 31 #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 D | fsopen01.c | 11 #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 D | fallocate05.c | 28 #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 D | rename11.c | 44 #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 D | openat04.c | 39 #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 D | fsconfig01.c | 11 #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 D | sync_file_range02.c | 24 #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 D | fsmount01.c | 12 #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 D | open_tree02.c | 10 #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 D | fspick02.c | 10 #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 D | lremovexattr01.c | 46 #define MNTPOINT "mntpoint" macro 47 #define FILENAME MNTPOINT"/lremovexattr01testfile" 48 #define SYMLINK MNTPOINT"/lremovexattr01symlink" 121 .mntpoint = MNTPOINT,
|