| /netbsd/src/bin/df/ |
| D | df.c | 98 struct statvfs *mntbuf, totals; in main() local 201 mntcount = getmntinfo(&mntbuf, MNT_NOWAIT); in main() 207 mntcount = regetmntinfo(&mntbuf, mntcount); in main() 209 if ((mntbuf = calloc(argc, sizeof(*mntbuf))) == NULL) in main() 229 if (!statvfs(mntpt, &mntbuf[mntcount])) { in main() 231 !streq(mntpt, mntbuf[mntcount].f_mntonname)) in main() 235 (mntbuf[mntcount].f_flag & MNT_LOCAL) == 0) in main() 239 (!selected(mntbuf[mntcount].f_fstypename, in main() 240 sizeof(mntbuf[mntcount].f_fstypename))) in main() 243 mntbuf[mntcount].f_fstypename, in main() [all …]
|
| /netbsd/src/lib/libc/gen/ |
| 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/ |
| 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()
|
| 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/ |
| 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/mount/ |
| 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/ |
| 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()
|
| 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/umount/ |
| D | umount.c | 102 struct statvfs *mntbuf; in main() local 168 if ((mnts = getmntinfo(&mntbuf, ST_NOWAIT)) == 0) { in main() 173 if (checkvfsname(mntbuf[mnts].f_fstypename, typelist)) in main() 175 if (umountfs(mntbuf[mnts].f_mntonname, typelist, in main() 369 static struct statvfs *mntbuf; in getmntname() local 374 if (mntbuf == NULL && in getmntname() 375 (mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0) { in getmntname() 380 if ((what == MNTON) && !strcmp(mntbuf[i].f_mntfromname, name)) { in getmntname() 382 *type = mntbuf[i].f_fstypename; in getmntname() 383 return (mntbuf[i].f_mntonname); in getmntname() [all …]
|
| /netbsd/src/sbin/mount_lfs/ |
| 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/ |
| D | getmntinfo.c | 208 getmntinfo(struct statvfs **mntbuf, int flags) in getmntinfo() argument 216 *mntbuf = allstatvfs; in getmntinfo()
|