/external/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()
|
/external/ltp/testcases/commands/df/ |
D | df01.sh | 60 ROD_SILENT mkdir -p mntpoint 62 mount ${TST_DEVICE} mntpoint 95 ROD_SILENT dd if=/dev/zero of=mntpoint/testimg bs=1024 count=1024 106 ROD_SILENT rm -rf mntpoint/testimg 131 local total=$(stat -f mntpoint --printf=%c) 132 local free=$(stat -f mntpoint --printf=%d) 135 local total=$(stat -f mntpoint --printf=%b) 136 local free=$(stat -f mntpoint --printf=%f) 138 local bsize=$(stat -f mntpoint --printf=%s) 225 grep ${TST_DEVICE} output | grep -q mntpoint
|
/external/ltp/testcases/kernel/syscalls/inotify/ |
D | inotify03.c | 67 static char *mntpoint = "mntpoint"; variable 77 SAFE_MOUNT(tst_device->dev, mntpoint, tst_device->fs_type, 0, NULL); in verify_inotify() 96 TEST(tst_umount(mntpoint)); in verify_inotify() 157 SAFE_MKDIR(mntpoint, DIR_MODE); in setup() 159 SAFE_MOUNT(tst_device->dev, mntpoint, tst_device->fs_type, 0, NULL); in setup() 162 sprintf(fname, "%s/tfile_%d", mntpoint, getpid()); in setup() 184 tst_umount(mntpoint); in setup() 194 TEST(tst_umount(mntpoint)); in cleanup() 197 mntpoint); in cleanup()
|
/external/linux-kselftest/tools/testing/selftests/filesystems/ |
D | devpts_pts.c | 189 char *mntpoint; in verify_non_standard_devpts_mount() local 203 mntpoint = mkdtemp(devpts); in verify_non_standard_devpts_mount() 204 if (!mntpoint) { in verify_non_standard_devpts_mount() 210 ret = mount("devpts", mntpoint, "devpts", MS_NOSUID | MS_NOEXEC, in verify_non_standard_devpts_mount() 214 "mount namespace: %s\n", mntpoint, in verify_non_standard_devpts_mount() 216 unlink(mntpoint); in verify_non_standard_devpts_mount() 222 unlink(mntpoint); in verify_non_standard_devpts_mount() 226 ret = do_tiocgptpeer(ptmx, mntpoint); in verify_non_standard_devpts_mount() 227 unlink(mntpoint); in verify_non_standard_devpts_mount()
|
/external/ltp/testcases/kernel/controllers/cgroup/ |
D | cgroup_regression_test.sh | 247 local mntpoint 268 mntpoint=cgroup 270 mount -t cgroup -o $subsys1,$subsys2 xxx $mntpoint/ 279 mntpoint=$(get_cgroup_mountpoint $mounted) 284 mount -t cgroup -o $failing xxx $mntpoint/ 2> /dev/null 288 [ -z "$mounted" ] && umount $mntpoint 292 mkdir $mntpoint/0 295 echo 0 > $mntpoint/0/cpuset.cpus 2> /dev/null 296 echo 0 > $mntpoint/0/cpuset.mems 2> /dev/null 300 echo $! > $mntpoint/0/tasks [all …]
|
/external/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
|
/external/ltp/lib/ |
D | tst_test.c | 647 tst_test->mntpoint || in needs_tmpdir() 706 const char *mntpoint, in prepare_and_mount_ro_fs() argument 711 if (mount(dev, mntpoint, fs_type, 0, NULL)) { in prepare_and_mount_ro_fs() 713 dev, mntpoint, fs_type); in prepare_and_mount_ro_fs() 719 snprintf(buf, sizeof(buf), "%s/dir/", mntpoint); in prepare_and_mount_ro_fs() 722 snprintf(buf, sizeof(buf), "%s/file", mntpoint); in prepare_and_mount_ro_fs() 726 SAFE_MOUNT(dev, mntpoint, fs_type, MS_REMOUNT | MS_RDONLY, NULL); in prepare_and_mount_ro_fs() 731 static void prepare_and_mount_dev_fs(const char *mntpoint) in prepare_and_mount_dev_fs() argument 739 "mounting tmpfs without nodev on %s", mntpoint); in prepare_and_mount_dev_fs() 740 SAFE_MOUNT(NULL, mntpoint, "tmpfs", 0, NULL); in prepare_and_mount_dev_fs() [all …]
|
/external/ltp/testcases/kernel/syscalls/quotactl/ |
D | quotactl03.c | 58 static const char mntpoint[] = "mnt_point"; variable 94 .mntpoint = mntpoint,
|
D | quotactl02.c | 59 static const char mntpoint[] = "mnt_point"; variable 181 .mntpoint = mntpoint,
|
/external/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
|
/external/ltp/testcases/kernel/security/integrity/ima/tests/ |
D | ima_setup.sh | 58 ROD_SILENT mkdir -p mntpoint 59 mount ${TST_DEVICE} mntpoint 64 cd mntpoint
|
/external/ltp/testcases/kernel/fs/ftest/ |
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()
|
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()
|
/external/selinux/libselinux/src/ |
D | load_policy.c | 373 const char *mntpoint = NULL; in hidden_def() local 377 mntpoint = SELINUXMNT; in hidden_def() 381 mntpoint = OLDSELINUXMNT; in hidden_def() 387 mntpoint = OLDSELINUXMNT; in hidden_def() 391 if (! mntpoint ) { in hidden_def() 410 set_selinuxmnt(mntpoint); in hidden_def()
|
/external/ltp/testcases/commands/mkfs/ |
D | mkfs01.sh | 54 ROD_SILENT mkdir -p mntpoint 59 mount ${TST_DEVICE} mntpoint 86 local blocknum=`df -P -B 1k mntpoint | tail -n1 | awk '{print $2}'`
|
/external/ltp/testcases/kernel/syscalls/umount/ |
D | umount02.c | 44 const char *mntpoint; member 58 TEST(umount(tc->mntpoint)); in verify_umount()
|
/external/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()
|
/external/e2fsprogs/debugfs/ |
D | e2freefrag.c | 171 char mntpoint[PATH_MAX + 1]; in scan_online() local 180 mntpoint, PATH_MAX); in scan_online() 187 fd = open(mntpoint, O_RDONLY); in scan_online() 189 com_err(mntpoint, errno, "while opening mount point"); in scan_online()
|
/external/e2fsprogs/misc/ |
D | e2freefrag.c | 171 char mntpoint[PATH_MAX + 1]; in scan_online() local 180 mntpoint, PATH_MAX); in scan_online() 187 fd = open(mntpoint, O_RDONLY); in scan_online() 189 com_err(mntpoint, errno, "while opening mount point"); in scan_online()
|
/external/ltp/testcases/kernel/syscalls/readahead/ |
D | readahead02.c | 54 static const char mntpoint[] = MNTPOINT; variable 396 .mntpoint = mntpoint,
|
/external/ltp/testcases/kernel/syscalls/fsync/ |
D | fsync01.c | 81 .mntpoint = "mntpoint",
|
/external/ltp/testcases/kernel/syscalls/syncfs/ |
D | syncfs01.c | 64 .mntpoint = MNTPOINT,
|