HomeSort by: relevance | last modified time | path
    Searched defs:mntbuf (Results 1 - 13 of 13) sorted by relevancy

  /src/lib/libc/compat/gen/
compat___getmntinfo13.c 60 static struct statvfs90 *mntbuf; variable in typeref:struct:statvfs90 *
70 (mntsize = __compat_getvfsstat(mntbuf, bufsize, flags)) == -1)
73 if (mntbuf)
74 free(mntbuf);
76 if ((mntbuf = malloc(bufsize)) == NULL)
78 if ((mntsize = __compat_getvfsstat(mntbuf, bufsize,
82 *mntbufp = mntbuf;
compat_getmntinfo.c 61 static struct statfs12 *mntbuf; local in function:__strong_alias
71 (mntsize = __compat_getfsstat(mntbuf, (long)bufsize, flags)) == -1)
74 if (mntbuf)
75 free(mntbuf);
77 if ((mntbuf = malloc(bufsize)) == NULL)
79 if ((mntsize = __compat_getfsstat(mntbuf, (long)bufsize,
83 *mntbufp = mntbuf;
  /src/lib/libc/gen/
getmntinfo.c 56 static struct statvfs *mntbuf; local in function:getmntinfo
66 (mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1)
69 if (mntbuf)
70 free(mntbuf);
72 if ((mntbuf = malloc(bufsize)) == NULL)
74 if ((mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1)
77 *mntbufp = mntbuf;
  /src/tests/fs/nfs/nfsservice/
getmntinfo.c 63 static struct statvfs *mntbuf; local in function:getmntinfo
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;
  /src/sbin/dump/
snapshot.c 65 struct statvfs *mntbuf, *fs, fsb; local in function:snap_open
69 mntbuf = NULL;
85 n = getmntinfo(&mntbuf, MNT_NOWAIT);
86 for (fs = mntbuf, i = 0; i < n; i++, fs++) {
180 if (mntbuf)
181 free(mntbuf);
188 if (mntbuf)
189 free(mntbuf);
optr.c 450 struct statvfs *mntbuf, *fs; local in function:mntinfosearch
454 if ((mntbufc = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0)
456 for (fs = mntbuf, i = 0; i < mntbufc; i++, fs++) {
  /src/sbin/mount_lfs/
mount_lfs.c 157 struct statvfs *mntbuf; local in function:mount_lfs
169 if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0)
172 if (strcmp(mntbuf[i].f_mntfromname, args.fspec) == 0) {
173 oldflags = mntbuf[i].f_flag;
  /src/usr.sbin/autofs/
automount.c 68 find_statfs(const struct statvfs *mntbuf, int nitems, const char *mountpoint)
73 if (strcmp(mntbuf[i].f_mntonname, mountpoint) == 0)
74 return mntbuf + i;
104 const char *prefix, const struct statvfs *mntbuf, int nitems)
116 sb = find_statfs(mntbuf, nitems, mountpoint);
145 struct statvfs *mntbuf; local in function:mount_unmount
150 nitems = getmntinfo(&mntbuf, MNT_WAIT);
157 if (strcmp(mntbuf[i].f_fstypename, "autofs") != 0) {
159 mntbuf[i].f_mntonname);
163 n = node_find(root, mntbuf[i].f_mntonname)
206 struct statvfs *mntbuf; local in function:flush_caches
229 struct statvfs *mntbuf; local in function:unmount_automounted
    [all...]
autounmountd.c 108 struct statvfs *mntbuf; local in function:refresh_automounted
111 nitems = getmntinfo(&mntbuf, MNT_WAIT);
121 if (strcmp(mntbuf[i].f_fstypename, "autofs") == 0) {
123 mntbuf[i].f_mntonname);
127 if ((mntbuf[i].f_flag & MNT_AUTOMOUNTED) == 0) {
129 mntbuf[i].f_mntonname);
133 af = automounted_find(mntbuf[i].f_fsidx);
136 "(FSID:%d:%d)", mntbuf[i].f_mntonname,
137 mntbuf[i].f_fsidx.__fsid_val[0],
138 mntbuf[i].f_fsidx.__fsid_val[1])
    [all...]
  /src/bin/df/
df.c 98 struct statvfs *mntbuf, totals; local in function:main
201 mntcount = getmntinfo(&mntbuf, MNT_NOWAIT);
207 mntcount = regetmntinfo(&mntbuf, mntcount);
209 if ((mntbuf = calloc(argc, sizeof(*mntbuf))) == NULL)
229 if (!statvfs(mntpt, &mntbuf[mntcount])) {
231 !streq(mntpt, mntbuf[mntcount].f_mntonname))
235 (mntbuf[mntcount].f_flag & MNT_LOCAL) == 0)
239 (!selected(mntbuf[mntcount].f_fstypename,
240 sizeof(mntbuf[mntcount].f_fstypename))
289 struct statvfs *mntbuf; local in function:getmntpt
364 struct statvfs *mntbuf; local in function:regetmntinfo
    [all...]
  /src/sbin/umount/
umount.c 102 struct statvfs *mntbuf; local in function:main
168 if ((mnts = getmntinfo(&mntbuf, ST_NOWAIT)) == 0) {
173 if (checkvfsname(mntbuf[mnts].f_fstypename, typelist))
175 if (umountfs(mntbuf[mnts].f_mntonname, typelist,
376 static struct statvfs *mntbuf; local in function:getmntname
381 if (mntbuf == NULL &&
382 (mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0) {
387 if ((what == MNTON) && !strcmp(mntbuf[i].f_mntfromname, name)) {
389 *type = mntbuf[i].f_fstypename;
390 return (mntbuf[i].f_mntonname)
    [all...]
  /src/sbin/mount/
mount.c 109 struct statvfs *mntbuf; local in function:main
191 if ((mntbuf = getmntpt(fs->fs_file))
196 mntfromname = mntbuf->f_mntfromname;
209 if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0)
212 if (checkvfsname(mntbuf[i].f_fstypename,
215 prmount(&mntbuf[i]);
238 (mntbuf = getmntpt(canonical_path)) == NULL) &&
239 (mntbuf = getmntpt(*argv)) == NULL) {
245 mntfromname = mntbuf->f_mntfromname;
246 if ((fs = getfsfile(mntbuf->f_mntonname)) != NULL)
659 struct statvfs *mntbuf; local in function:getmntpt
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/msan/tests/
msan_test.cc 2346 struct mntent mntbuf; local in function:TEST
2348 struct mntent *mnt = getmntent_r(fp, &mntbuf, buf, sizeof(buf));

Completed in 18 milliseconds