Lines Matching defs:mnt_dir
67 struct cgroup_dir mnt_dir;
485 cgroup_dir_mk(&root->mnt_dir, cgroup_ltp_dir, &root->ltp_dir);
546 const char *const mnt_dir,
556 const int mnt_dfd = SAFE_OPEN(mnt_dir, O_PATH | O_DIRECTORY);
600 "Check '%s' and '%s'", root->mnt_path, mnt_dir);
612 strcpy(root->mnt_path, mnt_dir);
613 root->mnt_dir.dir_root = root;
614 root->mnt_dir.dir_name = root->mnt_path;
615 root->mnt_dir.dir_fd = mnt_dfd;
650 cgroup_root_scan(mnt->mnt_type, mnt->mnt_dir, mnt->mnt_opts);
664 roots[0].mnt_dir.we_created_it = 1;
697 if (roots[0].mnt_dir.we_created_it) {
698 roots[0].mnt_dir.we_created_it = 0;
753 ctrl->ctrl_root->mnt_dir.we_created_it = made_dir;
756 SAFE_FILE_PRINTFAT(ctrl->ctrl_root->mnt_dir.dir_fd,
771 SAFE_FILE_READAT(root->mnt_dir.dir_fd,
855 add_ctrl(&root->mnt_dir.ctrl_field, ctrl);
870 SAFE_FILE_PRINTFAT(root->mnt_dir.dir_fd,
873 tst_file_printfat(root->mnt_dir.dir_fd,
879 cgroup_dir_mk(&root->mnt_dir, cgroup_ltp_dir, &root->ltp_dir);
881 root->ltp_dir.ctrl_field |= root->mnt_dir.ctrl_field;
943 if (root->mnt_dir.dir_fd > 0)
944 SAFE_CLOSE(root->mnt_dir.dir_fd);
1004 root->drain_dir.dir_fd, root->mnt_dir.dir_fd);
1012 SAFE_UNLINKAT(root->mnt_dir.dir_fd,
1022 SAFE_FILE_PRINTFAT(ctrl->ctrl_root->mnt_dir.dir_fd,