Lines Matching refs:mnt_path

55 	char mnt_path[PATH_MAX];
401 #define CONFIG_HEADER "ctrl_name ver we_require_it mnt_path we_mounted_it ltp_dir.we_created_it test_dir.dir_name"
425 root->mnt_path,
445 static struct cgroup_root *cgroup_find_root(const char *const mnt_path)
450 if (!strcmp(root->mnt_path, mnt_path))
459 char ctrl_name[CTRL_NAME_MAX + 1], mnt_path[PATH_MAX_STRLEN + 1], test_dir_name[NAME_MAX + 1];
465 ctrl_name, &ver, &we_require_it, mnt_path, &we_mounted_it,
477 root = cgroup_find_root(mnt_path);
600 "Check '%s' and '%s'", root->mnt_path, mnt_dir);
612 strcpy(root->mnt_path, mnt_dir);
614 root->mnt_dir.dir_name = root->mnt_path;
657 char mnt_path[PATH_MAX];
660 sprintf(mnt_path, "%s/%s%s",
663 if (!mkdir(mnt_path, 0777)) {
674 mnt_path);
678 tst_brk(TBROK | TERRNO, "mkdir(%s, 0777)", mnt_path);
682 ret = mount("cgroup2", mnt_path, "cgroup2",
686 ret = mount("cgroup2", mnt_path, "cgroup2", 0, NULL);
689 tst_res(TINFO, "Mounted V2 CGroups on %s", mnt_path);
695 tst_res(TINFO | TERRNO, "Could not mount V2 CGroups on %s", mnt_path);
699 SAFE_RMDIR(mnt_path);
706 char mnt_path[PATH_MAX];
716 sprintf(mnt_path, "%s/%s%s",
719 if (!mkdir(mnt_path, 0777)) {
730 mnt_path);
734 tst_brk(TBROK | TERRNO, "mkdir(%s, 0777)", mnt_path);
738 if (mount(ctrl->ctrl_name, mnt_path, "cgroup", 0, ctrl->ctrl_name)) {
740 "Could not mount V1 CGroup on %s", mnt_path);
743 SAFE_RMDIR(mnt_path);
747 tst_res(TINFO, "Mounted V1 %s CGroup on %s", ctrl->ctrl_name, mnt_path);
1034 if (umount2(root->mnt_path, MNT_DETACH))
1037 SAFE_RMDIR(root->mnt_path);