Home
last modified time | relevance | path

Searched full:mount (Results 1 – 25 of 827) sorted by relevance

12345678910>>...34

/third_party/ltp/testcases/kernel/fs/acl/
Dtacl_xattr.sh91 mount | grep ext2
95 mkdir -m 777 tacl/mount-ext2
96 mount -t ext3 -o defaults,acl,user_xattr /dev/loop0 tacl/mount-ext2
99 printf "\nFAILED: [ mount ] Make sure that ACL (Access Control List)\n"
101 printf "\t Can not mount ext2 file system with acl and user_xattr options\n"
107 mkdir -m 777 tacl/mount-ext2
108 mount -t ext2 -o defaults,acl,user_xattr /dev/loop0 tacl/mount-ext2
111 printf "\nFAILED: [ mount ] Make sure that ACL (Access Control List)\n"
113 printf "\t Can not mount ext2 file system with acl and user_xattr options\n"
118 chmod 777 tacl/mount-ext2
[all …]
/third_party/ltp/testcases/commands/unshare/
Dunshare01.sh15 # 5) If we run with "--mount", mount and unmount events do not propagate to
16 # its parent mount namespace.
17 # 6) If we run with "--mount --propagation shared", mount and unmount events
18 # propagate to its parent mount namespace.
19 # 7) If we run with "--user --map-root-user --mount", mount and unmount events
20 # do not propagate to its parent mount namespace.
21 # 8) Even if we run with "--user --map-root-user --mount --propagation shared",
22 # mount and unmount events do not propagate to its parent mount namespace
23 # because the shared mount is reduced to a slave mount.
35 TST_NEEDS_CMDS="unshare id mount umount"
[all …]
/third_party/toybox/porting/liteos_a/toys/lsb/
Dmount.c1 /* mount.c - mount filesystems
5 * See http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/mount.html
9 * TODO mount -o loop,autoclear (linux git 96c5865559ce)
11 USE_MOUNT(NEWTOY(mount, "?O:afnrvwt:o*[-rw]", TOYFLAG_BIN|TOYFLAG_STAYROOT))
14 config MOUNT
15 bool "mount"
18 usage: mount [-f] [-t TYPE] [-o OPTION,] [[DEVICE] DIR]
20 Mount new filesystem(s) on directories. With no arguments, display existing
23 -f Fake it (don't actually mount)
25 -o Mount options
[all …]
/third_party/rust/crates/rustix/src/fs/
Dmount.rs1 //! Linux `mount`.
8 /// `mount(source, target, filesystemtype, mountflags, data)`
13 /// [Linux]: https://man7.org/linux/man-pages/man2/mount.2.html
15 pub fn mount<Source: path::Arg, Target: path::Arg, Fs: path::Arg, Data: path::Arg>( in mount() function
26 backend::fs::syscalls::mount( in mount()
39 /// `mount(null, target, null, MS_REMOUNT | mountflags, data)`
44 /// [Linux]: https://man7.org/linux/man-pages/man2/mount.2.html
53 backend::fs::syscalls::mount( in remount()
64 /// `mount(source, target, null, MS_BIND, null)`
69 /// [Linux]: https://man7.org/linux/man-pages/man2/mount.2.html
[all …]
/third_party/toybox/toys/lsb/
Dmount.c1 /* mount.c - mount filesystems
5 * See http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/mount.html
9 * TODO mount -o loop,autoclear (linux git 96c5865559ce)
11 USE_MOUNT(NEWTOY(mount, "?O:afnrvwt:o*[-rw]", TOYFLAG_BIN|TOYFLAG_STAYROOT))
14 config MOUNT
15 bool "mount"
18 usage: mount [-afFrsvw] [-t TYPE] [-o OPTION,] [[DEVICE] DIR]
20 Mount new filesystem(s) on directories. With no arguments, display existing
23 -a Mount all entries in /etc/fstab (with -t, only entries of that TYPE)
24 -O Only mount -a entries that have this option
[all …]
/third_party/toybox/www/doc/
Dmount.txt1 Here's how mount actually works:
3 The mount comand calls the mount system call, which has five arguments you
4 can see on the "man 2 mount" page:
6 int mount(const char *source, const char *target, const char *filesystemtype,
9 The command "mount -t ext2 /dev/sda1 /path/to/mntpoint -o ro,noatime",
18 The mount command's options string is a list of comma separated values. If
19 there's more than one -o argument on the mount command line, they get glued
20 together (in order) with a comma. The mount command also checks the file
22 line get appended to those defaults (if any). Most other command line mount
24 "mount -o remount -w" is equivalent to "mount -o remount,rw"). Behind the
[all …]
/third_party/ltp/testcases/kernel/containers/mountns/
Dmountns03.c10 * Tests a slave mount: slave mount is like a shared mount except that
11 * mount and umount events only propagate towards it.
16 * - Unshares mount namespace and makes it private (so mounts/umounts have no
21 * mount
30 * .. X: must see only the DIRA/"A" and must not see DIRA/"B" (as slave mount does
36 #include <sys/mount.h>
44 * makes mount DIRA a slave of DIRA (all slave mounts have in child_func()
45 * a master mount which is a shared mount) in child_func()
52 tst_res(TPASS, "propagation to slave mount passed"); in child_func()
54 tst_res(TFAIL, "propagation to slave mount failed"); in child_func()
[all …]
Dmountns04.c10 * Tests an unbindable mount: unbindable mount is an unbindable
11 * private mount.
14 * - Unshares mount namespace and makes it private (so mounts/umounts have no
18 * - Check if bind mount unbindable DIRA to DIRB fails as expected
22 #include <sys/mount.h>
38 if (mount(DIRA, DIRB, "none", MS_BIND, NULL) == -1) { in run()
39 tst_res(TPASS, "unbindable mount passed"); in run()
42 tst_res(TFAIL, "unbindable mount faled"); in run()
/third_party/libfuse/doc/
Dkernel.txt14 Non-privileged mount (or user mount):
29 Mount owner:
41 module (fuse.ko), a userspace library (libfuse.*) and a mount utility
57 The filesystem type given to mount(2) can be one of the following:
61 This is the usual way to mount a FUSE filesystem. The first
62 argument of the mount system call may contain an arbitrary string,
68 mount system call is interpreted as the name of the device.
70 Mount options
73 See mount.fuse3(8).
80 mount -t fusectl none /sys/fs/fuse/connections
[all …]
Dmount.fuse3.83 fuse \- configuration and mount options for FUSE file systems
5 …so aims to provide a secure method for non privileged users to create and mount their own filesyst…
20 libfuse) helper to allow non-privileged users to mount filesystems.
31 Some options regarding mount policy can be set in the file \fI/etc/fuse.conf\fP. Currently these op…
38 \fBallow_root\fP mount options (see below).
42 Most of the generic mount options described in \fBmount\fP are
48 .SS "General mount options:"
49 These are FUSE specific mount options that can be specified for all filesystems:
60 This mount option is activated implicitly if the filesystem enables
78 Mount a filesystem backed by a block device. This is a privileged
[all …]
/third_party/ltp/testcases/kernel/fs/fs_bind/bind/
Dfs_bind21.sh18 EXPECT_PASS mount --bind dir1 dir2
19 EXPECT_PASS mount --make-rslave dir2
20 EXPECT_PASS mount --make-rshared dir2
22 EXPECT_PASS mount --bind dir2 dir3
23 EXPECT_PASS mount --make-rslave dir3
24 EXPECT_PASS mount --make-rshared dir3
26 EXPECT_PASS mount --bind dir3 dir4
27 EXPECT_PASS mount --make-rslave dir4
29 EXPECT_PASS mount --bind "$FS_BIND_DISK1" dir1/x
32 EXPECT_PASS mount --bind "$FS_BIND_DISK2" dir2/x/a
[all …]
Dfs_bind11.sh20 EXPECT_PASS mount --bind parent2 share2
21 EXPECT_PASS mount --bind share1 parent1/child1
22 EXPECT_PASS mount --bind "$FS_BIND_DISK1" share1
23 EXPECT_PASS mount --bind "$FS_BIND_DISK2" share2
24 EXPECT_PASS mount --make-rslave parent1/child1
25 EXPECT_PASS mount --make-rslave parent2
31 EXPECT_PASS mount --bind parent1/child1 parent2/child2
34 EXPECT_PASS mount --bind "$FS_BIND_DISK3" parent1/child1/a
38 EXPECT_PASS mount --bind "$FS_BIND_DISK4" parent2/child2/b
44 EXPECT_PASS mount --bind "$FS_BIND_DISK4" share1/c
Dfs_bind03.sh20 EXPECT_PASS mount --bind parent1/child1 share1
21 EXPECT_PASS mount --bind "$FS_BIND_DISK1" parent1/child1
22 EXPECT_PASS mount --bind "$FS_BIND_DISK2" share2
23 EXPECT_PASS mount --bind share2 parent2
24 EXPECT_PASS mount --make-rslave parent2
30 EXPECT_PASS mount --bind parent1/child1 share1
31 EXPECT_PASS mount --bind parent1/child1 parent2/child2
35 EXPECT_PASS mount --bind "$FS_BIND_DISK3" parent1/child1/a
40 EXPECT_PASS mount --bind "$FS_BIND_DISK3" parent2/child2/b
Dfs_bind07.sh20 EXPECT_PASS mount --bind parent1 share1
21 EXPECT_PASS mount --bind "$FS_BIND_DISK1" parent1/child1
24 EXPECT_PASS mount --bind "$FS_BIND_DISK2" share2
25 EXPECT_PASS mount --bind share2 parent2
26 EXPECT_PASS mount --make-rslave parent2
30 EXPECT_PASS mount --bind parent1/child1 parent2/child2
34 EXPECT_PASS mount --bind "$FS_BIND_DISK2" parent1/child1/a
37 EXPECT_PASS mount --bind "$FS_BIND_DISK3" parent2/child2/b
Dfs_bind09.sh20 EXPECT_PASS mount --bind parent2 share2
21 EXPECT_PASS mount --bind share1 parent1/child1
22 EXPECT_PASS mount --bind "$FS_BIND_DISK1" share1
23 EXPECT_PASS mount --make-rslave parent1/child1
27 EXPECT_PASS mount --bind parent1/child1 parent2/child2
30 EXPECT_PASS mount --bind "$FS_BIND_DISK2" parent1/child1/a
34 EXPECT_PASS mount --bind "$FS_BIND_DISK3" parent2/child2/b
38 EXPECT_PASS mount --bind "$FS_BIND_DISK4" share1/c
/third_party/ltp/testcases/kernel/fs/fs_bind/rbind/
Dfs_bind_rbind33.sh18 EXPECT_PASS mount --rbind dir1 dir2
19 EXPECT_PASS mount --make-rslave dir2
20 EXPECT_PASS mount --make-shared dir2
22 EXPECT_PASS mount --rbind dir2 dir3
23 EXPECT_PASS mount --make-rslave dir3
24 EXPECT_PASS mount --make-shared dir3
26 EXPECT_PASS mount --rbind dir3 dir4
27 EXPECT_PASS mount --make-rslave dir4
29 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" dir1/x
33 EXPECT_PASS mount --rbind "$FS_BIND_DISK2" dir2/x/a
[all …]
Dfs_bind_rbind11.sh20 EXPECT_PASS mount --rbind parent2 share2
21 EXPECT_PASS mount --rbind share1 parent1/child1
22 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" share1
23 EXPECT_PASS mount --rbind "$FS_BIND_DISK2" share2
24 EXPECT_PASS mount --make-rslave parent1/child1
25 EXPECT_PASS mount --make-rslave parent2
32 EXPECT_PASS mount --rbind parent1/child1 parent2/child2
36 EXPECT_PASS mount --rbind "$FS_BIND_DISK3" parent1/child1/a
41 EXPECT_PASS mount --rbind "$FS_BIND_DISK4" parent2/child2/b
48 EXPECT_PASS mount --rbind "$FS_BIND_DISK4" share1/c
Dfs_bind_rbind03.sh20 EXPECT_PASS mount --rbind parent1/child1 share1
21 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" parent1/child1
22 EXPECT_PASS mount --rbind "$FS_BIND_DISK2" share2
23 EXPECT_PASS mount --rbind share2 parent2
24 EXPECT_PASS mount --make-rslave parent2
30 EXPECT_PASS mount --rbind parent1/child1 share1
31 EXPECT_PASS mount --rbind parent1/child1 parent2/child2
35 EXPECT_PASS mount --rbind "$FS_BIND_DISK3" parent1/child1/a
40 EXPECT_PASS mount --rbind "$FS_BIND_DISK3" parent2/child2/b
Dfs_bind_rbind38.sh17 EXPECT_PASS mount --rbind share1 parent1/child1
18 EXPECT_PASS mount --rbind share2 parent2/child2
19 EXPECT_PASS mount --make-rslave parent1/child1
20 EXPECT_PASS mount --make-rslave parent2/child2
22 EXPECT_PASS mount --bind "$FS_BIND_DISK1" share1
24 EXPECT_PASS mount --rbind parent1 parent2
29 EXPECT_PASS mount --bind "$FS_BIND_DISK2" share1/a
32 EXPECT_PASS mount --bind "$FS_BIND_DISK3" parent1/child1/b
35 EXPECT_PASS mount --bind "$FS_BIND_DISK4" parent2/child1/c
Dfs_bind_rbind19.sh19 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" share1
20 EXPECT_PASS mount --rbind share1 parent1
21 EXPECT_PASS mount --rbind share2 parent2
22 EXPECT_PASS mount --make-rslave parent2
25 EXPECT_PASS mount --rbind parent1 parent2
27 EXPECT_PASS mount --rbind "$FS_BIND_DISK2" parent1/child1
30 EXPECT_PASS mount --rbind "$FS_BIND_DISK3" parent2/a
34 EXPECT_PASS mount --rbind "$FS_BIND_DISK4" share1/b
Dfs_bind_rbind07.sh20 EXPECT_PASS mount --rbind parent1 share1
21 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" parent1/child1
25 EXPECT_PASS mount --rbind "$FS_BIND_DISK2" share2
26 EXPECT_PASS mount --rbind share2 parent2
27 EXPECT_PASS mount --make-rslave parent2
32 EXPECT_PASS mount --rbind parent1/child1 parent2/child2
37 EXPECT_PASS mount --rbind "$FS_BIND_DISK2" parent1/child1/a
41 EXPECT_PASS mount --rbind "$FS_BIND_DISK3" parent2/child2/b
Dfs_bind_rbind27.sh20 EXPECT_PASS mount --bind share1 parent1/child1
21 EXPECT_PASS mount --bind share2 parent2
22 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" parent1/child1
23 EXPECT_PASS mount --make-rslave parent1/child1
24 EXPECT_PASS mount --make-rslave parent2
26 EXPECT_PASS mount --rbind parent1 parent2
32 EXPECT_PASS mount --rbind "$FS_BIND_DISK2" parent1/child1/a
37 EXPECT_PASS mount --rbind "$FS_BIND_DISK3" parent2/child1/b
Dfs_bind_rbind09.sh20 EXPECT_PASS mount --rbind parent2 share2
21 EXPECT_PASS mount --rbind share1 parent1/child1
22 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" share1
23 EXPECT_PASS mount --make-rslave parent1/child1
29 EXPECT_PASS mount --rbind parent1/child1 parent2/child2
33 EXPECT_PASS mount --rbind "$FS_BIND_DISK2" parent1/child1/a
38 EXPECT_PASS mount --rbind "$FS_BIND_DISK3" parent2/child2/b
43 EXPECT_PASS mount --rbind "$FS_BIND_DISK4" share1/c
/third_party/toybox/tests/
Dmount.test26 "mount $root_fs /mnt >/dev/null 2>&1 && mkdir /mnt/testDir &&
29 "mount $tmp_b_fs /mnt >/dev/null 2>&1 && mkdir /mnt/testDir &&
35 "mount $root_fs /mnt >/dev/null 2>&1 && mkdir /mnt/testDir &&
38 "mount $tmp_b_fs /mnt >/dev/null 2>&1 && mkdir /mnt/testDir &&
43 "mount -w $root_fs /mnt >/dev/null 2>&1 && mkdir /mnt/testDir &&
46 "mount -w $tmp_b_fs /mnt >/dev/null 2>&1 && mkdir /mnt/testDir &&
50 'mount -rw $tmp_b_fs /mnt >/dev/null && mkdir /mnt/testDir && \
54 "mount $tmp_b_fs /mnt -t $tmp_b_fs_type >/dev/null 2>&1 &&
61 'mount -o bind testDir1 testDir >/dev/null 2>&1 && \
65 'mount -o rbind testDir1 testDir >/dev/null 2>&1 && \
[all …]
/third_party/ltp/testcases/kernel/fs/fs_bind/cloneNS/
Dfs_bind_cloneNS06.sh18 EXPECT_PASS mount --rbind dir1 dir2
19 EXPECT_PASS mount --make-rslave dir2
20 EXPECT_PASS mount --make-rshared dir2
22 EXPECT_PASS mount --rbind dir2 dir3
23 EXPECT_PASS mount --make-rslave dir3
24 EXPECT_PASS mount --make-rshared dir3
26 EXPECT_PASS mount --rbind dir3 dir4
27 EXPECT_PASS mount --make-rslave dir4
31 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" dir1/x
35 EXPECT_PASS mount --rbind "$FS_BIND_DISK2" dir2/x/a
[all …]

12345678910>>...34