| /netbsd-src/usr.sbin/autofs/ |
| H A D | automount.c | 68 find_statfs(const struct statvfs *mntbuf, int nitems, const char *mountpoint) in find_statfs() argument 73 if (strcmp(mntbuf[i].f_mntonname, mountpoint) == 0) in find_statfs() 74 return mntbuf + i; in find_statfs() 104 const char *prefix, const struct statvfs *mntbuf, int nitems) in mount_if_not_already() argument 116 sb = find_statfs(mntbuf, nitems, mountpoint); in mount_if_not_already() 145 struct statvfs *mntbuf; in mount_unmount() local 150 nitems = getmntinfo(&mntbuf, MNT_WAIT); in mount_unmount() 157 if (strcmp(mntbuf[i].f_fstypename, "autofs") != 0) { in mount_unmount() 159 mntbuf[i].f_mntonname); in mount_unmount() 163 n = node_find(root, mntbuf[i].f_mntonname); in mount_unmount() [all …]
|
| H A D | autounmountd.c | 108 struct statvfs *mntbuf; in refresh_automounted() local 111 nitems = getmntinfo(&mntbuf, MNT_WAIT); in refresh_automounted() 121 if (strcmp(mntbuf[i].f_fstypename, "autofs") == 0) { in refresh_automounted() 123 mntbuf[i].f_mntonname); in refresh_automounted() 127 if ((mntbuf[i].f_flag & MNT_AUTOMOUNTED) == 0) { in refresh_automounted() 129 mntbuf[i].f_mntonname); in refresh_automounted() 133 af = automounted_find(mntbuf[i].f_fsidx); in refresh_automounted() 136 "(FSID:%d:%d)", mntbuf[i].f_mntonname, in refresh_automounted() 137 mntbuf[i].f_fsidx.__fsid_val[0], in refresh_automounted() 138 mntbuf[i].f_fsidx.__fsid_val[1]); in refresh_automounted() [all …]
|
| /netbsd-src/lib/libc/gen/ |
| H A D | getmntinfo.c | 56 static struct statvfs *mntbuf; in getmntinfo() local 66 (mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1) in getmntinfo() 69 if (mntbuf) in getmntinfo() 70 free(mntbuf); in getmntinfo() 72 if ((mntbuf = malloc(bufsize)) == NULL) in getmntinfo() 74 if ((mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1) in getmntinfo() 77 *mntbufp = mntbuf; in getmntinfo()
|
| /netbsd-src/lib/libc/compat/gen/ |
| H A D | compat_getmntinfo.c | 61 static struct statfs12 *mntbuf; in __strong_alias() local 71 (mntsize = __compat_getfsstat(mntbuf, (long)bufsize, flags)) == -1) in __strong_alias() 74 if (mntbuf) in __strong_alias() 75 free(mntbuf); in __strong_alias() 77 if ((mntbuf = malloc(bufsize)) == NULL) in __strong_alias() 79 if ((mntsize = __compat_getfsstat(mntbuf, (long)bufsize, in __strong_alias() 83 *mntbufp = mntbuf; in __strong_alias()
|
| H A D | compat___getmntinfo13.c | 60 static struct statvfs90 *mntbuf; in __strong_alias() local 70 (mntsize = __compat_getvfsstat(mntbuf, bufsize, flags)) == -1) in __strong_alias() 73 if (mntbuf) in __strong_alias() 74 free(mntbuf); in __strong_alias() 76 if ((mntbuf = malloc(bufsize)) == NULL) in __strong_alias() 78 if ((mntsize = __compat_getvfsstat(mntbuf, bufsize, in __strong_alias() 82 *mntbufp = mntbuf; in __strong_alias()
|
| /netbsd-src/tests/fs/nfs/nfsservice/ |
| H A D | getmntinfo.c | 63 static struct statvfs *mntbuf; local 73 (mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1) 76 if (mntbuf) 77 free(mntbuf); 79 if ((mntbuf = malloc(bufsize)) == NULL) 81 if ((mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1) 84 *mntbufp = mntbuf;
|
| /netbsd-src/sbin/umount/ |
| H A D | umount.c | 97 struct statvfs *mntbuf; in main() local 160 if ((mnts = getmntinfo(&mntbuf, ST_NOWAIT)) == 0) { in main() 165 if (checkvfsname(mntbuf[mnts].f_fstypename, typelist)) in main() 167 if (umountfs(mntbuf[mnts].f_mntonname, typelist, in main() 346 static struct statvfs *mntbuf; in getmntname() local 351 if (mntbuf == NULL && in getmntname() 352 (mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0) { in getmntname() 357 if ((what == MNTON) && !strcmp(mntbuf[i].f_mntfromname, name)) { in getmntname() 359 *type = mntbuf[i].f_fstypename; in getmntname() 360 return (mntbuf[i].f_mntonname); in getmntname() [all …]
|
| /netbsd-src/sbin/mount/ |
| H A D | mount.c | 109 struct statvfs *mntbuf; in main() local 185 if ((mntbuf = getmntpt(fs->fs_file)) in main() 190 mntfromname = mntbuf->f_mntfromname; in main() 203 if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0) in main() 206 if (checkvfsname(mntbuf[i].f_fstypename, in main() 209 prmount(&mntbuf[i]); in main() 232 (mntbuf = getmntpt(canonical_path)) == NULL) && in main() 233 (mntbuf = getmntpt(*argv)) == NULL) { in main() 239 mntfromname = mntbuf->f_mntfromname; in main() 240 if ((fs = getfsfile(mntbuf->f_mntonname)) != NULL) { in main() [all …]
|
| /netbsd-src/sbin/dump/ |
| H A D | snapshot.c | 65 struct statvfs *mntbuf, *fs, fsb; in snap_open() local 69 mntbuf = NULL; in snap_open() 85 n = getmntinfo(&mntbuf, MNT_NOWAIT); in snap_open() 86 for (fs = mntbuf, i = 0; i < n; i++, fs++) { in snap_open() 180 if (mntbuf) in snap_open() 181 free(mntbuf); in snap_open() 188 if (mntbuf) in snap_open() 189 free(mntbuf); in snap_open()
|
| H A D | optr.c | 450 struct statvfs *mntbuf, *fs; in mntinfosearch() local 454 if ((mntbufc = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0) in mntinfosearch() 456 for (fs = mntbuf, i = 0; i < mntbufc; i++, fs++) { in mntinfosearch()
|
| /netbsd-src/sbin/mount_lfs/ |
| H A D | mount_lfs.c | 157 struct statvfs *mntbuf; in mount_lfs() local 169 if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0) in mount_lfs() 172 if (strcmp(mntbuf[i].f_mntfromname, args.fspec) == 0) { in mount_lfs() 173 oldflags = mntbuf[i].f_flag; in mount_lfs()
|
| /netbsd-src/tests/bin/df/ |
| H A D | getmntinfo.c | 208 getmntinfo(struct statvfs **mntbuf, int flags) in getmntinfo() argument 216 *mntbuf = allstatvfs; in getmntinfo()
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/msan/tests/ |
| H A D | msan_test.cc | 2346 struct mntent mntbuf; in TEST() local 2348 struct mntent *mnt = getmntent_r(fp, &mntbuf, buf, sizeof(buf)); in TEST()
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
| H A D | sanitizer_common_interceptors.inc | 4198 __sanitizer_mntent *mntbuf, char *buf, int buflen) { 4200 COMMON_INTERCEPTOR_ENTER(ctx, getmntent_r, fp, mntbuf, buf, buflen); 4201 __sanitizer_mntent *res = REAL(getmntent_r)(fp, mntbuf, buf, buflen);
|
| /netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/ |
| H A D | sanitizer_common_interceptors.inc | 4441 __sanitizer_mntent *mntbuf, char *buf, int buflen) { 4443 COMMON_INTERCEPTOR_ENTER(ctx, getmntent_r, fp, mntbuf, buf, buflen); 4444 __sanitizer_mntent *res = REAL(getmntent_r)(fp, mntbuf, buf, buflen);
|
| /netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/ |
| H A D | sanitizer_common_interceptors.inc | 4340 __sanitizer_mntent *mntbuf, char *buf, int buflen) { 4342 COMMON_INTERCEPTOR_ENTER(ctx, getmntent_r, fp, mntbuf, buf, buflen); 4343 __sanitizer_mntent *res = REAL(getmntent_r)(fp, mntbuf, buf, buflen);
|