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

/freebsd-current/lib/libc/gen/
H A Dgetmntinfo-compat11.c43 static struct freebsd11_statfs *mntbuf; local
51 (mntsize = freebsd11_getfsstat(mntbuf, bufsize, flags)) < 0)
54 if (mntbuf)
55 free(mntbuf);
57 if ((mntbuf = (struct freebsd11_statfs *)malloc(bufsize)) == 0)
59 if ((mntsize = freebsd11_getfsstat(mntbuf, bufsize, flags)) < 0)
62 *mntbufp = mntbuf;
H A Dgetmntinfo.c46 static struct statfs *mntbuf; local
53 if (bufsize > 0 && (mntsize = getfsstat(mntbuf, bufsize, mode)) < 0)
55 while (tries++ < MAX_TRIES && bufsize <= mntsize * sizeof(*mntbuf)) {
56 bufsize = (mntsize * SCALING_FACTOR) * sizeof(*mntbuf);
57 if ((mntbuf = reallocf(mntbuf, bufsize)) == NULL)
59 if ((mntsize = getfsstat(mntbuf, bufsize, mode)) < 0)
62 *mntbufp = mntbuf;
63 if (mntsize > (bufsize / sizeof(*mntbuf)))
64 return (bufsize / sizeof(*mntbuf));
[all...]
/freebsd-current/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-current/usr.sbin/autofs/
H A Dautomount.c87 find_statfs(const struct statfs *mntbuf, int nitems, const char *mountpoint) argument
92 if (strcmp(mntbuf[i].f_mntonname, mountpoint) == 0)
93 return (mntbuf + i);
144 const char *prefix, const struct statfs *mntbuf, int nitems)
156 sb = find_statfs(mntbuf, nitems, mountpoint);
185 struct statfs *mntbuf; local
189 nitems = getmntinfo(&mntbuf, MNT_WAIT);
196 if (strcmp(mntbuf[i].f_fstypename, "autofs") != 0) {
198 mntbuf[i].f_mntonname);
202 n = node_find(root, mntbuf[
143 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
302 struct statfs *mntbuf; local
[all...]
H A Dautounmountd.c102 struct statfs *mntbuf; local
105 nitems = getmntinfo(&mntbuf, MNT_WAIT);
115 if (strcmp(mntbuf[i].f_fstypename, "autofs") == 0) {
117 mntbuf[i].f_mntonname);
121 if ((mntbuf[i].f_flags & MNT_AUTOMOUNTED) == 0) {
123 mntbuf[i].f_mntonname);
127 af = automounted_find(mntbuf[i].f_fsid);
130 "(FSID:%d:%d)", mntbuf[i].f_mntonname,
131 mntbuf[i].f_fsid.val[0], mntbuf[
[all...]
/freebsd-current/sys/contrib/openzfs/lib/libspl/os/linux/
H A Dgetmntany.c67 struct mntent mntbuf; local
70 ret = getmntent_r(fp, &mntbuf, buf, BUFSIZE);
73 mgetp->mnt_special = mntbuf.mnt_fsname;
74 mgetp->mnt_mountp = mntbuf.mnt_dir;
75 mgetp->mnt_fstype = mntbuf.mnt_type;
76 mgetp->mnt_mntopts = mntbuf.mnt_opts;
/freebsd-current/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-current/tools/test/stress2/misc/
H A Dufssuspend.sh42 struct statfs *mntbuf, *statfsp;
53 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
60 statfsp = &mntbuf[i];
/freebsd-current/bin/df/
H A Ddf.c104 struct statfs *mntbuf; local
195 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
196 mntsize = regetmntinfo(&mntbuf, mntsize);
199 mntbuf = malloc(argc * sizeof(*mntbuf));
200 if (mntbuf == NULL)
253 mntbuf[mntsize++] = statfsbuf;
258 if (aflag || (mntbuf[i].f_flags & MNT_IGNORE) == 0) {
259 update_maxwidths(&maxwidths, &mntbuf[i]);
261 addstat(&totalbuf, &mntbuf[
283 struct statfs *mntbuf; local
374 struct statfs *mntbuf; local
[all...]
/freebsd-current/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-current/usr.sbin/rpc.umntall/
H A Drpc.umntall.c225 struct statfs *mntbuf; local
237 if ((mntbuf = malloc(bufsize)) == NULL)
239 mntsize = getfsstat(mntbuf, (long)bufsize, MNT_NOWAIT);
241 if (strcmp(mntbuf[i].f_mntfromname, name) == 0) {
242 free(mntbuf);
246 free(mntbuf);
/freebsd-current/sbin/mount/
H A Dmount.c207 struct statfs *mntbuf; local
295 if ((mntsize = getmntinfo(&mntbuf,
316 ismounted(fs, mntbuf, mntsize))
319 mntbuf->f_flags);
328 if (checkvfsname(mntbuf[i].f_fstypename, vfslist))
331 putfsent(&mntbuf[i]);
338 if (checkvfsname(mntbuf[i].f_fstypename,
342 (mntbuf[i].f_flags & MNT_IGNORE) != 0)
345 prmount(&mntbuf[i]);
359 if ((mntbuf
451 ismounted(struct fstab *fs, struct statfs *mntbuf, int mntsize) argument
[all...]
H A Dgetmntopts.c159 struct statfs *mntbuf, *statfsp; local
169 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
171 statfsp = &mntbuf[i];
/freebsd-current/sbin/bectl/
H A Dbectl_jail.c210 struct statfs *mntbuf; local
219 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
221 if (strncmp(mountpoint, mntbuf[i].f_mntonname, searchlen) == 0 &&
222 mntbuf[i].f_type != MNTTYPE_ZFS) {
224 if (unmount(mntbuf[i].f_mntonname, 0) != 0) {
226 mntbuf[i].f_mntonname);
/freebsd-current/sbin/umount/
H A Dumount.c90 struct statfs *mntbuf, *sfs; local
158 if ((mntsize = mntinfo(&mntbuf)) <= 0)
165 sfs = &mntbuf[mntsize];
173 free(mntbuf);
488 static struct statfs *mntbuf; local
495 if ((mntsize = mntinfo(&mntbuf)) <= 0)
512 sfs = &mntbuf[i];
609 mntinfo(struct statfs **mntbuf) argument
622 *mntbuf = origbuf;
/freebsd-current/contrib/netbsd-tests/bin/df/
H A Dgetmntinfo.c208 getmntinfo(struct statvfs **mntbuf, int flags) argument
216 *mntbuf = allstatvfs;
/freebsd-current/sbin/dump/
H A Dmain.c633 struct statfs *mntbuf; local
635 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
637 if (!strcmp(mntbuf[i].f_mntfromname, name)) {
638 *mntflagsp = mntbuf[i].f_flags;
639 return (mntbuf[i].f_mntonname);
/freebsd-current/usr.bin/nfsstat/
H A Dnfsstat.c140 struct statfs *mntbuf; local
158 mntlen = getmntinfo(&mntbuf, MNT_NOWAIT);
160 if (strcmp(mntbuf->f_fstypename, "nfs") == 0) {
162 mntbuf->f_mntonname;
168 mntbuf->f_mntfromname,
169 mntbuf->f_mntonname, buf);
174 mntbuf++;
/freebsd-current/lib/libugidfw/
H A Dugidfw.c66 struct statfs *mntbuf; local
333 numfs = getmntinfo(&mntbuf, MNT_NOWAIT);
336 &mntbuf[i].f_fsid) == 0)
339 i == numfs ? "???" : mntbuf[i].f_mntonname);
/freebsd-current/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);

Completed in 176 milliseconds