Home
last modified time | relevance | path

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

/freebsd-13.1/usr.sbin/autofs/
H A Dautomount.c96 return (mntbuf + i); in find_statfs()
188 struct statfs *mntbuf; in mount_unmount() local
201 mntbuf[i].f_mntonname); in mount_unmount()
208 mntbuf[i].f_mntonname); in mount_unmount()
222 n->n_key, mntbuf, nitems); in mount_unmount()
228 "/", mntbuf, nitems); in mount_unmount()
264 struct statfs *mntbuf; in flush_caches() local
276 mntbuf[i].f_mntonname); in flush_caches()
287 struct statfs *mntbuf; in unmount_automounted() local
299 mntbuf[i].f_mntonname); in unmount_automounted()
[all …]
H A Dautounmountd.c105 struct statfs *mntbuf; in refresh_automounted() local
108 nitems = getmntinfo(&mntbuf, MNT_WAIT); in refresh_automounted()
120 mntbuf[i].f_mntonname); in refresh_automounted()
124 if ((mntbuf[i].f_flags & MNT_AUTOMOUNTED) == 0) { in refresh_automounted()
126 mntbuf[i].f_mntonname); in refresh_automounted()
130 af = automounted_find(mntbuf[i].f_fsid); in refresh_automounted()
133 "(FSID:%d:%d)", mntbuf[i].f_mntonname, in refresh_automounted()
134 mntbuf[i].f_fsid.val[0], mntbuf[i].f_fsid.val[1]); in refresh_automounted()
135 af = automounted_add(mntbuf[i].f_fsid, in refresh_automounted()
136 mntbuf[i].f_mntonname); in refresh_automounted()
[all …]
/freebsd-13.1/lib/libc/gen/
H A Dgetmntinfo.c50 static struct statfs *mntbuf; in getmntinfo() local
57 if (bufsize > 0 && (mntsize = getfsstat(mntbuf, bufsize, mode)) < 0) in getmntinfo()
59 while (tries++ < MAX_TRIES && bufsize <= mntsize * sizeof(*mntbuf)) { in getmntinfo()
60 bufsize = (mntsize * SCALING_FACTOR) * sizeof(*mntbuf); in getmntinfo()
61 if ((mntbuf = reallocf(mntbuf, bufsize)) == NULL) in getmntinfo()
63 if ((mntsize = getfsstat(mntbuf, bufsize, mode)) < 0) in getmntinfo()
66 *mntbufp = mntbuf; in getmntinfo()
67 if (mntsize > (bufsize / sizeof(*mntbuf))) in getmntinfo()
68 return (bufsize / sizeof(*mntbuf)); in getmntinfo()
H A Dgetmntinfo-compat11.c48 static struct freebsd11_statfs *mntbuf; in freebsd11_getmntinfo() local
56 (mntsize = freebsd11_getfsstat(mntbuf, bufsize, flags)) < 0) in freebsd11_getmntinfo()
59 if (mntbuf) in freebsd11_getmntinfo()
60 free(mntbuf); in freebsd11_getmntinfo()
62 if ((mntbuf = (struct freebsd11_statfs *)malloc(bufsize)) == 0) in freebsd11_getmntinfo()
64 if ((mntsize = freebsd11_getfsstat(mntbuf, bufsize, flags)) < 0) in freebsd11_getmntinfo()
67 *mntbufp = mntbuf; in freebsd11_getmntinfo()
/freebsd-13.1/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-13.1/bin/df/
H A Ddf.c119 struct statfs *mntbuf; in main() local
214 mntbuf = malloc(argc * sizeof(*mntbuf)); in main()
215 if (mntbuf == NULL) in main()
268 mntbuf[mntsize++] = statfsbuf; in main()
297 struct statfs *mntbuf; in getmntpt() local
302 return (mntbuf[i].f_mntonname); in getmntpt()
388 struct statfs *mntbuf; in regetmntinfo() local
393 mntbuf = *mntbufp; in regetmntinfo()
403 error = statfs(mntbuf[i].f_mntonname, &mntbuf[j]); in regetmntinfo()
408 mntbuf[i].f_mntonname); in regetmntinfo()
[all …]
/freebsd-13.1/sbin/mount/
H A Dmount.c237 struct statfs *mntbuf; in main() local
319 if ((mntsize = getmntinfo(&mntbuf, in main()
343 mntbuf->f_flags); in main()
353 putfsent(&mntbuf[i]); in main()
363 prmount(&mntbuf[i]); in main()
388 mntbuf->f_mntonname) == 0) { in main()
394 mntbuf->f_fstypename) == 0) { in main()
402 mntbuf->f_flags); in main()
406 mntbuf->f_flags); in main()
684 struct statfs *mntbuf; in getmntpt() local
[all …]
/freebsd-13.1/sys/contrib/openzfs/lib/libspl/os/linux/
H A Dgetmntany.c66 struct mntent mntbuf; in _sol_getmntent() local
69 ret = getmntent_r(fp, &mntbuf, buf, BUFSIZE); in _sol_getmntent()
72 mgetp->mnt_special = mntbuf.mnt_fsname; in _sol_getmntent()
73 mgetp->mnt_mountp = mntbuf.mnt_dir; in _sol_getmntent()
74 mgetp->mnt_fstype = mntbuf.mnt_type; in _sol_getmntent()
75 mgetp->mnt_mntopts = mntbuf.mnt_opts; in _sol_getmntent()
/freebsd-13.1/usr.sbin/snapinfo/
H A Dsnapinfo.c60 struct statfs *mntbuf; in main() local
103 fscount = getmntinfo(&mntbuf, MNT_WAIT); in main()
105 if (!strncmp(mntbuf[n].f_fstypename, "ufs", 3)) { in main()
106 if (all || strcmp(path, mntbuf[n].f_mntonname) == 0) { in main()
107 find_snapshot(&mntbuf[n]); in main()
/freebsd-13.1/contrib/hyperv/tools/
H A Dhv_vss_daemon.c52 struct statfs *mntbuf, *statfsp; in check() local
56 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in check()
63 statfsp = &mntbuf[i]; in check()
80 struct statfs *mntbuf, *statfsp; in freeze() local
91 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in freeze()
98 statfsp = &mntbuf[i]; in freeze()
/freebsd-13.1/usr.sbin/rpc.umntall/
H A Drpc.umntall.c230 struct statfs *mntbuf; in is_mounted() local
242 if ((mntbuf = malloc(bufsize)) == NULL) in is_mounted()
244 mntsize = getfsstat(mntbuf, (long)bufsize, MNT_NOWAIT); in is_mounted()
246 if (strcmp(mntbuf[i].f_mntfromname, name) == 0) { in is_mounted()
247 free(mntbuf); in is_mounted()
251 free(mntbuf); in is_mounted()
/freebsd-13.1/sbin/umount/
H A Dumount.c93 struct statfs *mntbuf, *sfs; in main() local
158 if ((mntsize = mntinfo(&mntbuf)) <= 0) in main()
165 sfs = &mntbuf[mntsize]; in main()
173 free(mntbuf); in main()
478 static struct statfs *mntbuf; in getmntentry() local
485 if ((mntsize = mntinfo(&mntbuf)) <= 0) in getmntentry()
502 sfs = &mntbuf[i]; in getmntentry()
599 mntinfo(struct statfs **mntbuf) in mntinfo() argument
612 *mntbuf = origbuf; in mntinfo()
/freebsd-13.1/sbin/bectl/
H A Dbectl_jail.c212 struct statfs *mntbuf; in bectl_jail_cleanup() local
221 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in bectl_jail_cleanup()
223 if (strncmp(mountpoint, mntbuf[i].f_mntonname, searchlen) == 0 && in bectl_jail_cleanup()
224 mntbuf[i].f_type != MNTTYPE_ZFS) { in bectl_jail_cleanup()
226 if (unmount(mntbuf[i].f_mntonname, 0) != 0) { in bectl_jail_cleanup()
228 mntbuf[i].f_mntonname); in bectl_jail_cleanup()
/freebsd-13.1/sbin/fsck/
H A Dfsutil.c200 struct statfs *mntbuf, *statfsp; in getmntpt() local
209 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in getmntpt()
211 statfsp = &mntbuf[i]; in getmntpt()
/freebsd-13.1/sbin/dump/
H A Dmain.c645 struct statfs *mntbuf; in getmntpt() local
647 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in getmntpt()
649 if (!strcmp(mntbuf[i].f_mntfromname, name)) { in getmntpt()
650 *mntflagsp = mntbuf[i].f_flags; in getmntpt()
651 return (mntbuf[i].f_mntonname); in getmntpt()
/freebsd-13.1/contrib/netbsd-tests/bin/df/
H A Dgetmntinfo.c208 getmntinfo(struct statvfs **mntbuf, int flags) in getmntinfo() argument
216 *mntbuf = allstatvfs; in getmntinfo()
/freebsd-13.1/usr.bin/nfsstat/
H A Dnfsstat.c154 struct statfs *mntbuf; in main() local
172 mntlen = getmntinfo(&mntbuf, MNT_NOWAIT); in main()
174 if (strcmp(mntbuf->f_fstypename, "nfs") == 0) { in main()
176 mntbuf->f_mntonname; in main()
182 mntbuf->f_mntfromname, in main()
183 mntbuf->f_mntonname, buf); in main()
188 mntbuf++; in main()
/freebsd-13.1/sbin/fsck_ffs/
H A Dmain.c769 struct statfs *mntbuf, *statfsp; in getmntpt() local
778 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in getmntpt()
780 statfsp = &mntbuf[i]; in getmntpt()
/freebsd-13.1/sbin/growfs/
H A Dgrowfs.c1270 struct statfs *mntbuf, *statfsp; in dev_to_statfs() local
1283 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in dev_to_statfs()
1285 statfsp = &mntbuf[i]; in dev_to_statfs()
1303 struct statfs *mntbuf, *statfsp; in mountpoint_to_dev() local
1310 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in mountpoint_to_dev()
1312 statfsp = &mntbuf[i]; in mountpoint_to_dev()
/freebsd-13.1/lib/libugidfw/
H A Dugidfw.c68 struct statfs *mntbuf; in bsde_rule_to_string() local
335 numfs = getmntinfo(&mntbuf, MNT_NOWAIT); in bsde_rule_to_string()
338 &mntbuf[i].f_fsid) == 0) in bsde_rule_to_string()
341 i == numfs ? "???" : mntbuf[i].f_mntonname); in bsde_rule_to_string()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc4366 __sanitizer_mntent *mntbuf, char *buf, int buflen) {
4368 COMMON_INTERCEPTOR_ENTER(ctx, getmntent_r, fp, mntbuf, buf, buflen);
4369 __sanitizer_mntent *res = REAL(getmntent_r)(fp, mntbuf, buf, buflen);