Home
last modified time | relevance | path

Searched refs:mntbuf (Results 1 – 13 of 13) sorted by relevance

/dragonfly/usr.sbin/autofs/
H A Dautomount.c70 return (mntbuf + i); in find_statfs()
141 struct statfs *mntbuf; in mount_unmount() local
154 mntbuf[i].f_mntonname); in mount_unmount()
161 mntbuf[i].f_mntonname); in mount_unmount()
175 n->n_key, mntbuf, nitems); in mount_unmount()
181 "/", mntbuf, nitems); in mount_unmount()
201 struct statfs *mntbuf; in flush_caches() local
213 mntbuf[i].f_mntonname); in flush_caches()
224 struct statfs *mntbuf; in unmount_automounted() local
236 mntbuf[i].f_mntonname); in unmount_automounted()
[all …]
H A Dautounmountd.c102 struct statfs *mntbuf; in refresh_automounted() local
105 nitems = getmntinfo(&mntbuf, MNT_WAIT); in refresh_automounted()
117 mntbuf[i].f_mntonname); in refresh_automounted()
121 if ((mntbuf[i].f_flags & MNT_AUTOMOUNTED) == 0) { in refresh_automounted()
123 mntbuf[i].f_mntonname); in refresh_automounted()
127 af = automounted_find(mntbuf[i].f_fsid); in refresh_automounted()
130 "(FSID:%d:%d)", mntbuf[i].f_mntonname, in refresh_automounted()
131 mntbuf[i].f_fsid.val[0], mntbuf[i].f_fsid.val[1]); in refresh_automounted()
132 af = automounted_add(mntbuf[i].f_fsid, in refresh_automounted()
133 mntbuf[i].f_mntonname); in refresh_automounted()
[all …]
/dragonfly/sbin/fsck/
H A Dmain.c192 struct statfs *mntbuf; in checkfilesys() local
220 mntbuf = getmntpt(filesys); in checkfilesys()
236 if (mntbuf != NULL && mntbuf->f_flags & MNT_ROOTFS) in checkfilesys()
334 if (mntbuf != NULL && (mntbuf->f_flags & MNT_RDONLY) == 0) in checkfilesys()
347 if (mntbuf != NULL) { in checkfilesys()
355 if (mntbuf->f_flags & MNT_RDONLY) { in checkfilesys()
359 ret = mount("ufs", mntbuf->f_mntonname, in checkfilesys()
385 struct statfs *mntbuf; in getmntpt() local
391 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in getmntpt()
395 devname = mntbuf[i].f_mntfromname; in getmntpt()
[all …]
H A Dfsutil.c217 struct statfs *mntbuf, *statfsp; in getmntpt() local
226 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in getmntpt()
228 statfsp = &mntbuf[i]; in getmntpt()
/dragonfly/lib/libc/gen/
H A Dgetmntinfo.c43 static struct statfs *mntbuf; in getmntinfo() local
49 if (bufsize > 0 && (mntsize = getfsstat(mntbuf, bufsize, flags)) < 0) in getmntinfo()
52 if (mntbuf) in getmntinfo()
53 free(mntbuf); in getmntinfo()
55 if ((mntbuf = (struct statfs *)malloc(bufsize)) == NULL) in getmntinfo()
57 if ((mntsize = getfsstat(mntbuf, bufsize, flags)) < 0) in getmntinfo()
60 *mntbufp = mntbuf; in getmntinfo()
/dragonfly/sbin/mount_ufs/
H A Dmount.c97 struct statfs *mntbuf; in main() local
173 ismounted(fs, mntbuf, mntsize)) in main()
176 fs->fs_mntops, mntbuf->f_flags); in main()
186 putfsent(&mntbuf[i]); in main()
193 prmount(&mntbuf[i]); in main()
217 mntbuf->f_mntfromname) == 0 && in main()
219 mntbuf->f_mntonname) == 0) { in main()
231 mntbuf->f_flags); in main()
235 mntbuf->f_flags); in main()
508 struct statfs *mntbuf; in getmntpt() local
[all …]
/dragonfly/sbin/umount/
H A Dumount.c85 struct statfs *mntbuf; in main() local
176 free(mntbuf); in main()
542 static struct statfs *mntbuf; in getmntname() local
575 *type = mntbuf[i].f_fstypename; in getmntname()
576 return (mntbuf[i].f_mntonname); in getmntname()
594 return (mntbuf[i].f_mntonname); in getmntname()
605 return (mntbuf[i].f_mntonname); in getmntname()
630 return (mntbuf[i].f_mntonname); in getmntname()
634 free(mntbuf); in getmntname()
708 mntinfo(struct statfs **mntbuf) in mntinfo() argument
[all …]
/dragonfly/sbin/mount/
H A Dmount.c125 struct statfs *mntbuf; in main() local
200 ismounted(fs, mntbuf, mntsize)) in main()
203 fs->fs_mntops, mntbuf->f_flags); in main()
213 putfsent(&mntbuf[i]); in main()
220 prmount(&mntbuf[i]); in main()
244 mntbuf->f_mntfromname) == 0 && in main()
246 mntbuf->f_mntonname) == 0) { in main()
258 mntbuf->f_flags); in main()
262 mntbuf->f_flags); in main()
551 struct statfs *mntbuf; in getmntpt() local
[all …]
/dragonfly/bin/df/
H A Ddf.c104 struct statfs statfsbuf, *mntbuf; in main() local
188 prtstat(&mntbuf[i], &mntvbuf[i], &maxwidths); in main()
276 struct statfs *mntbuf; in getmntpt() local
281 if (!strcmp(mntbuf[i].f_mntfromname, name)) in getmntpt()
282 return (mntbuf[i].f_mntonname); in getmntpt()
296 struct statfs *mntbuf; in regetmntinfo() local
302 mntbuf = *mntbufp; in regetmntinfo()
305 if (checkvfsname(mntbuf[i].f_fstypename, vfslist)) in regetmntinfo()
308 statfs(mntbuf[i].f_mntonname,&mntbuf[j]); in regetmntinfo()
309 statvfs(mntbuf[i].f_mntonname,&mntvbuf[j]); in regetmntinfo()
[all …]
/dragonfly/lib/libhammer/
H A Dmisc.c56 struct statfs *mntbuf; in libhammer_find_pfs_mount() local
72 mntbuf = _libhammer_malloc(mntbufsize); in libhammer_find_pfs_mount()
74 mntsize = getfsstat(mntbuf, (long)mntbufsize, MNT_NOWAIT); in libhammer_find_pfs_mount()
82 struct statfs *mnt = &mntbuf[curmount]; in libhammer_find_pfs_mount()
115 free(mntbuf); in libhammer_find_pfs_mount()
/dragonfly/usr.sbin/rpc.umntall/
H A Drpc.umntall.c228 struct statfs *mntbuf; in is_mounted() local
240 if ((mntbuf = malloc(bufsize)) == NULL) in is_mounted()
242 mntsize = getfsstat(mntbuf, (long)bufsize, MNT_NOWAIT); in is_mounted()
244 if (strcmp(mntbuf[i].f_mntfromname, name) == 0) { in is_mounted()
245 free(mntbuf); in is_mounted()
249 free(mntbuf); in is_mounted()
/dragonfly/usr.bin/truss/
H A Dmain.c132 struct statfs *mntbuf; in main() local
146 if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0) in main()
149 if (strcasecmp(mntbuf[i].f_mntfromname, "procfs") == 0) { in main()
150 strlcpy(procfs_path, mntbuf[i].f_mntonname, sizeof(procfs_path)); in main()
/dragonfly/sbin/hammer2/
H A Dcmd_service.c218 struct statfs *mntbuf = NULL; in service_thread() local
248 count = getmntvinfo(&mntbuf, &mntvbuf, MNT_NOWAIT); in service_thread()
250 if (strcmp(mntbuf[i].f_fstypename, "hammer2") == 0) in service_thread()
251 master_reconnect(mntbuf[i].f_mntonname); in service_thread()