Searched refs:mnt (Results 1 - 25 of 50) sorted by relevance

12

/external/linux-kselftest/tools/testing/selftests/memfd/
H A Drun_fuse_test.sh3 if test -d "./mnt" ; then
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/ltp/testcases/kernel/fs/fs_bind/bind/
H A Dtest2343 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/
[all...]
/external/ltp/testcases/kernel/controllers/memcg/control/
H A Dmemcg_control_test.sh85 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/
[all...]
/external/ltp/lib/
H A Dtst_path_has_mnt_flags.c31 struct mntent *mnt; local
57 while ((mnt = getmntent(f))) {
59 if (!strcmp(mnt->mnt_fsname, "rootfs"))
62 prefix_len = strlen(mnt->mnt_dir);
64 if (strncmp(path, mnt->mnt_dir, prefix_len) == 0
71 if (hasmntopt(mnt, flags[i]) != NULL)
/external/fio/
H A Dcgroup.h14 char **mnt)
20 static inline void cgroup_shutdown(struct thread_data *td, char **mnt) argument
13 cgroup_setup(struct thread_data *td, struct flist_head *list, char **mnt) argument
H A Dcgroup.c25 struct mntent *mnt, dummy; local
35 while ((mnt = getmntent_r(f, &dummy, buf, sizeof(buf))) != NULL) {
36 if (!strcmp(mnt->mnt_type, "cgroup") &&
37 strstr(mnt->mnt_opts, "blkio"))
41 if (mnt)
42 mntpoint = smalloc_strdup(mnt->mnt_dir);
100 static char *get_cgroup_root(struct thread_data *td, char *mnt) argument
105 sprintf(str, "%s/%s", mnt, td->o.cgroup);
107 sprintf(str, "%s/%s", mnt, td->o.name);
142 static int cgroup_del_pid(struct thread_data *td, char *mnt) argument
147 cgroup_setup(struct thread_data *td, struct flist_head *clist, char **mnt) argument
189 cgroup_shutdown(struct thread_data *td, char **mnt) argument
[all...]
/external/autotest/server/site_tests/platform_CrashStateful/
H A Dplatform_CrashStateful.py39 def _ecrypt_mount(self, edir, mnt):
43 @param mnt: mount point for encrypted file system
52 self._run('mkdir -p %s %s' % (edir, mnt))
54 (options, edir, mnt))
57 def _ecrypt_unmount(self, edir, mnt):
61 @param mnt: mount point for encrypted file system
63 self._run('umount %s' % mnt)
65 self._run('rm -R %s' % mnt)
129 def _crash_ecrptfs(self, edir, mnt, dir):
133 @param mnt
[all...]
/external/linux-kselftest/tools/testing/selftests/vm/
H A Drun_vmtests6 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/ltp/testcases/open_posix_testsuite/include/
H A Dnoatime.h48 struct mntent *mnt; local
60 while ((mnt = getmntent(f))) {
62 if (!strcmp(mnt->mnt_fsname, "rootfs"))
65 prefix = strpref(path, mnt->mnt_dir);
69 has_noatime = hasmntopt(mnt, "noatime") != NULL;
/external/fio/lib/
H A Dmountcheck.c14 struct mntent *mnt; local
21 while ((mnt = getmntent(mtab)) != NULL) {
22 if (!mnt->mnt_fsname)
24 if (!strcmp(mnt->mnt_fsname, dev)) {
/external/autotest/server/site_tests/platform_SyncCrash/
H A Dplatform_SyncCrash.py83 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))
123 @param mnt - mount point for the encrypted file system
/external/selinux/libselinux/src/
H A Dinit.c32 static int verify_selinuxmnt(const char *mnt) argument
38 rc = statfs(mnt, &sfbuf);
43 rc = statvfs(mnt, &vfsbuf);
46 set_selinuxmnt(mnt);
143 void set_selinuxmnt(const char *mnt)
145 selinux_mnt = strdup(mnt);
/external/ltp/testcases/kdump/
H A Drunkdump.sh63 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/autotest/client/site_tests/kernel_fs_Punybench/
H A Dkernel_fs_Punybench.py42 def _ecrypt_mount(dir, mnt):
46 @param mnt: mount point for encrypted file system
55 utils.system_output('mkdir -p %s %s' % (dir, mnt))
57 (options, dir, mnt))
61 def _ecrypt_unmount(dir, mnt):
65 @param mnt: mount point for encrypted file system
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)
[all...]
/external/e2fsprogs/lib/ext2fs/
H A Dismounted.c98 struct mntent *mnt; local
127 while ((mnt = getmntent (f)) != NULL) {
128 if (mnt->mnt_fsname[0] != '/')
130 if (strcmp(file, mnt->mnt_fsname) == 0)
132 if (stat(mnt->mnt_fsname, &st_buf) == 0) {
137 if (check_loop_mounted(mnt->mnt_fsname,
150 if (mnt == 0) {
177 if (stat(mnt->mnt_dir, &st_buf) < 0) {
182 mtab_file, mnt->mnt_dir);
191 mtab_file, file, mnt
[all...]
/external/toybox/tests/
H A Dmount.test23 # TODO: replace /mnt with a directory we know exists. (Android has no /mnt.)
25 testing "$root_fs /mnt" \
26 "mount $root_fs /mnt >/dev/null 2>&1 && mkdir /mnt/testDir &&
27 sleep 1 && umount /mnt && test -e /testDir && rmdir /testDir" "" "" ""
28 testing "$tmp_b_fs /mnt" \
29 "mount $tmp_b_fs /mnt >/dev/null 2>&1 && mkdir /mnt/testDir &&
30 sleep 1 && umount /mnt
[all...]
/external/e2fsprogs/misc/
H A Dutil.c267 void print_check_message(int mnt, unsigned int check) argument
269 if (mnt < 0)
270 mnt = 0;
271 if (!mnt && !check)
277 mnt, ((double) check) / (3600 * 24));
/external/f2fs-tools/scripts/
H A Dspo_test.sh3 MNT=/mnt/f2fs
18 umount /mnt/*
/external/valgrind/memcheck/tests/solaris/
H A Dscalar_ioctl.c53 struct extmnttab mnt; local
56 mnt.mnt_special = (void *) (x0 + 1);
57 mnt.mnt_mountp = (void *) (x0 + 1);
58 mnt.mnt_fstype = (void *) (x0 + 1);
59 mnt.mnt_mntopts = (void *) (x0 + 1);
60 mnt.mnt_time = (void *) (x0 + 1);
62 embuf.mbuf_emp = x0 + &mnt;
93 struct mnttab mnt; local
96 mnt.mnt_special = (void *) (x0 + 1);
97 mnt
[all...]
/external/python/cpython2/Modules/_ctypes/libffi/src/
H A Dclosures.c338 struct mntent mnt; local
341 if (getmntent_r (last_mntent, &mnt, buf, sizeof (buf)) == NULL)
344 if (hasmntopt (&mnt, "ro")
345 || hasmntopt (&mnt, "noexec")
346 || access (mnt.mnt_dir, W_OK))
349 fd = open_temp_exec_file_dir (mnt.mnt_dir);
/external/ltp/testcases/network/nfsv4/acl/
H A Druntest8 NFSMNTDIR=/mnt/nfs-acl
/external/ltp/tools/pounder21/src/
H A Dlibidecd.sh38 DEFAULT_MOUNT=/mnt
/external/syslinux/extlinux/
H A Dmain.c1020 /* btrfs st_dev is not matched with mnt st_rdev, it is a known issue */
1037 struct mntent *mnt; local
1048 while ((mnt = getmntent(mtab))) {
1049 /* btrfs st_dev is not matched with mnt st_rdev, it is a known issue */
1052 if (!strcmp(mnt->mnt_type, "btrfs") &&
1053 !stat(mnt->mnt_dir, &dst) &&
1056 get_default_subvol(mnt->mnt_dir, subvol);
1061 if ((!strcmp(mnt->mnt_type, "ext2") ||
1062 !strcmp(mnt->mnt_type, "ext3") ||
1063 !strcmp(mnt
[all...]
/external/iproute2/tc/
H A Dtc_bpf.c290 static int bpf_valid_mntpt(const char *mnt, unsigned long magic) argument
294 if (statfs(mnt, &st_fs) < 0)
303 char *mnt, int len,
314 strncpy(mnt, *ptr, len - 1);
315 mnt[len - 1] = 0;
316 return mnt;
327 mnt, type) == 2) {
336 return mnt;
350 const char *mnt; local
353 mnt
302 bpf_find_mntpt(const char *fstype, unsigned long magic, char *mnt, int len, const char * const *known_mnts) argument
385 static const char *mnt; local
[all...]
/external/ltp/testcases/kernel/io/ltp-aiodio/
H A Daiocp.c74 struct mntent *mnt; local
88 while ((mnt = getmntent(f))) {
90 if (mnt->mnt_fsname[0] != '/')
93 prefix_len = strlen(mnt->mnt_dir);
96 !strncmp(path, mnt->mnt_dir, prefix_len)) {
98 strncpy(dev_name, mnt->mnt_fsname, sizeof(dev_name));

Completed in 9426 milliseconds

12