Home
last modified time | relevance | path

Searched refs:mnt (Results 1 – 25 of 121) sorted by relevance

12345

/external/ltp/testcases/kernel/fs/fs_bind/bind/
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/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/e2fsprogs/tests/f_badsymlinks2/
Dmkimage.sh10 umount mnt
12 mount image mnt
16 umount mnt
18 mount image mnt
107 mkdir -p mnt
108 umount mnt &> /dev/null || true
112 mount image mnt
114 create_symlinks mnt/default
115 create_encrypted_symlinks mnt/encrypted
118 create_symlinks mnt/extents
[all …]
/external/e2fsprogs/tests/f_verity/
Dmkimage.sh7 mkdir -p mnt
8 umount mnt &> /dev/null || true
12 mount image mnt
17 head -c 4096 /dev/zero > mnt/tmp_$i
20 rm mnt/tmp_$i
22 head -c $((40 * 4096)) /dev/zero > mnt/file
23 fsverity enable mnt/file
24 rm mnt/tmp_*
26 umount mnt
27 rmdir mnt
/external/bcc/tools/
Dmountsnoop_example.txt6 # mount --bind /mnt /mnt
7 # umount /mnt
9 # mount --bind /mnt /mnt
10 # umount /mnt
14 mount 710 710 4026531840 mount("/mnt", "/mnt", "", MS_MGC_VAL|MS_BIND, "") = 0
15 umount 714 714 4026531840 umount("/mnt", 0x0) = 0
17 mount 725 725 4026532160 mount("/mnt", "/mnt", "", MS_MGC_VAL|MS_BIND, "") = 0
18 umount 728 728 4026532160 umount("/mnt", 0x0) = 0
25 /proc/$PID/ns/mnt.
/external/ltp/testcases/kernel/controllers/memcg/control/
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/$TST_NUM
[all …]
/external/iproute2/lib/
Dfs.c38 char *mnt = NULL; in find_fs_mount() local
51 mnt = strdup(path); in find_fs_mount()
58 return mnt; in find_fs_mount()
64 char *mnt = find_fs_mount(CGROUP2_FS_NAME); in find_cgroup2_mount() local
66 if (mnt) in find_cgroup2_mount()
67 return mnt; in find_cgroup2_mount()
69 mnt = strdup(MNT_CGRP2_PATH); in find_cgroup2_mount()
70 if (!mnt) { in find_cgroup2_mount()
76 if (make_path(mnt, 0755)) { in find_cgroup2_mount()
78 free(mnt); in find_cgroup2_mount()
[all …]
/external/linux-kselftest/tools/testing/selftests/memfd/
Drun_fuse_test.sh5 fusermount -u ./mnt
6 rmdir ./mnt
11 mkdir mnt
12 ./fuse_mnt ./mnt
13 ./fuse_test ./mnt/memfd $@
14 fusermount -u ./mnt
15 rmdir ./mnt
/external/u-boot/test/fs/
Dfat-noncontig-test.sh57 mnt=${odir}/mnt
60 mnttestfn=${mnt}/${testfn}
73 mkdir -p ${mnt}
90 sudo mount -o loop,uid=$(id -u) ${img} ${mnt}
97 fn=${mnt}/keep-${sects}.img
99 fn=${mnt}/remove-${sects}.img
103 rm -f ${mnt}/remove-*.img
109 sudo umount ${mnt}
116 sudo mount -o ro,loop,uid=$(id -u) ${img} ${mnt}
122 sudo umount ${mnt}
/external/autotest/server/site_tests/platform_CrashStateful/
Dplatform_CrashStateful.py39 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/libfuse/lib/
Dmount_util.c34 #define umount2(mnt, flags) unmount(mnt, ((flags) == 2) ? MNT_FORCE : 0) argument
38 #define mtab_needs_update(mnt) 0 argument
40 static int mtab_needs_update(const char *mnt) in mtab_needs_update() argument
46 if (strncmp(mnt, _PATH_MOUNTED, strlen(mnt)) == 0 && in mtab_needs_update()
47 _PATH_MOUNTED[strlen(mnt)] == '/') in mtab_needs_update()
86 const char *mnt, const char *type, const char *opts) in add_mount() argument
118 "-f", "-t", type, "-o", opts, fsname, mnt, NULL, &env); in add_mount()
137 const char *mnt, const char *type, const char *opts) in fuse_mnt_add_mount() argument
139 if (!mtab_needs_update(mnt)) in fuse_mnt_add_mount()
142 return add_mount(progname, fsname, mnt, type, opts); in fuse_mnt_add_mount()
[all …]
Dmount.c40 #define umount2(mnt, flags) unmount(mnt, (flags == 2) ? MNT_FORCE : 0) argument
384 static int fuse_mount_sys(const char *mnt, struct mount_opts *mo, in fuse_mount_sys() argument
395 if (!mnt) { in fuse_mount_sys()
400 res = stat(mnt, &stbuf); in fuse_mount_sys()
403 mnt, strerror(errno)); in fuse_mount_sys()
450 res = mount(source, mnt, type, mo->flags, mo->kernel_opts); in fuse_mount_sys()
461 res = mount(source, mnt, type, mo->flags, mo->kernel_opts); in fuse_mount_sys()
486 char *newmnt = fuse_mnt_resolve_path("fuse", mnt); in fuse_mount_sys()
504 umount2(mnt, 2); /* lazy umount */ in fuse_mount_sys()
Dmount_util.h12 const char *mnt, const char *type, const char *opts);
13 int fuse_mnt_remove_mount(const char *progname, const char *mnt);
/external/ltp/lib/
Dtst_path_has_mnt_flags.c31 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/e2fsprogs/lib/ext2fs/
Dismounted.c99 struct mntent *mnt; in check_mntent_file() local
128 while ((mnt = getmntent (f)) != NULL) { in check_mntent_file()
129 if (mnt->mnt_fsname[0] != '/') in check_mntent_file()
131 if (strcmp(file, mnt->mnt_fsname) == 0) in check_mntent_file()
133 if (stat(mnt->mnt_fsname, &st_buf) == 0) { in check_mntent_file()
138 if (check_loop_mounted(mnt->mnt_fsname, in check_mntent_file()
151 if (mnt == 0) { in check_mntent_file()
178 if (stat(mnt->mnt_dir, &st_buf) < 0) { in check_mntent_file()
183 mtab_file, mnt->mnt_dir); in check_mntent_file()
192 mtab_file, file, mnt->mnt_dir); in check_mntent_file()
[all …]
/external/ltp/testcases/kdump/
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/ltp/testcases/open_posix_testsuite/include/
Dnoatime.h49 struct mntent *mnt; in mounted_noatime() local
61 while ((mnt = getmntent(f))) { in mounted_noatime()
63 if (!strcmp(mnt->mnt_fsname, "rootfs")) in mounted_noatime()
66 prefix = strpref(path, mnt->mnt_dir); in mounted_noatime()
70 has_noatime = hasmntopt(mnt, "noatime") != NULL; in mounted_noatime()
/external/selinux/libselinux/src/
Dinit.c32 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/ltp/testcases/kernel/io/stress_floppy/datafiles/
Ddd_file11 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/linux-kselftest/android/patches/
D0013-run_vmtests.patch9 mnt=./huge
70 -mkdir $mnt
71 -mount -t hugetlbfs none $mnt
132 -./userfaultfd hugetlb $half_ufd_size_MB 32 $mnt/ufd_test_file
139 -rm -f $mnt/ufd_test_file
153 -umount $mnt
154 -rm -rf $mnt
225 +#mkdir $mnt
226 +#mount -t hugetlbfs none $mnt
287 +#./userfaultfd hugetlb $half_ufd_size_MB 32 $mnt/ufd_test_file
[all …]
/external/iproute2/ip/
Dipvrf.c212 char *mnt, *vrf; in ipvrf_pids() local
227 mnt = find_cgroup2_mount(); in ipvrf_pids()
228 if (!mnt) in ipvrf_pids()
234 ret = recurse_dir(mnt, vrf, netns); in ipvrf_pids()
237 free(mnt); in ipvrf_pids()
355 char path[PATH_MAX], *mnt, pid[16]; in vrf_switch() local
368 mnt = find_cgroup2_mount(); in vrf_switch()
369 if (!mnt) in vrf_switch()
402 mnt, vpath, netns, ifindex ? name : ""); in vrf_switch()
437 free(mnt); in vrf_switch()
/external/e2fsprogs/misc/
Dutil.c270 void print_check_message(int mnt, unsigned int check) in print_check_message() argument
272 if (mnt < 0) in print_check_message()
273 mnt = 0; in print_check_message()
274 if (!mnt && !check) in print_check_message()
280 mnt, ((double) check) / (3600 * 24)); in print_check_message()
/external/ltp/testcases/kernel/fs/fs_bind/
DREADME17 # 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/e2fsprogs/scrub/
De2scrub.in151 mnt="$(mnt_from_dev "${dev}")"
154 mnt="${arg}"
247 if [ "${fstrim}" -eq 1 ] && [ -d "${mnt}" ] && type fstrim > /dev/null 2>&1; then
249 fstrim -v "${mnt}"
/external/linux-kselftest/tools/testing/selftests/rcutorture/doc/
Drcu-test-image.txt12 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/arm-trusted-firmware/lib/debugfs/
Ddev.c263 chan_t *mnt, *channel; in path_to_channel() local
311 mnt = mount_point_to_channel(channel->index, channel->qid); in path_to_channel()
312 if (mnt != NULL) { in path_to_channel()
313 clone(mnt, channel); in path_to_channel()
515 chan_t *c, *mnt; in devstat() local
534 mnt = mount_point_to_channel(dir->index, dir->qid); in devstat()
535 if (mnt != NULL) { in devstat()
536 dir->qid = mnt->qid; in devstat()
537 dir->index = mnt->index; in devstat()

12345