Lines Matching full:mount

10 #include <sys/mount.h>
236 if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0)) in prepare_unpriv_mountns()
396 ASSERT_EQ(mount("testing", "/tmp", "tmpfs", MS_NOATIME | MS_NODEV, in FIXTURE_SETUP()
401 ASSERT_EQ(mount("testing", "/tmp/B", "tmpfs", MS_NOATIME | MS_NODEV, in FIXTURE_SETUP()
406 ASSERT_EQ(mount("testing", "/tmp/B/BB", "tmpfs", MS_NOATIME | MS_NODEV, in FIXTURE_SETUP()
409 ASSERT_EQ(mount("testing", "/mnt", "tmpfs", MS_NOATIME | MS_NODEV, in FIXTURE_SETUP()
414 ASSERT_EQ(mount("testing", "/mnt/A", "tmpfs", MS_NOATIME | MS_NODEV, in FIXTURE_SETUP()
419 ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0); in FIXTURE_SETUP()
423 ASSERT_EQ(mount("testing", "/mnt/B", "ramfs", in FIXTURE_SETUP()
428 ASSERT_EQ(mount("testing", "/tmp/B/BB", "devpts", in FIXTURE_SETUP()
643 * in the middle and the mount options need to be unchanged. in TEST_F()
691 * We're holding a fd open to a mount somwhere in the middle so this in TEST_F()
692 * needs to fail somewhere in the middle. After this the mount options in TEST_F()
922 /* Try to change mount options from multiple threads. */ in TEST_F()
1012 ASSERT_EQ(mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0), 0); in FIXTURE_SETUP()
1017 ASSERT_EQ(mount("testing", "/tmp", "tmpfs", MS_NOATIME | MS_NODEV, in FIXTURE_SETUP()
1024 ASSERT_EQ(mount("testing", "/tmp/B", "tmpfs", MS_NOATIME | MS_NODEV, in FIXTURE_SETUP()
1031 ASSERT_EQ(mount("testing", "/tmp/B/BB", "tmpfs", MS_NOATIME | MS_NODEV, in FIXTURE_SETUP()
1034 ASSERT_EQ(mount("testing", "/mnt", "tmpfs", MS_NOATIME | MS_NODEV, in FIXTURE_SETUP()
1039 ASSERT_EQ(mount("testing", "/mnt/A", "tmpfs", MS_NOATIME | MS_NODEV, in FIXTURE_SETUP()
1044 ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0); in FIXTURE_SETUP()
1048 ASSERT_EQ(mount("testing", "/mnt/B", "ramfs", in FIXTURE_SETUP()
1053 ASSERT_EQ(mount("testing", "/tmp/B/BB", "devpts", in FIXTURE_SETUP()
1062 ASSERT_EQ(system("mount -o loop -t ext4 /mnt/C/ext4.img /mnt/D/"), 0); in FIXTURE_SETUP()
1086 TH_LOG("failure: created idmapped mount with negative fd"); in TEST_F()
1104 TH_LOG("failure: created idmapped mount with too large fd value"); in TEST_F()
1127 TH_LOG("failure: created idmapped mount with closed fd"); in TEST_F()
1239 * Validate that an attached mount in our mount namespace can be idmapped.
1240 * (The kernel enforces that the mount's mount namespace and the caller's mount
1268 * Validate that idmapping a mount is rejected if the mount's mount namespace
1269 * and our mount namespace don't match.
1270 * (The kernel enforces that the mount's mount namespace and the caller's mount
1301 * Validate that an attached mount in our mount namespace can be idmapped.
1321 /* Changing mount properties on a detached mount. */ in TEST_F()
1331 * Validate that a detached mount not in our mount namespace can be idmapped.
1353 /* Changing mount properties on a detached mount. */ in TEST_F()
1363 * Validate that currently changing the idmapping of an idmapped mount fails.
1389 /* Change idmapping on a detached mount that is already idmapped. */ in TEST_F()