/third_party/ltp/testcases/kernel/fs/fs_bind/rbind/ |
H A D | fs_bind_rbind04.sh | 19 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" parent1/child1 23 EXPECT_PASS mount --rbind parent1/child1 share1 24 EXPECT_PASS mount --rbind parent1/child1 parent2/child2 28 EXPECT_PASS mount --rbind "$FS_BIND_DISK2" parent1/child1/a 32 EXPECT_PASS mount --rbind "$FS_BIND_DISK3" parent2/child2/b 36 EXPECT_PASS mount --rbind "$FS_BIND_DISK4" share1/c
|
H A D | fs_bind_rbind28.sh | 19 EXPECT_PASS mount --bind share1 parent1/child1 21 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" parent1/child1 22 EXPECT_PASS mount --make-rslave parent1/child1 24 EXPECT_PASS mount --rbind parent1 parent2 29 EXPECT_PASS mount --rbind "$FS_BIND_DISK2" parent1/child1/a 34 EXPECT_PASS mount --rbind "$FS_BIND_DISK3" parent2/child1/b
|
H A D | fs_bind_rbind21.sh | 19 EXPECT_PASS mount --rbind share1 parent1 20 EXPECT_PASS mount --rbind share2 parent2 23 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" parent1/child1 24 EXPECT_PASS mount --rbind parent1 parent2 29 EXPECT_PASS mount --rbind "$FS_BIND_DISK2" parent1/child1/a 35 EXPECT_PASS mount --rbind "$FS_BIND_DISK3" parent2/child1/b
|
H A D | fs_bind_rbind26.sh | 19 EXPECT_PASS mount --bind share1 parent1/child1 21 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" parent1/child1 22 EXPECT_PASS mount --make-rslave parent1/child1 24 EXPECT_PASS mount --rbind parent1 parent2 29 EXPECT_PASS mount --rbind "$FS_BIND_DISK2" parent1/child1/a 34 EXPECT_PASS mount --rbind "$FS_BIND_DISK3" parent2/child1/b
|
H A D | fs_bind_rbind22.sh | 18 EXPECT_PASS mount --rbind share2 parent2 19 EXPECT_PASS mount --make-rslave parent2 21 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" parent1/child1 22 EXPECT_PASS mount --rbind parent1 parent2 27 EXPECT_PASS mount --rbind "$FS_BIND_DISK2" parent1/child1/a 31 EXPECT_PASS mount --rbind "$FS_BIND_DISK3" parent2/child1/b
|
H A D | fs_bind_rbind20.sh | 18 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" share1 19 EXPECT_PASS mount --rbind share1 parent1 22 EXPECT_PASS mount --rbind parent1 parent2 25 EXPECT_PASS mount --rbind "$FS_BIND_DISK2" parent1/child1 28 EXPECT_PASS mount --rbind "$FS_BIND_DISK3" parent2/a 32 EXPECT_PASS mount --rbind "$FS_BIND_DISK4" share1/b
|
H A D | fs_bind_rbind05.sh | 20 EXPECT_PASS mount --rbind parent1 share1 21 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" parent1/child1 22 EXPECT_PASS mount --rbind parent2 share2 28 EXPECT_PASS mount --rbind parent1/child1 parent2/child2 32 EXPECT_PASS mount --rbind "$FS_BIND_DISK2" parent1/child1/a 36 EXPECT_PASS mount --rbind "$FS_BIND_DISK3" parent2/child2/b 41 EXPECT_PASS mount --rbind "$FS_BIND_DISK4" share2/child2/c
|
H A D | fs_bind_rbind31.sh | 19 EXPECT_PASS mount --rbind share1 parent1 20 EXPECT_PASS mount --rbind share2 parent2 22 EXPECT_PASS mount --make-rslave parent2 25 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" parent1/child1 26 EXPECT_PASS mount --rbind parent1 parent2
|
H A D | fs_bind_rbind07-2.sh | 12 tst_res TINFO "rbind: create slave then mount master - slave still propagates" 17 EXPECT_PASS mount --rbind share2 parent2 18 EXPECT_PASS mount --make-rslave parent2 19 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" share2 23 EXPECT_PASS mount --rbind "$FS_BIND_DISK2" parent2/a
|
H A D | fs_bind_rbind02.sh | 19 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" parent1/child1 23 EXPECT_PASS mount --rbind parent1/child1 share1 24 EXPECT_PASS mount --rbind parent1/child1 parent2/child2 29 EXPECT_PASS mount --rbind "$FS_BIND_DISK2" parent1/child1/a 33 EXPECT_PASS mount --rbind "$FS_BIND_DISK3" parent2/child2/b
|
H A D | fs_bind_rbind01.sh | 19 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" parent1/child1 23 EXPECT_PASS mount --rbind parent2 share2 24 EXPECT_PASS mount --rbind parent1/child1 parent2/child2 29 EXPECT_PASS mount --rbind "$FS_BIND_DISK2" parent1/child1/a 33 EXPECT_PASS mount --rbind "$FS_BIND_DISK3" parent2/child2/b
|
/kernel/linux/linux-6.6/tools/testing/selftests/move_mount_set_group/ |
H A D | move_mount_set_group_test.c | 9 #include <sys/mount.h> 118 if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0)) in prepare_unpriv_mountns() 198 if (mount("testing", "/tmp", "tmpfs", MS_NOATIME | MS_NODEV, in move_mount_set_group_supported() 202 if (mount(NULL, "/tmp", NULL, MS_PRIVATE, 0)) in move_mount_set_group_supported() 211 if (mount("testing", SET_GROUP_FROM, "tmpfs", MS_NOATIME | MS_NODEV, in move_mount_set_group_supported() 215 if (mount(SET_GROUP_FROM, SET_GROUP_TO, NULL, MS_BIND, NULL)) in move_mount_set_group_supported() 218 if (mount(NULL, SET_GROUP_FROM, NULL, MS_SHARED, 0)) in move_mount_set_group_supported() 246 ASSERT_EQ(mount("testing", "/tmp", "tmpfs", MS_NOATIME | MS_NODEV, in FIXTURE_SETUP() 251 ASSERT_EQ(mount("testing", SET_GROUP_A, "tmpfs", MS_NOATIME | MS_NODEV, in FIXTURE_SETUP() 319 ret = mount(NUL in get_nestedns_mount_cb() [all...] |
/third_party/ltp/testcases/kernel/fs/fs_bind/bind/ |
H A D | fs_bind05.sh | 20 EXPECT_PASS mount --bind parent1 share1 21 EXPECT_PASS mount --bind "$FS_BIND_DISK1" parent1/child1 22 EXPECT_PASS mount --bind parent2 share2 28 EXPECT_PASS mount --bind parent1/child1 parent2/child2 31 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" share2/child2/c
|
H A D | fs_bind15.sh | 21 EXPECT_PASS mount --bind parent1 share1 22 EXPECT_PASS mount --bind "$FS_BIND_DISK1" parent1/child1/x 23 EXPECT_PASS mount --bind "$FS_BIND_DISK2" share2 24 EXPECT_PASS mount --bind --make-rslave share2 parent2 29 EXPECT_FAIL mount --bind parent1/child1 parent2/child2
|
H A D | fs_bind07-2.sh | 12 tst_res TINFO "bind: create slave then mount master - slave still propagates" 17 EXPECT_PASS mount --bind share2 parent2 18 EXPECT_PASS mount --make-slave parent2 19 EXPECT_PASS mount --bind "$FS_BIND_DISK1" share2 22 EXPECT_PASS mount --bind "$FS_BIND_DISK2" parent2/a
|
H A D | fs_bind06.sh | 19 EXPECT_PASS mount --bind parent1 share1 20 EXPECT_PASS mount --bind "$FS_BIND_DISK1" parent1/child1 25 EXPECT_PASS mount --bind parent1/child1 parent2/child2 28 EXPECT_PASS mount --bind "$FS_BIND_DISK2" parent1/child1/a 31 EXPECT_PASS mount --bind "$FS_BIND_DISK3" parent2/child2/b
|
/third_party/rust/crates/rustix/src/fs/ |
H A D | mount.rs | 1 //! 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() functions 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 [all...] |
/third_party/ltp/testcases/kernel/fs/fs_bind/move/ |
H A D | fs_bind_move02.sh | 19 EXPECT_PASS mount --bind dir share1 22 EXPECT_PASS mount --move dir parent2/child2 23 EXPECT_PASS mount --bind parent2 share2 25 EXPECT_PASS mount --bind "$FS_BIND_DISK1" parent2/child2/grandchild 30 EXPECT_PASS mount --bind "$FS_BIND_DISK2" share1/grandchild/a
|
H A D | fs_bind_move01.sh | 18 EXPECT_PASS mount --bind dir share1 19 EXPECT_PASS mount --bind parent2 share2 22 EXPECT_PASS mount --move dir parent2/child2 24 EXPECT_PASS mount --bind "$FS_BIND_DISK1" parent2/child2/grandchild 28 EXPECT_PASS mount --bind "$FS_BIND_DISK2" share1/grandchild/a
|
H A D | fs_bind_move07.sh | 20 EXPECT_PASS mount --bind dir share1 22 EXPECT_PASS mount --bind parent2 share2 23 EXPECT_PASS mount --make-rslave parent2 24 EXPECT_PASS mount --move dir parent2/child2 26 EXPECT_PASS mount --bind "$FS_BIND_DISK1" parent2/child2/grandchild
|
H A D | fs_bind_move18.sh | 19 EXPECT_PASS mount --bind parent1/child1 share1 20 EXPECT_PASS mount --bind "$FS_BIND_DISK1" parent1/child1 22 EXPECT_PASS mount --move parent1 parent2 26 EXPECT_PASS mount --bind "$FS_BIND_DISK2" parent2/child1/a 29 EXPECT_PASS mount --bind "$FS_BIND_DISK3" share1/b
|
H A D | fs_bind_move22.sh | 16 EXPECT_PASS mount --bind parent1 parent2 20 EXPECT_PASS mount --move parent1 parent2/a 27 EXPECT_PASS mount --bind tmp1 tmp2 28 EXPECT_PASS mount --move parent2 tmp1/1
|
H A D | fs_bind_move05.sh | 18 EXPECT_PASS mount --bind parent2 share2 20 EXPECT_PASS mount --bind dir share1 22 EXPECT_PASS mount --move dir parent2/child2 24 EXPECT_PASS mount --bind "$FS_BIND_DISK1" parent2/child2/grandchild 29 EXPECT_PASS mount --bind "$FS_BIND_DISK2" share2/child2/grandchild/a
|
/third_party/ltp/testscripts/ |
H A D | ltp-aiodio.sh | 148 mount -t ext2 $part1 $TMP/aiodio 151 mount -t ext3 $part2 $TMP/aiodio2 154 mount -t jfs $part2 $TMP/aiodio2 157 mount -t xfs $part2 $TMP/aiodio2 168 mount -t ext3 $part1 $TMP/aiodio 171 mount -t jfs $part2 $TMP/aiodio2 174 mount -t xfs $part2 $TMP/aiodio2 177 mount -t ext2 $part2 $TMP/aiodio2 188 mount -t jfs $part1 $TMP/aiodio 191 mount [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | test_bpffs.c | 5 #include <sys/mount.h> 38 err = mount("", "/", "", MS_REC | MS_PRIVATE, NULL); in fn() 39 if (CHECK(err, "mount /", "failed: %d\n", errno)) in fn() 46 err = mount("none", TDIR, "tmpfs", 0, NULL); in fn() 47 if (CHECK(err, "mount", "mount root failed: %d\n", errno)) in fn() 57 err = mount("bpf", TDIR "/fs1", "bpf", 0, NULL); in fn() 58 if (CHECK(err, "mount bpffs "TDIR"/fs1", "failed: %d\n", errno)) in fn() 60 err = mount("bpf", TDIR "/fs2", "bpf", 0, NULL); in fn() 61 if (CHECK(err, "mount bpff in fn() [all...] |