| /freebsd/tests/sys/fs/fusefs/ |
| H A D | statfs.cc | 46 struct statfs statbuf; in TEST_F() 55 ASSERT_NE(0, statfs("mountpoint", &statbuf)); in TEST_F() 65 struct statfs statbuf; in TEST_F() 72 ASSERT_EQ(0, statfs("mountpoint", &statbuf)) << strerror(errno); 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() 144 out.body.statfs.st.blocks = 1000; 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 …]
|
| H A D | destroy.cc | 61 struct statfs statbuf; in assert_unmounted() 64 ASSERT_EQ(0, statfs("mountpoint", &statbuf)) << strerror(errno); in assert_unmounted() 105 struct statfs statbuf; in TEST_F() 114 SET_OUT_HEADER_LEN(out, statfs); in TEST_F() 127 ASSERT_EQ(0, statfs("mountpoint", &statbuf)) << strerror(errno); in TEST_F()
|
| /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 *); 73 static void prthuman(const struct statfs *, int64_t); 76 static void prtstat(struct statfs *, struct maxwidths *); 77 static size_t regetmntinfo(struct statfs **, long); 78 static void update_maxwidths(struct maxwidths *, const struct statfs *); 102 struct statfs statfsbuf, totalbuf; in main() 104 struct statfs *mntbuf; in main() 233 if (statfs(mntpt, &statfsbuf) < 0) { in main() 284 struct statfs *mntbuf; in getmntpt() 372 regetmntinfo(struct statfs **mntbufp, long mntsize) in regetmntinfo() [all …]
|
| /freebsd/sbin/umount/ |
| H A D | umount.c | 69 struct statfs *checkmntlist(char *); 71 struct statfs *getmntentry(const char *fromname, const char *onname, 74 size_t mntinfo (struct statfs **); 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() 293 * 4. Resort to a statfs(2) call. This is the last check so that in checkname() 295 * potentially blocking forever in statfs() as long as the in checkname() 303 if (statfs(mntnam in checkname() [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/sys/fs/p9fs/ |
| H A D | p9fs_vfsops.c | 544 p9fs_statfs(struct mount *mp __unused, struct statfs *buf) in p9fs_statfs() 550 struct p9_statfs statfs; in p9fs_statfs() local 563 res = p9_client_statfs(vfid, &statfs); in p9fs_statfs() 566 buf->f_type = statfs.type; in p9fs_statfs() 571 if (statfs.bsize > PAGE_SIZE) in p9fs_statfs() 574 buf->f_bsize = statfs.bsize; in p9fs_statfs() 577 buf->f_blocks = statfs.blocks; in p9fs_statfs() 578 buf->f_bfree = statfs.bfree; in p9fs_statfs() 579 buf->f_bavail = statfs.bavail; in p9fs_statfs() 580 buf->f_files = statfs.files; in p9fs_statfs() [all …]
|
| /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/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/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/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/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/tests/sys/kern/ |
| H A D | jail_lookup_root.c | 103 struct statfs fs; in ATF_TC_CLEANUP() 107 error = statfs("./root/b", &fs); in ATF_TC_CLEANUP() 111 error = statfs("./root", &fs); in ATF_TC_CLEANUP()
|
| /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/os/freebsd/ |
| H A D | getmntany.c | 45 struct statfs sfs; in getextmntent() 58 if (statfs(path, &sfs) != 0) { in getextmntent()
|
| /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/sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/ |
| H A D | mnttab.h | 76 struct statfs; 82 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/sbin/mount/ |
| H A D | mount.c | 78 int ismounted(struct fstab *, struct statfs *, int); 86 void prmount(struct statfs *); 87 void putfsent(struct statfs *); 208 struct statfs *mntbuf; in main() 452 ismounted(struct fstab *fs, struct statfs *mntbuf, int mntsize) in ismounted() 543 struct statfs sf; in mountfs() 623 if (statfs(name, &sf) < 0) { in mountfs() 646 prmount(struct statfs *sfp) in prmount() 892 putfsent(struct statfs *ent) in putfsent()
|
| /freebsd/tools/diag/prtblknos/ |
| H A D | main.c | 45 struct statfs sfb; in main() 56 if (statfs(filename, &sfb) != 0) in main()
|