Home | History | Annotate | Download | only in fio

Lines Matching refs:mnt

25 	struct mntent *mnt, dummy;
35 while ((mnt = getmntent_r(f, &dummy, buf, sizeof(buf))) != NULL) {
36 if (!strcmp(mnt->mnt_type, "cgroup") &&
37 strstr(mnt->mnt_opts, "blkio"))
41 if (mnt)
42 mntpoint = smalloc_strdup(mnt->mnt_dir);
100 static char *get_cgroup_root(struct thread_data *td, char *mnt)
105 sprintf(str, "%s%s%s", mnt, FIO_OS_PATH_SEPARATOR, td->o.cgroup);
107 sprintf(str, "%s%s%s", mnt, FIO_OS_PATH_SEPARATOR, td->o.name);
142 static int cgroup_del_pid(struct thread_data *td, char *mnt)
144 return cgroup_write_pid(td, mnt);
147 int cgroup_setup(struct thread_data *td, struct flist_head *clist, char **mnt)
151 if (!*mnt) {
152 *mnt = find_cgroup_mnt(td);
153 if (!*mnt)
160 root = get_cgroup_root(td, *mnt);
189 void cgroup_shutdown(struct thread_data *td, char **mnt)
191 if (*mnt == NULL)
196 cgroup_del_pid(td, *mnt);