Home
last modified time | relevance | path

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

/freebsd-14.2/usr.sbin/autofs/
H A Dautomount.c94 return (mntbuf + i); in find_statfs()
186 struct statfs *mntbuf; in mount_unmount() local
199 mntbuf[i].f_mntonname); in mount_unmount()
206 mntbuf[i].f_mntonname); in mount_unmount()
226 "/", mntbuf, nitems); in mount_unmount()
264 struct statfs *mntbuf; in flush_caches() local
277 mntbuf[i].f_mntonname); in flush_caches()
292 mntbuf[i].f_mntonname); in flush_caches()
303 struct statfs *mntbuf; in unmount_automounted() local
315 mntbuf[i].f_mntonname); in unmount_automounted()
[all …]
H A Dautounmountd.c103 struct statfs *mntbuf; in refresh_automounted() local
106 nitems = getmntinfo(&mntbuf, MNT_WAIT); in refresh_automounted()
118 mntbuf[i].f_mntonname); in refresh_automounted()
122 if ((mntbuf[i].f_flags & MNT_AUTOMOUNTED) == 0) { in refresh_automounted()
124 mntbuf[i].f_mntonname); in refresh_automounted()
128 af = automounted_find(mntbuf[i].f_fsid); in refresh_automounted()
131 "(FSID:%d:%d)", mntbuf[i].f_mntonname, in refresh_automounted()
132 mntbuf[i].f_fsid.val[0], mntbuf[i].f_fsid.val[1]); in refresh_automounted()
133 af = automounted_add(mntbuf[i].f_fsid, in refresh_automounted()
134 mntbuf[i].f_mntonname); in refresh_automounted()
[all …]
/freebsd-14.2/lib/libc/gen/
H A Dgetmntinfo.c48 static struct statfs *mntbuf; in getmntinfo() local
55 if (bufsize > 0 && (mntsize = getfsstat(mntbuf, bufsize, mode)) < 0) in getmntinfo()
57 while (tries++ < MAX_TRIES && bufsize <= mntsize * sizeof(*mntbuf)) { in getmntinfo()
58 bufsize = (mntsize * SCALING_FACTOR) * sizeof(*mntbuf); in getmntinfo()
59 if ((mntbuf = reallocf(mntbuf, bufsize)) == NULL) in getmntinfo()
61 if ((mntsize = getfsstat(mntbuf, bufsize, mode)) < 0) in getmntinfo()
64 *mntbufp = mntbuf; in getmntinfo()
65 if (mntsize > (bufsize / sizeof(*mntbuf))) in getmntinfo()
66 return (bufsize / sizeof(*mntbuf)); in getmntinfo()
H A Dgetmntinfo-compat11.c45 static struct freebsd11_statfs *mntbuf; in freebsd11_getmntinfo() local
53 (mntsize = freebsd11_getfsstat(mntbuf, bufsize, flags)) < 0) in freebsd11_getmntinfo()
56 if (mntbuf) in freebsd11_getmntinfo()
57 free(mntbuf); in freebsd11_getmntinfo()
59 if ((mntbuf = (struct freebsd11_statfs *)malloc(bufsize)) == 0) in freebsd11_getmntinfo()
61 if ((mntsize = freebsd11_getfsstat(mntbuf, bufsize, flags)) < 0) in freebsd11_getmntinfo()
64 *mntbufp = mntbuf; in freebsd11_getmntinfo()
/freebsd-14.2/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-14.2/bin/df/
H A Ddf.c116 struct statfs *mntbuf; in main() local
211 mntbuf = malloc(argc * sizeof(*mntbuf)); in main()
212 if (mntbuf == NULL) in main()
265 mntbuf[mntsize++] = statfsbuf; in main()
295 struct statfs *mntbuf; in getmntpt() local
300 return (mntbuf[i].f_mntonname); in getmntpt()
386 struct statfs *mntbuf; in regetmntinfo() local
391 mntbuf = *mntbufp; in regetmntinfo()
401 error = statfs(mntbuf[i].f_mntonname, &mntbuf[j]); in regetmntinfo()
406 mntbuf[i].f_mntonname); in regetmntinfo()
[all …]
/freebsd-14.2/sbin/mount/
H A Dmount.c217 struct statfs *mntbuf; in main() local
305 if ((mntsize = getmntinfo(&mntbuf, in main()
326 ismounted(fs, mntbuf, mntsize)) in main()
329 mntbuf->f_flags); in main()
341 putfsent(&mntbuf[i]); in main()
355 prmount(&mntbuf[i]); in main()
380 mntbuf->f_mntfromname) == 0 && in main()
382 mntbuf->f_mntonname) == 0) { in main()
388 mntbuf->f_fstypename) == 0) { in main()
396 mntbuf->f_flags); in main()
[all …]
H A Dgetmntopts.c165 struct statfs *mntbuf, *statfsp; in getmntpoint() local
175 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in getmntpoint()
177 statfsp = &mntbuf[i]; in getmntpoint()
/freebsd-14.2/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-14.2/usr.sbin/snapinfo/
H A Dsnapinfo.c58 struct statfs *mntbuf; in main() local
101 fscount = getmntinfo(&mntbuf, MNT_WAIT); in main()
103 if (!strncmp(mntbuf[n].f_fstypename, "ufs", 3)) { in main()
104 if (all || strcmp(path, mntbuf[n].f_mntonname) == 0) { in main()
105 find_snapshot(&mntbuf[n]); in main()
/freebsd-14.2/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-14.2/usr.sbin/rpc.umntall/
H A Drpc.umntall.c225 struct statfs *mntbuf; in is_mounted() local
237 if ((mntbuf = malloc(bufsize)) == NULL) in is_mounted()
239 mntsize = getfsstat(mntbuf, (long)bufsize, MNT_NOWAIT); in is_mounted()
241 if (strcmp(mntbuf[i].f_mntfromname, name) == 0) { in is_mounted()
242 free(mntbuf); in is_mounted()
246 free(mntbuf); in is_mounted()
/freebsd-14.2/sbin/bectl/
H A Dbectl_jail.c211 struct statfs *mntbuf; in bectl_jail_cleanup() local
220 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in bectl_jail_cleanup()
222 if (strncmp(mountpoint, mntbuf[i].f_mntonname, searchlen) == 0 && in bectl_jail_cleanup()
223 mntbuf[i].f_type != MNTTYPE_ZFS) { in bectl_jail_cleanup()
225 if (unmount(mntbuf[i].f_mntonname, 0) != 0) { in bectl_jail_cleanup()
227 mntbuf[i].f_mntonname); in bectl_jail_cleanup()
/freebsd-14.2/sbin/umount/
H A Dumount.c102 struct statfs *mntbuf, *sfs; in main() local
170 if ((mntsize = mntinfo(&mntbuf)) <= 0) in main()
177 sfs = &mntbuf[mntsize]; in main()
185 free(mntbuf); in main()
500 static struct statfs *mntbuf; in getmntentry() local
507 if ((mntsize = mntinfo(&mntbuf)) <= 0) in getmntentry()
524 sfs = &mntbuf[i]; in getmntentry()
621 mntinfo(struct statfs **mntbuf) in mntinfo() argument
634 *mntbuf = origbuf; in mntinfo()
/freebsd-14.2/tools/test/stress2/misc/
H A Dufssuspend.sh42 struct statfs *mntbuf, *statfsp;
53 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
60 statfsp = &mntbuf[i];
/freebsd-14.2/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-14.2/contrib/netbsd-tests/bin/df/
H A Dgetmntinfo.c208 getmntinfo(struct statvfs **mntbuf, int flags) in getmntinfo() argument
216 *mntbuf = allstatvfs; in getmntinfo()
/freebsd-14.2/usr.bin/nfsstat/
H A Dnfsstat.c152 struct statfs *mntbuf; in main() local
170 mntlen = getmntinfo(&mntbuf, MNT_NOWAIT); in main()
172 if (strcmp(mntbuf->f_fstypename, "nfs") == 0) { in main()
174 mntbuf->f_mntonname; in main()
180 mntbuf->f_mntfromname, in main()
181 mntbuf->f_mntonname, buf); in main()
186 mntbuf++; in main()
/freebsd-14.2/lib/libugidfw/
H A Dugidfw.c66 struct statfs *mntbuf; in bsde_rule_to_string() local
333 numfs = getmntinfo(&mntbuf, MNT_NOWAIT); in bsde_rule_to_string()
336 &mntbuf[i].f_fsid) == 0) in bsde_rule_to_string()
339 i == numfs ? "???" : mntbuf[i].f_mntonname); in bsde_rule_to_string()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc4447 __sanitizer_mntent *mntbuf, char *buf, int buflen) {
4449 COMMON_INTERCEPTOR_ENTER(ctx, getmntent_r, fp, mntbuf, buf, buflen);
4450 __sanitizer_mntent *res = REAL(getmntent_r)(fp, mntbuf, buf, buflen);