/freebsd/tests/sys/fs/fusefs/ |
H A D | statfs.cc | 46 struct statfs statbuf; in TEST_F() 65 struct statfs statbuf; in TEST_F() 82 struct statfs *sb = (struct statfs*)arg; in statfs_th() 84 r = statfs("mountpoint", sb); in statfs_th() 97 struct statfs statbuf; in TEST_F() 134 struct statfs statbuf; in TEST_F() 143 SET_OUT_HEADER_LEN(out, statfs); in TEST_F() 145 out.body.statfs.st.bfree = 100; in TEST_F() 146 out.body.statfs.st.bavail = 200; in TEST_F() 147 out.body.statfs.st.files = 5; in TEST_F() [all …]
|
H A D | mount.cc | 53 SET_OUT_HEADER_LEN(out, statfs); in expect_statfs() 95 struct statfs statbuf; in TEST_F() 99 ASSERT_EQ(0, statfs("mountpoint", &statbuf)) << strerror(errno); in TEST_F() 105 struct statfs statbuf; in TEST_F() 109 ASSERT_EQ(0, statfs("mountpoint", &statbuf)) << strerror(errno); in TEST_F() 116 struct statfs statbuf; in TEST_P() 138 SET_OUT_HEADER_LEN(out, statfs); in TEST_P() 141 ASSERT_EQ(0, statfs("mountpoint", &statbuf)) << strerror(errno); in TEST_P() 149 ASSERT_EQ(0, statfs("mountpoint", &statbuf)) << strerror(errno); in TEST_P() 156 struct statfs statbuf; in TEST_P() [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | statfs.sh | 50 sed '1,/^EOF/d' < $odir/$0 > $dir/statfs.c 51 mycc -o statfs -Wall statfs.c 52 rm -f statfs.c 55 ./statfs 76 struct statfs buf; 82 if (statfs(path, &buf) < 0)
|
/freebsd/bin/df/ |
H A D | df.c | 66 static void addstat(struct statfs *, struct statfs *); 77 static size_t regetmntinfo(struct statfs **, long); 102 struct statfs statfsbuf, totalbuf; in main() 104 struct statfs *mntbuf; in main() 232 if (statfs(mntpt, &statfsbuf) < 0) { in main() 283 struct statfs *mntbuf; in getmntpt() 371 regetmntinfo(struct statfs **mntbufp, long mntsize) in regetmntinfo() 374 struct statfs *mntbuf; in regetmntinfo() 403 prthuman(const struct statfs *sfsp, int64_t used) in prthuman() 459 prtstat(struct statfs *sfsp, struct maxwidths *mwp) in prtstat() [all …]
|
/freebsd/sbin/umount/ |
H A D | umount.c | 80 int umountfs(struct statfs *sfs); 90 struct statfs *mntbuf, *sfs; in main() 258 struct statfs sfsbuf; in checkname() 260 struct statfs *sfs; in checkname() 334 umountfs(struct statfs *sfs) in umountfs() 485 struct statfs * 488 static struct statfs *mntbuf; in getmntentry() 491 struct statfs *sfs, *foundsfs; in getmntentry() 592 struct statfs * 595 struct statfs *sfs; in checkmntlist() [all …]
|
/freebsd/usr.sbin/autofs/ |
H A D | automount.c | 61 unmount_by_statfs(const struct statfs *sb, bool force) in unmount_by_statfs() 86 static const struct statfs * 87 find_statfs(const struct statfs *mntbuf, int nitems, const char *mountpoint) in find_statfs() 144 const char *prefix, const struct statfs *mntbuf, int nitems) in mount_if_not_already() 146 const struct statfs *sb; in mount_if_not_already() 185 struct statfs *mntbuf; in mount_unmount() 263 struct statfs *mntbuf; in flush_caches() 264 struct statfs statbuf; in flush_caches() 285 if (statfs(mntbuf[i].f_mntonname, &statbuf) != 0) { in flush_caches() 302 struct statfs *mntbuf; in unmount_automounted()
|
/freebsd/lib/libc/gen/ |
H A D | statvfs.c | 40 static int sfs2svfs(const struct statfs *from, struct statvfs *to); 45 struct statfs sfs; in fstatvfs() 72 struct statfs sfs; in statvfs() 76 rv = statfs(path, &sfs); in statvfs() 95 sfs2svfs(const struct statfs *from, struct statvfs *to) in sfs2svfs()
|
H A D | getmntinfo.c | 44 getmntinfo(struct statfs **mntbufp, int mode) in getmntinfo() 46 static struct statfs *mntbuf; in getmntinfo()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | bsd-statvfs.c | 37 copy_statfs_to_statvfs(struct statvfs *to, struct statfs *from) in copy_statfs_to_statvfs() 61 struct statfs fs; in statvfs() 64 if (statfs(path, &fs) == -1) in statvfs() 79 struct statfs fs; in fstatvfs()
|
/freebsd/sbin/mksnap_ffs/ |
H A D | mksnap_ffs.c | 77 issamefs(const char *path, struct statfs *stfsp) in issamefs() 79 struct statfs stfsbuf; in issamefs() 84 if (statfs(path, &stfsbuf) < 0) in issamefs() 96 struct statfs stfsbuf; in main() 127 if (statfs(path, &stfsbuf) < 0) in main()
|
/freebsd/contrib/tcpdump/lbl/ |
H A D | os-sunos4.h | 79 struct statfs; 81 int fstatfs(int, struct statfs *); 167 int statfs(char *, struct statfs *);
|
/freebsd/contrib/libpcap/lbl/ |
H A D | os-sunos4.h | 78 struct statfs; 80 int fstatfs(int, struct statfs *); 165 int statfs(char *, struct statfs *);
|
/freebsd/tools/regression/security/cap_test/ |
H A D | cap_test_capmode.c | 63 struct statfs statfs; in test_capmode() local 94 CHECK_CAPMODE(getfsstat, &statfs, sizeof(statfs), MNT_NOWAIT); in test_capmode()
|
/freebsd/usr.sbin/bsnmpd/modules/snmp_hostres/ |
H A D | hostres_snmp.h | 66 struct statfs; 204 const struct asn_oid *fs_get_type(const struct statfs *); 214 void fs_tbl_process_statfs_entry(const struct statfs *, int32_t);
|
/freebsd/sys/contrib/openzfs/lib/libspl/os/freebsd/ |
H A D | getmntany.c | 44 struct statfs sfs; in getextmntent() 57 if (statfs(path, &sfs) != 0) { in getextmntent()
|
/freebsd/usr.sbin/snapinfo/ |
H A D | snapinfo.c | 47 static int find_snapshot(struct statfs *sfs); 58 struct statfs *mntbuf; in main() 118 find_snapshot(struct statfs *sfs) in find_snapshot()
|
/freebsd/tools/test/stress2/lib/ |
H A D | resources.c | 59 struct statfs buf; in inodes() 66 if (statfs(path, &buf) < 0) in inodes() 81 struct statfs buf; in df() 89 if (statfs(path, &buf) < 0) in df()
|
/freebsd/sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/ |
H A D | mnttab.h | 75 struct statfs; 81 extern void statfs2mnttab(struct statfs *sfs, struct mnttab *mp);
|
/freebsd/lib/libc/tests/gen/ |
H A D | getmntinfo_test.c | 40 check_mntinfo(struct statfs *mntinfo, int n) in check_mntinfo() 55 struct statfs *mntinfo; in ATF_TC_BODY()
|
/freebsd/sys/compat/linux/ |
H A D | linux_stats.c | 348 bsd_to_linux_statfs(struct statfs *bsd_statfs, struct l_statfs *linux_statfs) in bsd_to_linux_statfs() 380 struct statfs *bsd_statfs; in linux_statfs() 383 bsd_statfs = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); in linux_statfs() 395 bsd_to_linux_statfs64(struct statfs *bsd_statfs, struct l_statfs64 *linux_statfs) in bsd_to_linux_statfs64() 417 struct statfs *bsd_statfs; in linux_statfs64() 423 bsd_statfs = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); in linux_statfs64() 437 struct statfs *bsd_statfs; in linux_fstatfs64() 443 bsd_statfs = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); in linux_fstatfs64() 458 struct statfs *bsd_statfs; in linux_fstatfs() 461 bsd_statfs = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); in linux_fstatfs()
|
/freebsd/sbin/mount/ |
H A D | mount.c | 77 int ismounted(struct fstab *, struct statfs *, int); 85 void prmount(struct statfs *); 86 void putfsent(struct statfs *); 207 struct statfs *mntbuf; in main() 451 ismounted(struct fstab *fs, struct statfs *mntbuf, int mntsize) in ismounted() 542 struct statfs sf; in mountfs() 622 if (statfs(name, &sf) < 0) { in mountfs() 645 prmount(struct statfs *sfp) in prmount() 891 putfsent(struct statfs *ent) in putfsent()
|
H A D | mntopts.h | 104 struct statfs *getmntpoint(const char *); 105 int chkdoreload(struct statfs *, void (*)(const char *, ...) __printflike(1,2));
|
/freebsd/tools/diag/prtblknos/ |
H A D | main.c | 50 struct statfs sfb; in main() 61 if (statfs(filename, &sfb) != 0) in main()
|
/freebsd/sys/sys/ |
H A D | mount.h | 81 struct statfs { struct 246 struct statfs mnt_stat; /* cache of filesystem stats */ 796 typedef int vfs_statfs_t(struct mount *mp, struct statfs *sbp); 998 void statfs_scale_blocks(struct statfs *sf, long max_size); 1195 int fhstatfs(const struct fhandle *, struct statfs *); 1196 int fstatfs(int, struct statfs *); 1199 int getfsstat(struct statfs *, long, int); 1200 int getmntinfo(struct statfs **, int); 1204 int statfs(const char *, struct statfs *);
|
/freebsd/lib/libefivar/ |
H A D | efivar-dp-xlate.c | 136 struct statfs *mnt; in efi_hd_to_unix() 207 mntlen = sizeof(struct statfs) * n; in efi_hd_to_unix() 473 struct statfs buf; in find_geom_efi_on_root() 483 if (statfs("/", &buf) != 0) in find_geom_efi_on_root() 682 struct statfs buf; in path_to_dp() 692 if (statfs(rp, &buf) != 0) { in path_to_dp()
|