| /freebsd-11-stable/usr.sbin/autofs/ |
| HD | automount.c | 89 find_statfs(const struct statfs *mntbuf, int nitems, const char *mountpoint) in find_statfs() argument 94 if (strcmp(mntbuf[i].f_mntonname, mountpoint) == 0) in find_statfs() 95 return (mntbuf + i); in find_statfs() 146 const char *prefix, const struct statfs *mntbuf, int nitems) in mount_if_not_already() argument 158 sb = find_statfs(mntbuf, nitems, mountpoint); in mount_if_not_already() 187 struct statfs *mntbuf; in mount_unmount() local 191 nitems = getmntinfo(&mntbuf, MNT_WAIT); in mount_unmount() 198 if (strcmp(mntbuf[i].f_fstypename, "autofs") != 0) { in mount_unmount() 200 mntbuf[i].f_mntonname); in mount_unmount() 204 n = node_find(root, mntbuf[i].f_mntonname); in mount_unmount() [all …]
|
| HD | autounmountd.c | 107 struct statfs *mntbuf; in refresh_automounted() local 110 nitems = getmntinfo(&mntbuf, MNT_WAIT); in refresh_automounted() 120 if (strcmp(mntbuf[i].f_fstypename, "autofs") == 0) { in refresh_automounted() 122 mntbuf[i].f_mntonname); in refresh_automounted() 126 if ((mntbuf[i].f_flags & MNT_AUTOMOUNTED) == 0) { in refresh_automounted() 128 mntbuf[i].f_mntonname); in refresh_automounted() 132 af = automounted_find(mntbuf[i].f_fsid); in refresh_automounted() 135 "(FSID:%d:%d)", mntbuf[i].f_mntonname, in refresh_automounted() 136 mntbuf[i].f_fsid.val[0], mntbuf[i].f_fsid.val[1]); in refresh_automounted() 137 af = automounted_add(mntbuf[i].f_fsid, in refresh_automounted() [all …]
|
| /freebsd-11-stable/lib/libc/gen/ |
| HD | getmntinfo.c | 47 static struct statfs *mntbuf; in getmntinfo() local 53 if (bufsize > 0 && (mntsize = getfsstat(mntbuf, bufsize, mode)) < 0) in getmntinfo() 56 if (mntbuf) in getmntinfo() 57 free(mntbuf); in getmntinfo() 59 if ((mntbuf = malloc(bufsize)) == NULL) in getmntinfo() 61 if ((mntsize = getfsstat(mntbuf, bufsize, mode)) < 0) in getmntinfo() 64 *mntbufp = mntbuf; in getmntinfo()
|
| /freebsd-11-stable/contrib/netbsd-tests/fs/nfs/nfsservice/ |
| HD | getmntinfo.c | 62 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/sbin/mount/ |
| HD | mount.c | 258 struct statfs *mntbuf; in main() local 340 if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0) in main() 359 ismounted(fs, mntbuf, mntsize)) in main() 362 mntbuf->f_flags); in main() 370 if (checkvfsname(mntbuf[i].f_fstypename, vfslist)) in main() 372 putfsent(&mntbuf[i]); in main() 376 if (checkvfsname(mntbuf[i].f_fstypename, in main() 380 (mntbuf[i].f_flags & MNT_IGNORE) != 0) in main() 382 prmount(&mntbuf[i]); in main() 394 if ((mntbuf = getmntpt(*argv)) == NULL) in main() [all …]
|
| /freebsd-11-stable/bin/df/ |
| HD | df.c | 123 struct statfs *mntbuf; in main() local 233 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in main() 234 mntsize = regetmntinfo(&mntbuf, mntsize, vfslist); in main() 237 mntbuf = malloc(argc * sizeof(*mntbuf)); in main() 238 if (mntbuf == NULL) in main() 342 mntbuf[mntsize++] = statfsbuf; in main() 347 if (aflag || (mntbuf[i].f_flags & MNT_IGNORE) == 0) { in main() 348 update_maxwidths(&maxwidths, &mntbuf[i]); in main() 350 addstat(&totalbuf, &mntbuf[i]); in main() 354 if (aflag || (mntbuf[i].f_flags & MNT_IGNORE) == 0) in main() [all …]
|
| /freebsd-11-stable/usr.sbin/snapinfo/ |
| HD | snapinfo.c | 60 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-11-stable/contrib/hyperv/tools/ |
| HD | hv_vss_daemon.c | 52 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-11-stable/usr.sbin/rpc.umntall/ |
| HD | rpc.umntall.c | 230 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-11-stable/sbin/umount/ |
| HD | umount.c | 91 struct statfs *mntbuf, *sfs; in main() local 160 if ((mntsize = mntinfo(&mntbuf)) <= 0) in main() 167 sfs = &mntbuf[mntsize]; in main() 175 free(mntbuf); in main() 480 static struct statfs *mntbuf; in getmntentry() local 487 if ((mntsize = mntinfo(&mntbuf)) <= 0) in getmntentry() 504 sfs = &mntbuf[i]; in getmntentry() 602 mntinfo(struct statfs **mntbuf) in mntinfo() argument 615 *mntbuf = origbuf; in mntinfo()
|
| /freebsd-11-stable/sbin/bectl/ |
| HD | bectl_jail.c | 212 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-11-stable/sbin/fsck/ |
| HD | fsutil.c | 161 struct statfs *mntbuf, *statfsp; in getmntpt() local 170 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in getmntpt() 172 statfsp = &mntbuf[i]; in getmntpt()
|
| /freebsd-11-stable/sbin/dump/ |
| HD | main.c | 628 struct statfs *mntbuf; in getmntpt() local 630 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in getmntpt() 632 if (!strcmp(mntbuf[i].f_mntfromname, name)) { in getmntpt() 633 *mntflagsp = mntbuf[i].f_flags; in getmntpt() 634 return (mntbuf[i].f_mntonname); in getmntpt()
|
| /freebsd-11-stable/contrib/netbsd-tests/bin/df/ |
| HD | getmntinfo.c | 208 getmntinfo(struct statvfs **mntbuf, int flags) in getmntinfo() argument 216 *mntbuf = allstatvfs; in getmntinfo()
|
| /freebsd-11-stable/usr.bin/nfsstat/ |
| HD | nfsstat.c | 154 struct statfs *mntbuf; in main() local 166 mntlen = getmntinfo(&mntbuf, MNT_NOWAIT); in main() 168 if (strcmp(mntbuf->f_fstypename, "nfs") == 0) { in main() 170 mntbuf->f_mntonname; in main() 176 mntbuf->f_mntfromname, in main() 177 mntbuf->f_mntonname, buf); in main() 182 mntbuf++; in main()
|
| /freebsd-11-stable/sbin/fsck_ffs/ |
| HD | main.c | 645 struct statfs *mntbuf, *statfsp; in getmntpt() local 654 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in getmntpt() 656 statfsp = &mntbuf[i]; in getmntpt()
|
| /freebsd-11-stable/sbin/growfs/ |
| HD | growfs.c | 1265 struct statfs *mntbuf, *statfsp; in dev_to_statfs() local 1278 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in dev_to_statfs() 1280 statfsp = &mntbuf[i]; in dev_to_statfs() 1298 struct statfs *mntbuf, *statfsp; in mountpoint_to_dev() local 1305 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in mountpoint_to_dev() 1307 statfsp = &mntbuf[i]; in mountpoint_to_dev()
|
| /freebsd-11-stable/lib/libugidfw/ |
| HD | ugidfw.c | 66 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), in bsde_rule_to_string() 337 sizeof(mntbuf[i].f_fsid)) == 0) in bsde_rule_to_string() 340 i == numfs ? "???" : mntbuf[i].f_mntonname); in bsde_rule_to_string()
|
| /freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| HD | sanitizer_common_interceptors.inc | 4270 __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);
|