Lines Matching refs:mntpoint
729 tst_test->mntpoint || in needs_tmpdir()
788 const char *mntpoint, in prepare_and_mount_ro_fs() argument
793 if (mount(dev, mntpoint, fs_type, 0, NULL)) { in prepare_and_mount_ro_fs()
795 dev, mntpoint, fs_type); in prepare_and_mount_ro_fs()
801 snprintf(buf, sizeof(buf), "%s/dir/", mntpoint); in prepare_and_mount_ro_fs()
804 snprintf(buf, sizeof(buf), "%s/file", mntpoint); in prepare_and_mount_ro_fs()
808 SAFE_MOUNT(dev, mntpoint, fs_type, MS_REMOUNT | MS_RDONLY, NULL); in prepare_and_mount_ro_fs()
813 static void prepare_and_mount_dev_fs(const char *mntpoint) in prepare_and_mount_dev_fs() argument
821 "mounting tmpfs without nodev on %s", mntpoint); in prepare_and_mount_dev_fs()
822 SAFE_MOUNT(NULL, mntpoint, "tmpfs", 0, NULL); in prepare_and_mount_dev_fs()
835 prepare_and_mount_ro_fs(tdev.dev, tst_test->mntpoint, in prepare_device()
841 SAFE_MOUNT(tdev.dev, tst_test->mntpoint, tdev.fs_type, in prepare_device()
910 if (tst_test->mntpoint) in do_setup()
911 SAFE_MKDIR(tst_test->mntpoint, 0777); in do_setup()
915 !tst_test->mntpoint) { in do_setup()
926 prepare_and_mount_dev_fs(tst_test->mntpoint); in do_setup()
932 if (prepare_and_mount_ro_fs(NULL, tst_test->mntpoint, "tmpfs")) { in do_setup()
998 tst_umount(tst_test->mntpoint); in do_cleanup()
1286 tst_umount(tst_test->mntpoint); in run_tcases_per_fs()