Home
last modified time | relevance | path

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

/dragonfly/usr.sbin/autofs/
HDautomount.c64 find_statfs(const struct statfs *mntbuf, int nitems, const char *mountpoint) in find_statfs() argument
69 if (strcmp(mntbuf[i].f_mntonname, mountpoint) == 0) in find_statfs()
70 return (mntbuf + i); in find_statfs()
100 const char *prefix, const struct statfs *mntbuf, int nitems) in mount_if_not_already() argument
112 sb = find_statfs(mntbuf, nitems, mountpoint); in mount_if_not_already()
141 struct statfs *mntbuf; in mount_unmount() local
145 nitems = getmntinfo(&mntbuf, MNT_WAIT); in mount_unmount()
152 if (strcmp(mntbuf[i].f_fstypename, "autofs") != 0) { in mount_unmount()
154 mntbuf[i].f_mntonname); in mount_unmount()
158 n = node_find(root, mntbuf[i].f_mntonname); in mount_unmount()
[all …]
HDautounmountd.c102 struct statfs *mntbuf; in refresh_automounted() local
105 nitems = getmntinfo(&mntbuf, MNT_WAIT); in refresh_automounted()
115 if (strcmp(mntbuf[i].f_fstypename, "autofs") == 0) { 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()
[all …]
/dragonfly/sbin/fsck/
HDmain.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()
360 mntbuf->f_flags | MNT_UPDATE | MNT_RELOAD, &args); in checkfilesys()
364 mntbuf->f_mntonname, strerror(errno)); in checkfilesys()
385 struct statfs *mntbuf; in getmntpt() local
[all …]
HDfsutil.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/
HDgetmntinfo.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/
HDmount.c97 struct statfs *mntbuf; in main() local
162 if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0) in main()
173 ismounted(fs, mntbuf, mntsize)) in main()
176 fs->fs_mntops, mntbuf->f_flags); in main()
184 if (checkvfsname(mntbuf[i].f_fstypename, vfslist)) in main()
186 putfsent(&mntbuf[i]); in main()
190 if (checkvfsname(mntbuf[i].f_fstypename, in main()
193 prmount(&mntbuf[i]); in main()
206 if ((mntbuf = getmntpt(*argv)) == NULL) in main()
215 if ((fs = getfsfile(mntbuf->f_mntonname)) != NULL) { in main()
[all …]
/dragonfly/sbin/umount/
HDumount.c85 struct statfs *mntbuf; in main() local
142 if ((mntsize = mntinfo(&mntbuf)) <= 0) in main()
149 if (checkvfsname(mntbuf[mntsize].f_fstypename, in main()
157 mntonname = mntbuf[mntsize].f_mntonname; in main()
158 mntfromname = mntbuf[mntsize].f_mntfromname; in main()
172 if (checkname(mntbuf[mntsize].f_mntonname, in main()
176 free(mntbuf); in main()
542 static struct statfs *mntbuf; in getmntname() local
549 if ((mntsize = mntinfo(&mntbuf)) <= 0) in getmntname()
572 !strcmp(mntbuf[i].f_mntfromname, fromname) && in getmntname()
[all …]
/dragonfly/sbin/mount/
HDmount.c125 struct statfs *mntbuf; in main() local
189 if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0) in main()
200 ismounted(fs, mntbuf, mntsize)) in main()
203 fs->fs_mntops, mntbuf->f_flags); in main()
211 if (checkvfsname(mntbuf[i].f_fstypename, vfslist)) in main()
213 putfsent(&mntbuf[i]); in main()
217 if (checkvfsname(mntbuf[i].f_fstypename, in main()
220 prmount(&mntbuf[i]); in main()
233 if ((mntbuf = getmntpt(*argv)) == NULL) in main()
242 if ((fs = getfsfile(mntbuf->f_mntonname)) != NULL) { in main()
[all …]
/dragonfly/bin/df/
HDdf.c104 struct statfs statfsbuf, *mntbuf; in main() local
175 mntsize = getmntvinfo(&mntbuf, &mntvbuf, MNT_NOWAIT); in main()
178 update_maxwidths(&maxwidths, &mntbuf[i], &mntvbuf[i]); in main()
182 mntsize = regetmntinfo(&mntbuf, &mntvbuf, mntsize, vfslist); in main()
185 update_maxwidths(&maxwidths, &mntbuf[i], &mntvbuf[i]); in main()
187 if (aflag || (mntbuf[i].f_flags & MNT_IGNORE) == 0) in main()
188 prtstat(&mntbuf[i], &mntvbuf[i], &maxwidths); in main()
276 struct statfs *mntbuf; in getmntpt() local
279 mntsize = getmntvinfo(&mntbuf, &mntvbuf, MNT_NOWAIT); in getmntpt()
281 if (!strcmp(mntbuf[i].f_mntfromname, name)) in getmntpt()
[all …]
/dragonfly/lib/libhammer/
HDmisc.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/
HDrpc.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/
HDmain.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/
HDcmd_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()