/third_party/ltp/testcases/kernel/syscalls/mount/ |
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, &fs_type, MS_REMOUNT, EINVAL, NULL, NULL}, 92 {&fault, &mntpoint, &fs_type, 0, EFAULT, NULL, NULL}, [all …]
|
D | mount03.c | 63 static const char mntpoint[] = "mntpoint"; variable 97 TEST(mount(device, mntpoint, fs_type, rwflags[i], in main() 113 TEST(tst_umount(mntpoint)); in main() 116 "umount(2) failed for %s", mntpoint); in main() 245 TEST(mount(device, mntpoint, fs_type, MS_REMOUNT, NULL)); in test_rwflag() 356 SAFE_MKDIR(cleanup, mntpoint, DIR_MODE); in setup() 366 snprintf(path_name, PATH_MAX, "%s/%s/", path, mntpoint); in setup() 368 SAFE_MOUNT(cleanup, device, mntpoint, fs_type, 0, NULL); in setup() 378 SAFE_UMOUNT(cleanup, mntpoint); in setup()
|
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()
|
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/ |
D | binfmt_misc_lib.sh | 31 local mntpoint 33 mntpoint=$(awk '/ binfmt_misc / { print $2 }' /proc/mounts) 34 [ -z "$mntpoint" ] && tst_brk TBROK "Can't get binfmt_misc mntpoint" 36 echo "$mntpoint" 41 local mntpoint 53 mntpoint=$(awk '/ binfmt_misc / { print $2 }' /proc/mounts) 54 [ -n "$mntpoint" ] && return
|
D | binfmt_misc01.sh | 33 local mntpoint=$(get_binfmt_misc_mntpoint) 35 (echo "$1" >"$mntpoint/register") 2>/dev/null 36 if [ $? -ne 0 -a ! -f "$mntpoint/$name" ]; then 42 cat "$mntpoint/$name" >/dev/null 2>&1 45 [ -f "$mntpoint/$name" ] && \ 46 remove_binary_type "$mntpoint/$name"
|
D | binfmt_misc02.sh | 37 (echo 0 >"$mntpoint/$name") 2>/dev/null 38 if [ $? -ne 0 ] || grep -q enable "$mntpoint/$name"; then 72 local mntpoint=$(get_binfmt_misc_mntpoint) 74 (echo "$1" >"$mntpoint/register") 2>/dev/null 75 if [ $? -ne 0 -o ! -f "$mntpoint/$name" ]; then 86 remove_binary_type "$mntpoint/$name"
|
/third_party/ltp/testcases/kernel/syscalls/inotify/ |
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()
|
D | inotify08.c | 60 static const char mntpoint[] = OVL_BASE_MNTPOINT; variable 178 .mntpoint = mntpoint,
|
D | inotify07.c | 62 static const char mntpoint[] = OVL_BASE_MNTPOINT; variable 184 .mntpoint = mntpoint,
|
/third_party/ltp/testcases/commands/df/ |
D | df01.sh | 60 ROD_SILENT dd if=/dev/zero of=mntpoint/testimg bs=1024 count=1024 71 ROD_SILENT rm -rf mntpoint/testimg 96 local total=$(stat -f mntpoint --printf=%c) 97 local free=$(stat -f mntpoint --printf=%d) 100 local total=$(stat -f mntpoint --printf=%b) 101 local free=$(stat -f mntpoint --printf=%f) 103 local bsize=$(stat -f mntpoint --printf=%s) 190 grep ${TST_DEVICE} output | grep -q mntpoint
|
/third_party/ltp/testcases/kernel/controllers/ |
D | cgroup_lib.sh | 14 local mntpoint 18 mntpoint=$(grep cgroup /proc/mounts | grep -w $subsystem | awk '{ print $2 }') 19 [ -z "$mntpoint" ] && return 1 21 echo $mntpoint
|
/third_party/ltp/testcases/kernel/syscalls/execveat/ |
D | execveat03.c | 40 static const char mntpoint[] = OVL_BASE_MNTPOINT; variable 79 .mntpoint = mntpoint,
|
/third_party/ltp/lib/ |
D | tst_test.c | 858 tst_test->mntpoint || in needs_tmpdir() 917 const char *mntpoint, in prepare_and_mount_ro_fs() argument 922 if (mount(dev, mntpoint, fs_type, 0, NULL)) { in prepare_and_mount_ro_fs() 924 dev, mntpoint, fs_type); in prepare_and_mount_ro_fs() 930 snprintf(buf, sizeof(buf), "%s/dir/", mntpoint); in prepare_and_mount_ro_fs() 933 snprintf(buf, sizeof(buf), "%s/file", mntpoint); in prepare_and_mount_ro_fs() 937 SAFE_MOUNT(dev, mntpoint, fs_type, MS_REMOUNT | MS_RDONLY, NULL); in prepare_and_mount_ro_fs() 942 static void prepare_and_mount_dev_fs(const char *mntpoint) in prepare_and_mount_dev_fs() argument 950 "mounting tmpfs without nodev on %s", mntpoint); in prepare_and_mount_dev_fs() 951 SAFE_MOUNT(NULL, mntpoint, "tmpfs", 0, NULL); in prepare_and_mount_dev_fs() [all …]
|
/third_party/ltp/testcases/network/nfsv4/locks/ |
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/selinux/libselinux/src/ |
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/lib/ |
D | tst_test.sh | 307 local mntpoint="${1:-$TST_MNTPOINT}" 310 [ -z "$mntpoint" ] && return 312 if ! echo "$mntpoint" | grep -q ^/; then 313 tst_brk TCONF "The '$mntpoint' is not an absolute path" 317 tst_res TINFO "The '$mntpoint' is not mounted, skipping umount" 322 if umount "$mntpoint" > /dev/null; then 328 tst_res TINFO "umount($mntpoint) failed, try $i ..." 335 tst_res TWARN "Failed to umount($mntpoint) after 50 retries"
|
/third_party/ltp/testcases/kernel/fs/ftest/ |
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()
|
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()
|
/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
D | fanotify06.c | 67 static const char mntpoint[] = OVL_BASE_MNTPOINT; variable 76 { "Fanotify merge mount mark", mntpoint, 0 }, 246 .mntpoint = mntpoint,
|
/third_party/ltp/testcases/kernel/syscalls/umount/ |
D | umount02.c | 30 const char *mntpoint; member 44 TEST(umount(tc->mntpoint)); in verify_umount()
|
/third_party/ltp/testcases/commands/mkfs/ |
D | mkfs01.sh | 42 ROD_SILENT mkdir -p mntpoint 61 local blocknum=`df -P -B 1k mntpoint | tail -n1 | awk '{print $2}'`
|
/third_party/ltp/testcases/kernel/syscalls/umount2/ |
D | umount2_03.c | 49 const char *mntpoint; member 115 TEST(umount2_retry(test_cases[i].mntpoint, UMOUNT_NOFOLLOW)); in test_umount2()
|
/third_party/ltp/testcases/kernel/syscalls/readahead/ |
D | readahead02.c | 50 static const char mntpoint[] = OVL_BASE_MNTPOINT; variable 400 .mntpoint = mntpoint,
|
/third_party/ltp/testcases/kernel/syscalls/fsync/ |
D | fsync01.c | 52 .mntpoint = "mntpoint",
|