Home
last modified time | relevance | path

Searched refs:fd_tmpfs (Results 1 – 4 of 4) sorted by relevance

/linux/tools/testing/selftests/filesystems/overlayfs/
H A Dset_layers_via_fds.c47 int fd_context, fd_tmpfs, fd_overlay; in TEST_F() local
61 fd_tmpfs = sys_fsmount(fd_context, 0, 0); in TEST_F()
62 ASSERT_GE(fd_tmpfs, 0); in TEST_F()
65 ASSERT_EQ(mkdirat(fd_tmpfs, "w", 0755), 0); in TEST_F()
66 ASSERT_EQ(mkdirat(fd_tmpfs, "u", 0755), 0); in TEST_F()
67 ASSERT_EQ(mkdirat(fd_tmpfs, "l1", 0755), 0); in TEST_F()
68 ASSERT_EQ(mkdirat(fd_tmpfs, "l2", 0755), 0); in TEST_F()
69 ASSERT_EQ(mkdirat(fd_tmpfs, "l3", 0755), 0); in TEST_F()
70 ASSERT_EQ(mkdirat(fd_tmpfs, "l4", 0755), 0); in TEST_F()
71 ASSERT_EQ(mkdirat(fd_tmpfs, "d1", 0755), 0); in TEST_F()
[all …]
/linux/tools/testing/selftests/filesystems/
H A Dfile_stressor.c51 int fd_tmpfs; in FIXTURE() local
71 self->fd_tmpfs = sys_fsmount(fd_context, 0, 0); in FIXTURE_SETUP()
72 ASSERT_GE(self->fd_tmpfs, 0); in FIXTURE_SETUP()
75 …ASSERT_EQ(sys_move_mount(self->fd_tmpfs, "", -EBADF, "/slab_typesafe_by_rcu", MOVE_MOUNT_F_EMPTY_P… in FIXTURE_SETUP()
103 ASSERT_EQ(close(self->fd_tmpfs), 0); in FIXTURE_TEARDOWN()
/linux/tools/testing/selftests/coredump/
H A Dcoredump_test_helpers.c64 int fd_context, fd_tmpfs; in create_detached_tmpfs() local
73 fd_tmpfs = sys_fsmount(fd_context, 0, 0); in create_detached_tmpfs()
75 return fd_tmpfs; in create_detached_tmpfs()
/linux/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c1744 int fd_context, fd_tmpfs, fd_tree; in TEST_F() local
1751 fd_tmpfs = sys_fsmount(fd_context, 0, 0); in TEST_F()
1752 ASSERT_GE(fd_tmpfs, 0); in TEST_F()
1756 ASSERT_EQ(mkdirat(fd_tmpfs, "subdir", 0755), 0); in TEST_F()
1758 fd_tree = sys_open_tree(fd_tmpfs, "subdir", in TEST_F()
1764 EXPECT_EQ(close(fd_tmpfs), 0); in TEST_F()