Home
last modified time | relevance | path

Searched refs:umount2 (Results 1 – 25 of 44) sorted by relevance

12

/linux/tools/testing/selftests/filesystems/umount_propagation/
H A Dlocked_mount_test.c193 umount2(self->base, MNT_DETACH); in FIXTURE_TEARDOWN()
279 if (!umount2(hidden, 0) || errno != EINVAL) in expiry_child()
284 if (umount2(hidden, 0)) in expiry_child()
287 if (!umount2(hidden, 0) || errno != EINVAL) in expiry_child()
291 umount2(x, 0); in expiry_child()
354 if (!umount2(tracing, 0) || errno != EINVAL) in copied_tree_child()
359 if (!umount2(x, 0) || errno != EBUSY) in copied_tree_child()
408 if (!umount2(d, 0) || errno != EINVAL) in propagation_child()
413 if (!umount2(d, 0) || errno != EINVAL) in propagation_child()
461 ASSERT_EQ(umount2(p, 0), 0); in TEST_F()
[all …]
H A Dshrink_submounts_test.c75 umount2(self->base, MNT_DETACH); in FIXTURE_SETUP()
83 umount2(self->base, MNT_DETACH); in FIXTURE_SETUP()
95 umount2(self->base, MNT_DETACH); in FIXTURE_TEARDOWN()
162 ASSERT_EQ(umount2(p1, 0), -1); in TEST_F()
206 ASSERT_EQ(umount2(v, 0), 0); in TEST_F()
H A Dumount_propagation_test.c107 umount2(self->base, MNT_DETACH); in FIXTURE_TEARDOWN()
209 ASSERT_EQ(umount2(self->victim, 0), -1); in TEST_F()
218 ASSERT_EQ(umount2(self->victim, 0), 0); in TEST_F()
/linux/tools/testing/selftests/filesystems/mount_cycle/
H A Dovermount_reparent_test.c108 umount2(p, MNT_DETACH); in FIXTURE_TEARDOWN()
110 umount2(p, MNT_DETACH); in FIXTURE_TEARDOWN()
162 ASSERT_EQ(umount2(amp, MNT_DETACH), 0); in TEST_F()
165 ASSERT_EQ(umount2(bmp, MNT_DETACH), 0); in TEST_F()
H A Dnsfs_rbind_loop_test.c116 umount2(self->dir, MNT_DETACH); in FIXTURE_TEARDOWN()
148 umount2(y, MNT_DETACH); in newer_ns_child()
189 ASSERT_EQ(umount2(self->x, MNT_DETACH), 0); in TEST_F()
190 ASSERT_EQ(umount2(self->x, MNT_DETACH), 0); in TEST_F()
H A Dunmounted_tree_test.c118 umount2(self->dir, MNT_DETACH); in FIXTURE_TEARDOWN()
151 ASSERT_EQ(umount2(target, MNT_DETACH), 0); in assert_root_copied()
174 ASSERT_EQ(umount2(x, MNT_DETACH), 0); in TEST_F()
180 ASSERT_EQ(umount2(y, MNT_DETACH), 0); in TEST_F()
224 ASSERT_EQ(umount2(x, MNT_DETACH), 0); in TEST_F()
401 if (fd < 0 || umount2(a->x, MNT_DETACH)) in ordinary_copy()
H A Dovermount_ns_file_test.c115 umount2(self->dir, MNT_DETACH); in FIXTURE_TEARDOWN()
186 EXPECT_EQ(umount2(b, 0), 0); in TEST_F()
H A Dlocked_handle_test.c196 else if (umount2(w, MNT_DETACH)) { in race_round()
249 if (umount2(w, MNT_DETACH)) in allowed_child()
316 umount2(self->base, MNT_DETACH); in FIXTURE_TEARDOWN()
H A Dloop_cycle_test.c367 umount2(base, MNT_DETACH); in FIXTURE_TEARDOWN()
448 umount2(at("vol"), MNT_DETACH); in child_fails()
449 umount2(at("vol2"), MNT_DETACH); in child_fails()
450 umount2(at("p"), MNT_DETACH); in child_fails()
451 umount2(at("img"), MNT_DETACH); in child_fails()
1432 umount2(HOLDER_BELOW, MNT_DETACH); in holder_child()
/linux/tools/testing/selftests/pid_namespace/
H A Dpid_max.c113 umount2("/proc", MNT_DETACH); in pid_max_nested_inner()
159 umount2("/proc", MNT_DETACH); in pid_max_nested_outer()
238 umount2("/proc", MNT_DETACH); in pid_max_nested_limit_inner()
314 umount2("/proc", MNT_DETACH); in pid_max_nested_limit_outer()
373 umount2("/proc", MNT_DETACH);
/linux/tools/testing/selftests/filesystems/statmount/
H A Dstatmount_test.c96 umount2(root_mntpoint, MNT_DETACH); in cleanup_namespace()
762 umount2(subdir, MNT_DETACH); in test_statmount_by_fd()
765 umount2(tmpdir, MNT_DETACH); in test_statmount_by_fd()
806 if (umount2(tmpdir, MNT_DETACH)) { in test_statmount_by_fd_unmounted()
847 umount2(subdir, MNT_DETACH); in test_statmount_by_fd_unmounted()
850 umount2(tmpdir, MNT_DETACH); in test_statmount_by_fd_unmounted()
/linux/tools/testing/selftests/move_mount_set_group/
H A Dmove_mount_set_group_test.c239 umount2("/tmp", MNT_DETACH); in move_mount_set_group_supported()
260 umount2("/tmp", MNT_DETACH); in FIXTURE_SETUP()
280 umount2("/tmp", MNT_DETACH); in FIXTURE_TEARDOWN()
/linux/tools/testing/selftests/filesystems/open_tree_ns/
H A Dopen_tree_ns_covered_test.c126 umount2(self->dir, MNT_DETACH); in FIXTURE_SETUP()
143 umount2(self->dir, MNT_DETACH); in FIXTURE_TEARDOWN()
H A Dopen_tree_ns_test.c738 if (umount2(mnt_point, MNT_DETACH) == 0) { in TEST_F()
855 if (umount2(mnt_point, MNT_DETACH) != 0) { in TEST_F()
947 umount2(self->tmpdir, MNT_DETACH); in FIXTURE_TEARDOWN()
1112 umount2(self->dir, MNT_DETACH); in FIXTURE_TEARDOWN()
/linux/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c377 (void)umount2("/mnt", MNT_DETACH); in FIXTURE_SETUP()
378 (void)umount2("/tmp", MNT_DETACH); in FIXTURE_SETUP()
430 (void)umount2("/mnt/A", MNT_DETACH); in FIXTURE_TEARDOWN()
431 (void)umount2("/tmp", MNT_DETACH); in FIXTURE_TEARDOWN()
1002 (void)umount2("/mnt", MNT_DETACH); in FIXTURE_SETUP()
1003 (void)umount2("/tmp", MNT_DETACH); in FIXTURE_SETUP()
1056 (void)umount2("/mnt/A", MNT_DETACH); in FIXTURE_TEARDOWN()
1057 (void)umount2("/tmp", MNT_DETACH); in FIXTURE_TEARDOWN()
1463 (void)umount2("/mnt/A", MNT_DETACH); in TEST_F()
1772 ASSERT_EQ(umount2("/mnt/open_tree_subfolder", 0), 0); in TEST_F()
[all …]
/linux/tools/testing/selftests/filesystems/empty_mntns/
H A Dinternal_sb_reconfigure_test.c62 if (!umount2("/", 0)) in empty_mntns_child()
/linux/tools/testing/selftests/filesystems/mount-notify/
H A Dmount-notify_test.c110 EXPECT_EQ(umount2(self->root_mntpoint, MNT_DETACH), 0); in FIXTURE_TEARDOWN()
319 ret = umount2("/", MNT_DETACH); in TEST_F()
470 umount2("/a", MNT_DETACH); in TEST_F()
H A Dmount-notify_test_ns.c137 EXPECT_EQ(umount2(self->root_mntpoint, MNT_DETACH), 0); in FIXTURE_TEARDOWN()
346 ret = umount2("/", MNT_DETACH); in TEST_F()
497 umount2("/a", MNT_DETACH); in TEST_F()
/linux/tools/testing/selftests/filesystems/fuse/
H A Dfusectl_test.c100 umount2(self->fuse_mountpoint, MNT_DETACH); in FIXTURE_TEARDOWN()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dconnect_ping.c177 umount2("/sys", MNT_DETACH); in test_connect_ping()
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_bind_mount.c49 ASSERT_EQ(umount2(self->template, 0), 0); in FIXTURE_TEARDOWN()
/linux/tools/testing/selftests/filesystems/binderfs/
H A Dbinderfs_test.c175 ret = umount2(binderfs_mntpt, MNT_DETACH); in __do_binderfs_test()
448 ret = umount2(binderfs_mntpt, MNT_DETACH); in TEST()
/linux/tools/testing/selftests/filesystems/file_stressor/
H A Dfile_stressor.c105 umount2("/slab_typesafe_by_rcu", 0); in FIXTURE_TEARDOWN()
/linux/tools/testing/selftests/filesystems/overlayfs/
H A Dautomount_in_layer.c155 umount2(self->base, MNT_DETACH); in FIXTURE_TEARDOWN()
/linux/tools/testing/selftests/filesystems/mntns_unbindable/
H A Dmntns_unbindable_test.c76 umount2(self->base, MNT_DETACH); in FIXTURE_TEARDOWN()

12