Searched refs:mntbuf (Results 1 - 17 of 17) sorted by relevance

/freebsd-10-stable/lib/libc/gen/
H A Dgetmntinfo.c49 static struct statfs *mntbuf; local
55 if (bufsize > 0 && (mntsize = getfsstat(mntbuf, bufsize, flags)) < 0)
58 if (mntbuf)
59 free(mntbuf);
61 if ((mntbuf = malloc(bufsize)) == NULL)
63 if ((mntsize = getfsstat(mntbuf, bufsize, flags)) < 0)
66 *mntbufp = mntbuf;
/freebsd-10-stable/contrib/netbsd-tests/fs/nfs/nfsservice/
H A Dgetmntinfo.c62 static struct statvfs *mntbuf; local
72 (mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1)
75 if (mntbuf)
76 free(mntbuf);
78 if ((mntbuf = malloc(bufsize)) == NULL)
80 if ((mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1)
83 *mntbufp = mntbuf;
/freebsd-10-stable/usr.sbin/autofs/
H A Dautomount.c88 find_statfs(const struct statfs *mntbuf, int nitems, const char *mountpoint) argument
93 if (strcmp(mntbuf[i].f_mntonname, mountpoint) == 0)
94 return (mntbuf + i);
145 const char *prefix, const struct statfs *mntbuf, int nitems)
157 sb = find_statfs(mntbuf, nitems, mountpoint);
186 struct statfs *mntbuf; local
190 nitems = getmntinfo(&mntbuf, MNT_WAIT);
197 if (strcmp(mntbuf[i].f_fstypename, "autofs") != 0) {
199 mntbuf[i].f_mntonname);
203 n = node_find(root, mntbuf[
144 mount_if_not_already(const struct node *n, const char *map, const char *options, const char *prefix, const struct statfs *mntbuf, int nitems) argument
262 struct statfs *mntbuf; local
285 struct statfs *mntbuf; local
[all...]
H A Dautounmountd.c105 struct statfs *mntbuf; local
108 nitems = getmntinfo(&mntbuf, MNT_WAIT);
118 if (strcmp(mntbuf[i].f_fstypename, "autofs") == 0) {
120 mntbuf[i].f_mntonname);
124 if ((mntbuf[i].f_flags & MNT_AUTOMOUNTED) == 0) {
126 mntbuf[i].f_mntonname);
130 af = automounted_find(mntbuf[i].f_fsid);
133 "(FSID:%d:%d)", mntbuf[i].f_mntonname,
134 mntbuf[i].f_fsid.val[0], mntbuf[
[all...]
/freebsd-10-stable/usr.sbin/snapinfo/
H A Dsnapinfo.c58 struct statfs *mntbuf; local
101 fscount = getmntinfo(&mntbuf, MNT_WAIT);
103 if (!strncmp(mntbuf[n].f_fstypename, "ufs", 3)) {
104 if (all || strcmp(path, mntbuf[n].f_mntonname) == 0) {
105 find_snapshot(&mntbuf[n]);
/freebsd-10-stable/bin/df/
H A Ddf.c115 struct statfs *mntbuf; local
216 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
217 mntsize = regetmntinfo(&mntbuf, mntsize, vfslist);
220 mntbuf = malloc(argc * sizeof(*mntbuf));
221 if (mntbuf == NULL)
316 mntbuf[mntsize++] = statfsbuf;
321 if (aflag || (mntbuf[i].f_flags & MNT_IGNORE) == 0) {
322 update_maxwidths(&maxwidths, &mntbuf[i]);
324 addstat(&totalbuf, &mntbuf[
339 struct statfs *mntbuf; local
358 struct statfs *mntbuf; local
[all...]
/freebsd-10-stable/sbin/mount/
H A Dmount.c247 struct statfs *mntbuf; local
329 if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0)
348 ismounted(fs, mntbuf, mntsize))
351 mntbuf->f_flags);
359 if (checkvfsname(mntbuf[i].f_fstypename, vfslist))
361 putfsent(&mntbuf[i]);
365 if (checkvfsname(mntbuf[i].f_fstypename,
369 (mntbuf[i].f_flags & MNT_IGNORE) != 0)
371 prmount(&mntbuf[i]);
383 if ((mntbuf
473 ismounted(struct fstab *fs, struct statfs *mntbuf, int mntsize) argument
693 struct statfs *mntbuf; local
[all...]
/freebsd-10-stable/usr.sbin/rpc.umntall/
H A Drpc.umntall.c228 struct statfs *mntbuf; local
240 if ((mntbuf = malloc(bufsize)) == NULL)
242 mntsize = getfsstat(mntbuf, (long)bufsize, MNT_NOWAIT);
244 if (strcmp(mntbuf[i].f_mntfromname, name) == 0) {
245 free(mntbuf);
249 free(mntbuf);
/freebsd-10-stable/contrib/hyperv/tools/
H A Dhv_vss_daemon.c52 struct statfs *mntbuf, *statfsp; local
56 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
63 statfsp = &mntbuf[i];
80 struct statfs *mntbuf, *statfsp; local
91 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
98 statfsp = &mntbuf[i];
/freebsd-10-stable/sbin/umount/
H A Dumount.c91 struct statfs *mntbuf, *sfs; local
148 if ((mntsize = mntinfo(&mntbuf)) <= 0)
155 sfs = &mntbuf[mntsize];
163 free(mntbuf);
455 static struct statfs *mntbuf; local
462 if ((mntsize = mntinfo(&mntbuf)) <= 0)
479 sfs = &mntbuf[i];
577 mntinfo(struct statfs **mntbuf) argument
590 *mntbuf = origbuf;
/freebsd-10-stable/sbin/fsck/
H A Dfsutil.c161 struct statfs *mntbuf, *statfsp; local
170 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
172 statfsp = &mntbuf[i];
/freebsd-10-stable/contrib/netbsd-tests/bin/df/
H A Dgetmntinfo.c208 getmntinfo(struct statvfs **mntbuf, int flags) argument
216 *mntbuf = allstatvfs;
/freebsd-10-stable/sbin/dump/
H A Dmain.c628 struct statfs *mntbuf; local
630 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
632 if (!strcmp(mntbuf[i].f_mntfromname, name)) {
633 *mntflagsp = mntbuf[i].f_flags;
634 return (mntbuf[i].f_mntonname);
/freebsd-10-stable/usr.bin/nfsstat/
H A Dnfsstat.c112 struct statfs *mntbuf; local
124 mntlen = getmntinfo(&mntbuf, MNT_NOWAIT);
126 if (strcmp(mntbuf->f_fstypename, "nfs") == 0) {
128 mntbuf->f_mntonname;
134 mntbuf->f_mntfromname,
135 mntbuf->f_mntonname, buf);
140 mntbuf++;
/freebsd-10-stable/sbin/fsck_ffs/
H A Dmain.c641 struct statfs *mntbuf, *statfsp; local
650 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
652 statfsp = &mntbuf[i];
/freebsd-10-stable/sbin/growfs/
H A Dgrowfs.c1266 struct statfs *mntbuf, *statfsp; local
1279 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
1281 statfsp = &mntbuf[i];
1299 struct statfs *mntbuf, *statfsp; local
1306 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
1308 statfsp = &mntbuf[i];
/freebsd-10-stable/lib/libugidfw/
H A Dugidfw.c66 struct statfs *mntbuf; local
334 numfs = getmntinfo(&mntbuf, MNT_NOWAIT);
337 &(mntbuf[i].f_fsid),
338 sizeof(mntbuf[i].f_fsid)) == 0)
341 i == numfs ? "???" : mntbuf[i].f_mntonname);

Completed in 175 milliseconds