/external/ltp/testcases/kernel/fs/fs_bind/bind/ |
D | test23 | 43 mkdir mnt mnt/1 mnt/2 mnt/1/abc tmp1 tmp1/3 tmp2 45 mount --bind mnt mnt 46 "${FS_BIND_ROOT}/bin/makedir" share mnt/1 mnt/1 47 mount --bind mnt/1 mnt/2 48 mount --bind "$disk1" mnt/1/abc 50 check mnt/1/abc mnt/2/abc "$disk1" 55 mount --move mnt tmp1/3 76 rm -rf mnt tmp1 tmp2
|
/external/fio/ |
D | cgroup.c | 25 struct mntent *mnt, dummy; in find_cgroup_mnt() local 35 while ((mnt = getmntent_r(f, &dummy, buf, sizeof(buf))) != NULL) { in find_cgroup_mnt() 36 if (!strcmp(mnt->mnt_type, "cgroup") && in find_cgroup_mnt() 37 strstr(mnt->mnt_opts, "blkio")) in find_cgroup_mnt() 41 if (mnt) in find_cgroup_mnt() 42 mntpoint = smalloc_strdup(mnt->mnt_dir); in find_cgroup_mnt() 100 static char *get_cgroup_root(struct thread_data *td, char *mnt) in get_cgroup_root() argument 105 sprintf(str, "%s/%s", mnt, td->o.cgroup); in get_cgroup_root() 107 sprintf(str, "%s/%s", mnt, td->o.name); in get_cgroup_root() 142 static int cgroup_del_pid(struct thread_data *td, char *mnt) in cgroup_del_pid() argument [all …]
|
D | cgroup.h | 14 char **mnt) in cgroup_setup() argument 20 static inline void cgroup_shutdown(struct thread_data *td, char **mnt) in cgroup_shutdown() argument
|
/external/ltp/testcases/kernel/controllers/memcg/control/ |
D | memcg_control_test.sh | 85 echo "$ACTIVE_MEM_LIMIT" > $TST_PATH/mnt/$TST_NUM/memory.limit_in_bytes 86 echo "$TOT_MEM_LIMIT" > $TST_PATH/mnt/$TST_NUM/memory.memsw.limit_in_bytes 120 if [ -e $TST_PATH/mnt ]; then 121 umount $TST_PATH/mnt 2> /dev/null 122 rm -rf $TST_PATH/mnt 130 mkdir $TST_PATH/mnt 131 mount -t cgroup -o memory cgroup $TST_PATH/mnt 2> /dev/null 134 rmdir $TST_PATH/mnt 141 echo 1 > mnt/memory.use_hierarchy 2> /dev/null 147 mkdir $TST_PATH/mnt/$TST_NUM [all …]
|
/external/linux-kselftest/tools/testing/selftests/memfd/ |
D | run_fuse_test.sh | 4 fusermount -u ./mnt 5 rmdir ./mnt 10 mkdir mnt 11 ./fuse_mnt ./mnt 12 ./fuse_test ./mnt/memfd 13 fusermount -u ./mnt 14 rmdir ./mnt
|
/external/autotest/server/site_tests/platform_CrashStateful/ |
D | platform_CrashStateful.py | 39 def _ecrypt_mount(self, edir, mnt): argument 52 self._run('mkdir -p %s %s' % (edir, mnt)) 54 (options, edir, mnt)) 57 def _ecrypt_unmount(self, edir, mnt): argument 63 self._run('umount %s' % mnt) 65 self._run('rm -R %s' % mnt) 129 def _crash_ecrptfs(self, edir, mnt, dir): argument 136 self._ecrypt_mount(edir, mnt) 138 self._ecrypt_mount(edir, mnt) 140 self._ecrypt_unmount(edir, mnt)
|
/external/ltp/lib/ |
D | tst_path_has_mnt_flags.c | 31 struct mntent *mnt; in tst_path_has_mnt_flags() local 57 while ((mnt = getmntent(f))) { in tst_path_has_mnt_flags() 59 if (!strcmp(mnt->mnt_fsname, "rootfs")) in tst_path_has_mnt_flags() 62 prefix_len = strlen(mnt->mnt_dir); in tst_path_has_mnt_flags() 64 if (strncmp(path, mnt->mnt_dir, prefix_len) == 0 in tst_path_has_mnt_flags() 71 if (hasmntopt(mnt, flags[i]) != NULL) in tst_path_has_mnt_flags()
|
/external/linux-kselftest/tools/testing/selftests/vm/ |
D | run_vmtests | 6 mnt=./huge 49 mkdir $mnt 50 mount -t hugetlbfs none $mnt 110 ./userfaultfd_hugetlb 128 32 $mnt/ufd_test_file 117 rm -f $mnt/ufd_test_file 131 umount $mnt 132 rm -rf $mnt
|
/external/e2fsprogs/lib/ext2fs/ |
D | ismounted.c | 98 struct mntent *mnt; in check_mntent_file() local 127 while ((mnt = getmntent (f)) != NULL) { in check_mntent_file() 128 if (mnt->mnt_fsname[0] != '/') in check_mntent_file() 130 if (strcmp(file, mnt->mnt_fsname) == 0) in check_mntent_file() 132 if (stat(mnt->mnt_fsname, &st_buf) == 0) { in check_mntent_file() 137 if (check_loop_mounted(mnt->mnt_fsname, in check_mntent_file() 150 if (mnt == 0) { in check_mntent_file() 177 if (stat(mnt->mnt_dir, &st_buf) < 0) { in check_mntent_file() 182 mtab_file, mnt->mnt_dir); in check_mntent_file() 191 mtab_file, file, mnt->mnt_dir); in check_mntent_file() [all …]
|
/external/ltp/testcases/kdump/ |
D | runkdump.sh | 63 mount "${EXT3_PART}" /mnt 66 COREDIR=/mnt"${COREDIR}" 71 mount -L "${EXT3_LABEL}" /mnt 74 COREDIR=/mnt"${COREDIR}" 79 mount "/dev/disk/by-uuid/${EXT3_UID}" /mnt 82 COREDIR=/mnt"${COREDIR}" 113 mount "${NFS_PATH}" /mnt 116 COREDIR=/mnt"${COREDIR}"
|
/external/ltp/testcases/open_posix_testsuite/include/ |
D | noatime.h | 48 struct mntent *mnt; in mounted_noatime() local 60 while ((mnt = getmntent(f))) { in mounted_noatime() 62 if (!strcmp(mnt->mnt_fsname, "rootfs")) in mounted_noatime() 65 prefix = strpref(path, mnt->mnt_dir); in mounted_noatime() 69 has_noatime = hasmntopt(mnt, "noatime") != NULL; in mounted_noatime()
|
/external/autotest/client/site_tests/kernel_fs_Punybench/ |
D | kernel_fs_Punybench.py | 42 def _ecrypt_mount(dir, mnt): argument 55 utils.system_output('mkdir -p %s %s' % (dir, mnt)) 57 (options, dir, mnt)) 61 def _ecrypt_unmount(dir, mnt): argument 67 utils.system_output('umount ' + mnt) 69 utils.system_output('rm -R ' + mnt) 313 mnt = '/usr/local/ecrypt_mnt' 314 self._ecrypt_mount(dir, mnt) 315 self._disk_tests('ecryptfs_', mnt + '/_Dir', mnt + '/xyzzy') 316 self._ecrypt_unmount(dir, mnt)
|
/external/selinux/libselinux/src/ |
D | init.c | 32 static int verify_selinuxmnt(const char *mnt) in verify_selinuxmnt() argument 38 rc = statfs(mnt, &sfbuf); in verify_selinuxmnt() 43 rc = statvfs(mnt, &vfsbuf); in verify_selinuxmnt() 46 set_selinuxmnt(mnt); in verify_selinuxmnt() 143 void set_selinuxmnt(const char *mnt) in hidden_def() 145 selinux_mnt = strdup(mnt); in hidden_def()
|
/external/autotest/server/site_tests/platform_SyncCrash/ |
D | platform_SyncCrash.py | 83 mnt = self._ECRYPT_MOUNT_POINT 91 self._run('mkdir -p %s %s' % (edir, mnt)) 93 (options, edir, mnt)) 100 mnt = self._ECRYPT_MOUNT_POINT 101 self._run('umount %s' % mnt) 102 self._run('rm -R %s %s' % (edir, mnt))
|
/external/ltp/testcases/kernel/io/stress_floppy/datafiles/ |
D | dd_file | 11 mnt tmp_fddi 30 mnt tmp_fddi 49 mnt tmp_fddi 68 mnt tmp_fddi 87 mnt tmp_fddi 106 mnt tmp_fddi 125 mnt tmp_fddi 144 mnt tmp_fddi 163 mnt tmp_fddi 182 mnt tmp_fddi [all …]
|
/external/fio/lib/ |
D | mountcheck.c | 14 struct mntent *mnt; in device_is_mounted() local 21 while ((mnt = getmntent(mtab)) != NULL) { in device_is_mounted() 22 if (!mnt->mnt_fsname) in device_is_mounted() 24 if (!strcmp(mnt->mnt_fsname, dev)) { in device_is_mounted()
|
/external/valgrind/memcheck/tests/solaris/ |
D | scalar_ioctl.c | 53 struct extmnttab mnt; in sys_ioctl_MNTIOC_GETEXTMNTENT_3() local 56 mnt.mnt_special = (void *) (x0 + 1); in sys_ioctl_MNTIOC_GETEXTMNTENT_3() 57 mnt.mnt_mountp = (void *) (x0 + 1); in sys_ioctl_MNTIOC_GETEXTMNTENT_3() 58 mnt.mnt_fstype = (void *) (x0 + 1); in sys_ioctl_MNTIOC_GETEXTMNTENT_3() 59 mnt.mnt_mntopts = (void *) (x0 + 1); in sys_ioctl_MNTIOC_GETEXTMNTENT_3() 60 mnt.mnt_time = (void *) (x0 + 1); in sys_ioctl_MNTIOC_GETEXTMNTENT_3() 62 embuf.mbuf_emp = x0 + &mnt; in sys_ioctl_MNTIOC_GETEXTMNTENT_3() 93 struct mnttab mnt; in sys_ioctl_MNTIOC_GETMNTANY_3() local 96 mnt.mnt_special = (void *) (x0 + 1); in sys_ioctl_MNTIOC_GETMNTANY_3() 97 mnt.mnt_mountp = (void *) (x0 + 1); in sys_ioctl_MNTIOC_GETMNTANY_3() [all …]
|
/external/ltp/utils/ffsb-6.0-rc2/examples/ |
D | profile_everything | 5 location = /mnt/test1 45 # location = /mnt/test1 46 # clone = /mnt/test2 52 # bindfs = /mnt/test1
|
/external/e2fsprogs/misc/ |
D | util.c | 267 void print_check_message(int mnt, unsigned int check) in print_check_message() argument 269 if (mnt < 0) in print_check_message() 270 mnt = 0; in print_check_message() 271 if (!mnt && !check) in print_check_message() 277 mnt, ((double) check) / (3600 * 24)); in print_check_message()
|
/external/ltp/testcases/kernel/fs/fs_bind/ |
D | README | 17 # mkdir mnt mnt2 18 # mount --bind mnt mnt2 19 # touch mnt/a 28 # mkdir mnt mnt2 29 # mount --bind mnt mnt2 30 # touch mnt/a 31 # mkdir mnt/foo 36 # mount --bind sub /mnt/foo 37 # ls mnt/foo
|
/external/syslinux/extlinux/ |
D | main.c | 1037 struct mntent *mnt; in find_device() local 1048 while ((mnt = getmntent(mtab))) { in find_device() 1052 if (!strcmp(mnt->mnt_type, "btrfs") && in find_device() 1053 !stat(mnt->mnt_dir, &dst) && in find_device() 1056 get_default_subvol(mnt->mnt_dir, subvol); in find_device() 1061 if ((!strcmp(mnt->mnt_type, "ext2") || in find_device() 1062 !strcmp(mnt->mnt_type, "ext3") || in find_device() 1063 !strcmp(mnt->mnt_type, "ext4")) && in find_device() 1064 !stat(mnt->mnt_fsname, &dst) && in find_device() 1070 if ((!strcmp(mnt->mnt_type, "vfat")) && in find_device() [all …]
|
/external/linux-kselftest/tools/testing/selftests/rcutorture/doc/ |
D | rcu-test-image.txt | 12 sudo mount -o loop ./rcu-test-image /mnt 17 sudo debootstrap --verbose --arch i386 precise /mnt http://archive.ubuntu.com/ubuntu 18 cat << '___EOF___' | sudo dd of=/mnt/etc/fstab 28 sudo umount /mnt
|
/external/iproute2/tc/ |
D | tc_bpf.c | 290 static int bpf_valid_mntpt(const char *mnt, unsigned long magic) in bpf_valid_mntpt() argument 294 if (statfs(mnt, &st_fs) < 0) in bpf_valid_mntpt() 303 char *mnt, int len, in bpf_find_mntpt() argument 314 strncpy(mnt, *ptr, len - 1); in bpf_find_mntpt() 315 mnt[len - 1] = 0; in bpf_find_mntpt() 316 return mnt; in bpf_find_mntpt() 327 mnt, type) == 2) { in bpf_find_mntpt() 336 return mnt; in bpf_find_mntpt() 350 const char *mnt; in bpf_trace_pipe() local 353 mnt = bpf_find_mntpt("tracefs", TRACEFS_MAGIC, tracefs_mnt, in bpf_trace_pipe() [all …]
|
/external/python/cpython2/Modules/_ctypes/libffi/src/ |
D | closures.c | 338 struct mntent mnt; in open_temp_exec_file_mnt() local 341 if (getmntent_r (last_mntent, &mnt, buf, sizeof (buf)) == NULL) in open_temp_exec_file_mnt() 344 if (hasmntopt (&mnt, "ro") in open_temp_exec_file_mnt() 345 || hasmntopt (&mnt, "noexec") in open_temp_exec_file_mnt() 346 || access (mnt.mnt_dir, W_OK)) in open_temp_exec_file_mnt() 349 fd = open_temp_exec_file_dir (mnt.mnt_dir); in open_temp_exec_file_mnt()
|
/external/ltp/testcases/kernel/io/ltp-aiodio/ |
D | aiocp.c | 74 struct mntent *mnt; in dev_block_size_by_path() local 88 while ((mnt = getmntent(f))) { in dev_block_size_by_path() 90 if (mnt->mnt_fsname[0] != '/') in dev_block_size_by_path() 93 prefix_len = strlen(mnt->mnt_dir); in dev_block_size_by_path() 96 !strncmp(path, mnt->mnt_dir, prefix_len)) { in dev_block_size_by_path() 98 strncpy(dev_name, mnt->mnt_fsname, sizeof(dev_name)); in dev_block_size_by_path()
|