Searched defs:mnt (Results 1 - 14 of 14) sorted by relevance

/external/fio/
H A Dcgroup.h14 char **mnt)
20 static inline void cgroup_shutdown(struct thread_data *td, char **mnt) argument
13 cgroup_setup(struct thread_data *td, struct flist_head *list, char **mnt) argument
H A Dcgroup.c25 struct mntent *mnt, dummy; local
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) argument
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) argument
147 cgroup_setup(struct thread_data *td, struct flist_head *clist, char **mnt) argument
189 cgroup_shutdown(struct thread_data *td, char **mnt) argument
[all...]
/external/libselinux/src/
H A Dinit.c105 void set_selinuxmnt(const char *mnt) argument
107 selinux_mnt = strdup(mnt);
H A Dandroid.c1386 const char *mnt = SELINUXMNT; local
1388 rc = mount(SELINUXFS, mnt, SELINUXFS, 0, NULL);
1396 mnt = OLDSELINUXMNT;
1397 rc = mkdir(mnt, 0755);
1403 rc = mount(SELINUXFS, mnt, SELINUXFS, 0, NULL);
1411 set_selinuxmnt(mnt);
/external/qemu/distrib/libselinux/src/
H A Dinit.c105 void set_selinuxmnt(const char *mnt) argument
107 selinux_mnt = strdup(mnt);
H A Dandroid.c1348 const char *mnt = SELINUXMNT; local
1350 rc = mount(SELINUXFS, mnt, SELINUXFS, 0, NULL);
1358 mnt = OLDSELINUXMNT;
1359 rc = mkdir(mnt, 0755);
1365 rc = mount(SELINUXFS, mnt, SELINUXFS, 0, NULL);
1373 set_selinuxmnt(mnt);
/external/e2fsprogs/lib/ext2fs/
H A Dismounted.c83 struct mntent *mnt; local
111 while ((mnt = getmntent (f)) != NULL) {
112 if (mnt->mnt_fsname[0] != '/')
114 if (strcmp(file, mnt->mnt_fsname) == 0)
116 if (stat(mnt->mnt_fsname, &st_buf) == 0) {
121 if (check_loop_mounted(mnt->mnt_fsname,
134 if (mnt == 0) {
161 if (stat(mnt->mnt_dir, &st_buf) < 0) {
166 mtab_file, mnt->mnt_dir);
175 mtab_file, file, mnt
[all...]
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/
H A Dcgroup.c60 char mnt[PATH_MAX + 1]; local
64 if (cgroupfs_find_mountpoint(mnt, PATH_MAX + 1))
67 snprintf(path, PATH_MAX, "%s/%s", mnt, name);
H A Dcpumap.c210 const char *mnt; local
219 mnt = sysfs_find_mountpoint();
220 if (!mnt)
225 mnt, cpu);
273 const char *mnt; local
282 mnt = sysfs_find_mountpoint();
283 if (!mnt)
288 mnt, cpu);
H A Dutil.c256 const char *mnt; local
258 mnt = debugfs_mount(mountpoint);
259 if (!mnt)
262 set_tracing_events_path(mnt);
264 return mnt;
/external/e2fsprogs/misc/
H A Dutil.c280 void print_check_message(int mnt, unsigned int check) argument
282 if (mnt < 0)
283 mnt = 0;
284 if (!mnt && !check)
290 mnt, ((double) check) / (3600 * 24));
H A De4defrag.c269 struct mntent *mnt = NULL; local
284 while ((mnt = getmntent(fp)) != NULL) {
291 if (stat64(mnt->mnt_fsname, &ms) < 0)
297 if (strcmp(mnt->mnt_type, FS_EXT4) == 0) {
298 strncpy(mount_point, mnt->mnt_dir,
324 struct mntent *mnt = NULL; local
351 while ((mnt = getmntent(fp)) != NULL) {
352 if (mnt->mnt_fsname[0] != '/')
354 len = strlen(mnt->mnt_dir);
355 ret = memcmp(file_path, mnt
[all...]
/external/f2fs-tools/lib/
H A Dlibf2fs.c369 struct mntent *mnt = NULL; local
375 while ((mnt = getmntent(file)) != NULL) {
376 if (!strcmp(device, mnt->mnt_fsname))
380 return mnt ? 1 : 0;
/external/compiler-rt/lib/msan/tests/
H A Dmsan_test.cc1990 struct mntent *mnt = getmntent(fp); local
1991 ASSERT_TRUE(mnt != NULL);
1992 ASSERT_NE(0U, strlen(mnt->mnt_fsname));
1993 ASSERT_NE(0U, strlen(mnt->mnt_dir));
1994 ASSERT_NE(0U, strlen(mnt->mnt_type));
1995 ASSERT_NE(0U, strlen(mnt->mnt_opts));
1996 EXPECT_NOT_POISONED(mnt->mnt_freq);
1997 EXPECT_NOT_POISONED(mnt->mnt_passno);
2005 struct mntent *mnt = getmntent_r(fp, &mntbuf, buf, sizeof(buf)); local
2006 ASSERT_TRUE(mnt !
[all...]

Completed in 1026 milliseconds