/third_party/ltp/lib/newlib_tests/ |
H A D | tst_device.c | 20 static char *mntpoint; variable 33 ret = asprintf(&mntpoint, "%s/mnt", tst_get_tmpdir()); in setup() 47 SAFE_MKDIR(mntpoint, 0777); in setup() 48 SAFE_MOUNT(tst_device->dev, mntpoint, tst_device->fs_type, 0, 0); in setup() 53 if (tst_is_mounted(mntpoint)) in cleanup() 54 SAFE_UMOUNT(mntpoint); in cleanup() 74 tst_find_backing_dev(mntpoint, block_dev, sizeof(block_dev)); in test_tst_find_backing_dev() 77 tst_res(TPASS, "%s belongs to %s block dev", mntpoint, in test_tst_find_backing_dev() 81 mntpoint, tst_device->dev, block_dev); in test_tst_find_backing_dev() 88 block_size = tst_dev_block_size(mntpoint); in test_tst_dev_block_size() [all...] |
/third_party/ltp/testcases/kernel/syscalls/mount/ |
H A D | mount02.c | 61 static const char *mntpoint = "mntpoint"; variable 77 const char **mntpoint; member 84 {&device, &mntpoint, &wrong_fs_type, 0, ENODEV, NULL, NULL}, 85 {&char_dev, &mntpoint, &fs_type, 0, ENOTBLK, NULL, NULL}, 86 {&device, &mntpoint, &fs_type, 0, EBUSY, do_mount, do_umount}, 87 {&device, &mntpoint, &fs_type, MS_REMOUNT | MS_RDONLY, EBUSY, 89 {&null, &mntpoint, &fs_type, 0, EINVAL, NULL, NULL}, 90 {&device, &mntpoint, &null, 0, EINVAL, NULL, NULL}, 91 {&device, &mntpoint, [all...] |
H A D | mount04.c | 37 static char *mntpoint = "mntpoint"; variable 46 TEST(mount(device, mntpoint, fs_type, 0, NULL)); in verify_mount() 59 if (tst_umount(mntpoint)) in verify_mount() 105 SAFE_MKDIR(cleanup, mntpoint, DIR_MODE); in setup()
|
H A D | mount06.c | 46 static int ismount(char *mntpoint); 96 int ismount(char *mntpoint) in ismount() argument 107 if (strstr(line, mntpoint) != NULL) { in ismount()
|
/third_party/ltp/testcases/kernel/fs/binfmt_misc/ |
H A D | binfmt_misc_lib.sh | 29 local mntpoint 31 mntpoint=$(awk '/ binfmt_misc / { print $2 }' /proc/mounts) 32 [ -z "$mntpoint" ] && tst_brk TBROK "Can't get binfmt_misc mntpoint" 34 echo "$mntpoint" 39 local mntpoint 51 mntpoint=$(awk '/ binfmt_misc / { print $2 }' /proc/mounts) 52 [ -n "$mntpoint" ] && return
|
H A D | binfmt_misc01.sh | 32 local mntpoint=$(get_binfmt_misc_mntpoint) 34 (echo "$1" >"$mntpoint/register") 2>/dev/null 35 if [ $? -ne 0 -a ! -f "$mntpoint/$name" ]; then 41 cat "$mntpoint/$name" >/dev/null 2>&1 44 [ -f "$mntpoint/$name" ] && \ 45 remove_binary_type "$mntpoint/$name"
|
H A D | binfmt_misc02.sh | 36 (echo 0 >"$mntpoint/$name") 2>/dev/null 37 if [ $? -ne 0 ] || grep -q enable "$mntpoint/$name"; then 71 local mntpoint=$(get_binfmt_misc_mntpoint) 73 (echo "$1" >"$mntpoint/register") 2>/dev/null 74 if [ $? -ne 0 -o ! -f "$mntpoint/$name" ]; then 85 remove_binary_type "$mntpoint/$name"
|
/third_party/ltp/testcases/kernel/syscalls/inotify/ |
H A D | inotify03.c | 48 static char *mntpoint = "mntpoint"; variable 58 SAFE_MOUNT(tst_device->dev, mntpoint, tst_device->fs_type, 0, NULL); in verify_inotify() 72 TEST(tst_umount(mntpoint)); in verify_inotify() 133 SAFE_MKDIR(mntpoint, DIR_MODE); in setup() 135 SAFE_MOUNT(tst_device->dev, mntpoint, tst_device->fs_type, 0, NULL); in setup() 138 sprintf(fname, "%s/tfile_%d", mntpoint, getpid()); in setup() 152 tst_umount(mntpoint); in setup() 162 TEST(tst_umount(mntpoint)); in cleanup() 165 mntpoint); in cleanup() [all...] |
H A D | inotify08.c | 60 static const char mntpoint[] = OVL_BASE_MNTPOINT; variable 178 .mntpoint = mntpoint,
|
H A D | inotify07.c | 62 static const char mntpoint[] = OVL_BASE_MNTPOINT; variable 184 .mntpoint = mntpoint,
|
/third_party/ltp/testcases/kernel/syscalls/umount2/ |
H A D | umount2_02.c | 26 #define MNTPOINT "mntpoint" 41 const char *mntpoint; member 50 {FLAG_DESC(UMOUNT_NOFOLLOW, "mntpoint"), MNTPOINT, 0}, 90 TST_EXP_FAIL(umount2_retry(tc->mntpoint, tc->flag), tc->exp_errno, in test_umount2() 91 "umount2_retry(%s, %d)", tc->mntpoint, tc->flag); in test_umount2() 93 TST_EXP_PASS(umount2_retry(tc->mntpoint, tc->flag), in test_umount2() 94 "umount2_retry(%s, %d)", tc->mntpoint, tc->flag); in test_umount2() 117 .mntpoint = MNTPOINT,
|
H A D | umount2_03.c | 34 #define MNTPOINT "mntpoint" 49 const char *mntpoint; member 56 "umount2('mntpoint', UMOUNT_NOFOLLOW) expected success"}, 115 TEST(umount2_retry(test_cases[i].mntpoint, UMOUNT_NOFOLLOW)); in test_umount2()
|
/third_party/ltp/testcases/kernel/syscalls/execveat/ |
H A D | execveat03.c | 40 static const char mntpoint[] = OVL_BASE_MNTPOINT; variable 74 .mntpoint = mntpoint,
|
/third_party/ltp/lib/ |
H A D | tst_test.c | 938 tst_test->mntpoint || in needs_tmpdir() 996 static int prepare_and_mount_ro_fs(const char *dev, const char *mntpoint, in prepare_and_mount_ro_fs() argument 1001 if (mount(dev, mntpoint, fs_type, 0, NULL)) { in prepare_and_mount_ro_fs() 1003 dev, mntpoint, fs_type); in prepare_and_mount_ro_fs() 1009 snprintf(buf, sizeof(buf), "%s/dir/", mntpoint); in prepare_and_mount_ro_fs() 1012 snprintf(buf, sizeof(buf), "%s/file", mntpoint); in prepare_and_mount_ro_fs() 1016 SAFE_MOUNT(dev, mntpoint, fs_type, MS_REMOUNT | MS_RDONLY, NULL); in prepare_and_mount_ro_fs() 1021 static void prepare_and_mount_dev_fs(const char *mntpoint) in prepare_and_mount_dev_fs() argument 1029 "mounting tmpfs without nodev on %s", mntpoint); in prepare_and_mount_dev_fs() 1030 SAFE_MOUNT(NULL, mntpoint, "tmpf in prepare_and_mount_dev_fs() [all...] |
/third_party/ltp/testcases/lib/ |
H A D | tst_test.sh | 316 local mntpoint="${1:-$TST_MNTPOINT}" 319 [ -z "$mntpoint" ] && return 321 if ! echo "$mntpoint" | grep -q ^/; then 322 tst_brk TCONF "The '$mntpoint' is not an absolute path" 325 if ! grep -q "${mntpoint%/}" /proc/mounts; then 326 tst_res TINFO "The '$mntpoint' is not mounted, skipping umount" 331 if umount "$mntpoint" > /dev/null; then 337 tst_res TINFO "umount($mntpoint) failed, try $i ..." 344 tst_res TWARN "Failed to umount($mntpoint) after 50 retries" 767 TST_MNTPOINT="${TST_MNTPOINT:-$PWD/mntpoint}" [all...] |
/third_party/ltp/testcases/network/nfsv4/locks/ |
H A D | locktests.py | 57 mntpoint=NFS4_PATH 58 self.command="'mkdir -p "+mntpoint+"; mount -t nfs4 "+export+" "+mntpoint+"'" 62 mntpoint=self.mountPath+"/"+dir 63 self.command="umount "+mntpoint
|
/third_party/ltp/testcases/kernel/fs/ftest/ |
H A D | ftest06.c | 95 static char startdir[MAXPATHLEN], mntpoint[MAXPATHLEN]; variable 463 partition, mntpoint); in cleanup() 467 partition, mntpoint); in cleanup() 477 partition, mntpoint); in cleanup() 480 if (rmdir(mntpoint) != 0) { in cleanup() 481 tst_resm(TINFO, "Unable to rmdir %s ", mntpoint); in cleanup()
|
H A D | ftest02.c | 90 static char startdir[MAXPATHLEN], mntpoint[MAXPATHLEN]; variable 450 partition, mntpoint); in cleanup() 455 partition, mntpoint); in cleanup() 464 partition, mntpoint); in cleanup() 466 if (rmdir(mntpoint) != 0) in cleanup() 467 tst_resm(TBROK, "Unable to rmdir %s ", mntpoint); in cleanup()
|
/third_party/selinux/libselinux/src/ |
H A D | load_policy.c | 279 const char *mntpoint = NULL; in selinux_init_load_policy() local 284 mntpoint = SELINUXMNT; in selinux_init_load_policy() 288 mntpoint = OLDSELINUXMNT; in selinux_init_load_policy() 294 mntpoint = OLDSELINUXMNT; in selinux_init_load_policy() 298 if (! mntpoint ) { in selinux_init_load_policy() 317 set_selinuxmnt(mntpoint); in selinux_init_load_policy()
|
/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
H A D | fanotify06.c | 67 static const char mntpoint[] = OVL_BASE_MNTPOINT; variable 76 { "Fanotify merge mount mark", mntpoint, 0 }, 245 .mntpoint = mntpoint,
|
/third_party/ltp/testcases/kernel/syscalls/umount/ |
H A D | umount02.c | 22 #define MNTPOINT "mntpoint" 30 const char *mntpoint; member 44 TEST(umount(tc->mntpoint)); in verify_umount()
|
/third_party/ltp/testcases/kernel/syscalls/readahead/ |
H A D | readahead02.c | 52 static const char mntpoint[] = OVL_BASE_MNTPOINT; variable 416 .mntpoint = mntpoint,
|
/third_party/ltp/testcases/kernel/syscalls/rename/ |
H A D | rename10.c | 18 #define MNT_POINT "mntpoint" 40 .mntpoint = MNT_POINT,
|
H A D | rename07.c | 19 #define MNT_POINT "mntpoint" 41 .mntpoint = MNT_POINT,
|
H A D | rename08.c | 18 #define MNT_POINT "mntpoint" 41 .mntpoint = MNT_POINT,
|