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

/freebsd-11-stable/lib/libc/gen/
H A Dgetmntinfo.c47 static struct statfs *mntbuf; local
53 if (bufsize > 0 && (mntsize = getfsstat(mntbuf, bufsize, mode)) < 0)
56 if (mntbuf)
57 free(mntbuf);
59 if ((mntbuf = malloc(bufsize)) == NULL)
61 if ((mntsize = getfsstat(mntbuf, bufsize, mode)) < 0)
64 *mntbufp = mntbuf;
/freebsd-11-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-11-stable/usr.sbin/autofs/
H A Dautomount.c89 find_statfs(const struct statfs *mntbuf, int nitems, const char *mountpoint) argument
94 if (strcmp(mntbuf[i].f_mntonname, mountpoint) == 0)
95 return (mntbuf + i);
146 const char *prefix, const struct statfs *mntbuf, int nitems)
158 sb = find_statfs(mntbuf, nitems, mountpoint);
187 struct statfs *mntbuf; local
191 nitems = getmntinfo(&mntbuf, MNT_WAIT);
198 if (strcmp(mntbuf[i].f_fstypename, "autofs") != 0) {
200 mntbuf[i].f_mntonname);
204 n = node_find(root, mntbuf[
145 mount_if_not_already(const struct node *n, const char *map, const char *options, const char *prefix, const struct statfs *mntbuf, int nitems) argument
263 struct statfs *mntbuf; local
286 struct statfs *mntbuf; local
[all...]
H A Dautounmountd.c107 struct statfs *mntbuf; local
110 nitems = getmntinfo(&mntbuf, MNT_WAIT);
120 if (strcmp(mntbuf[i].f_fstypename, "autofs") == 0) {
122 mntbuf[i].f_mntonname);
126 if ((mntbuf[i].f_flags & MNT_AUTOMOUNTED) == 0) {
128 mntbuf[i].f_mntonname);
132 af = automounted_find(mntbuf[i].f_fsid);
135 "(FSID:%d:%d)", mntbuf[i].f_mntonname,
136 mntbuf[i].f_fsid.val[0], mntbuf[
[all...]
/freebsd-11-stable/usr.sbin/snapinfo/
H A Dsnapinfo.c60 struct statfs *mntbuf; local
103 fscount = getmntinfo(&mntbuf, MNT_WAIT);
105 if (!strncmp(mntbuf[n].f_fstypename, "ufs", 3)) {
106 if (all || strcmp(path, mntbuf[n].f_mntonname) == 0) {
107 find_snapshot(&mntbuf[n]);
/freebsd-11-stable/bin/df/
H A Ddf.c123 struct statfs *mntbuf; local
233 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
234 mntsize = regetmntinfo(&mntbuf, mntsize, vfslist);
237 mntbuf = malloc(argc * sizeof(*mntbuf));
238 if (mntbuf == NULL)
342 mntbuf[mntsize++] = statfsbuf;
347 if (aflag || (mntbuf[i].f_flags & MNT_IGNORE) == 0) {
348 update_maxwidths(&maxwidths, &mntbuf[i]);
350 addstat(&totalbuf, &mntbuf[
371 struct statfs *mntbuf; local
390 struct statfs *mntbuf; local
[all...]
/freebsd-11-stable/sbin/mount/
H A Dmount.c258 struct statfs *mntbuf; local
340 if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0)
359 ismounted(fs, mntbuf, mntsize))
362 mntbuf->f_flags);
370 if (checkvfsname(mntbuf[i].f_fstypename, vfslist))
372 putfsent(&mntbuf[i]);
376 if (checkvfsname(mntbuf[i].f_fstypename,
380 (mntbuf[i].f_flags & MNT_IGNORE) != 0)
382 prmount(&mntbuf[i]);
394 if ((mntbuf
486 ismounted(struct fstab *fs, struct statfs *mntbuf, int mntsize) argument
706 struct statfs *mntbuf; local
[all...]
/freebsd-11-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-11-stable/usr.sbin/rpc.umntall/
H A Drpc.umntall.c230 struct statfs *mntbuf; local
242 if ((mntbuf = malloc(bufsize)) == NULL)
244 mntsize = getfsstat(mntbuf, (long)bufsize, MNT_NOWAIT);
246 if (strcmp(mntbuf[i].f_mntfromname, name) == 0) {
247 free(mntbuf);
251 free(mntbuf);
/freebsd-11-stable/sbin/umount/
H A Dumount.c91 struct statfs *mntbuf, *sfs; local
160 if ((mntsize = mntinfo(&mntbuf)) <= 0)
167 sfs = &mntbuf[mntsize];
175 free(mntbuf);
480 static struct statfs *mntbuf; local
487 if ((mntsize = mntinfo(&mntbuf)) <= 0)
504 sfs = &mntbuf[i];
602 mntinfo(struct statfs **mntbuf) argument
615 *mntbuf = origbuf;
/freebsd-11-stable/sbin/fsck/
H A Dfsutil.c161 struct statfs *mntbuf, *statfsp; local
170 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
172 statfsp = &mntbuf[i];
/freebsd-11-stable/sbin/bectl/
H A Dbectl_jail.c212 struct statfs *mntbuf; local
221 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
223 if (strncmp(mountpoint, mntbuf[i].f_mntonname, searchlen) == 0 &&
224 mntbuf[i].f_type != MNTTYPE_ZFS) {
226 if (unmount(mntbuf[i].f_mntonname, 0) != 0) {
228 mntbuf[i].f_mntonname);
/freebsd-11-stable/contrib/netbsd-tests/bin/df/
H A Dgetmntinfo.c208 getmntinfo(struct statvfs **mntbuf, int flags) argument
216 *mntbuf = allstatvfs;
/freebsd-11-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-11-stable/sbin/fsck_ffs/
H A Dmain.c645 struct statfs *mntbuf, *statfsp; local
654 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
656 statfsp = &mntbuf[i];
/freebsd-11-stable/usr.bin/nfsstat/
H A Dnfsstat.c154 struct statfs *mntbuf; local
166 mntlen = getmntinfo(&mntbuf, MNT_NOWAIT);
168 if (strcmp(mntbuf->f_fstypename, "nfs") == 0) {
170 mntbuf->f_mntonname;
176 mntbuf->f_mntfromname,
177 mntbuf->f_mntonname, buf);
182 mntbuf++;
/freebsd-11-stable/sbin/growfs/
H A Dgrowfs.c1265 struct statfs *mntbuf, *statfsp; local
1278 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
1280 statfsp = &mntbuf[i];
1298 struct statfs *mntbuf, *statfsp; local
1305 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
1307 statfsp = &mntbuf[i];
/freebsd-11-stable/lib/libugidfw/
H A Dugidfw.c66 struct statfs *mntbuf; local
333 numfs = getmntinfo(&mntbuf, MNT_NOWAIT);
336 &(mntbuf[i].f_fsid),
337 sizeof(mntbuf[i].f_fsid)) == 0)
340 i == numfs ? "???" : mntbuf[i].f_mntonname);
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc4270 __sanitizer_mntent *mntbuf, char *buf, int buflen) {
4272 COMMON_INTERCEPTOR_ENTER(ctx, getmntent_r, fp, mntbuf, buf, buflen);
4273 __sanitizer_mntent *res = REAL(getmntent_r)(fp, mntbuf, buf, buflen);

Completed in 194 milliseconds