| /freebsd-13.1/tests/sys/fs/fusefs/ |
| H A D | statfs.cc | 48 struct statfs statbuf; in TEST_F() 67 struct statfs statbuf; in TEST_F() 84 struct statfs *sb = (struct statfs*)arg; in statfs_th() 86 r = statfs("mountpoint", sb); in statfs_th() 99 struct statfs statbuf; in TEST_F() 136 struct statfs statbuf; in TEST_F() 145 SET_OUT_HEADER_LEN(out, statfs); in TEST_F() 147 out.body.statfs.st.bfree = 100; in TEST_F() 148 out.body.statfs.st.bavail = 200; in TEST_F() 149 out.body.statfs.st.files = 5; in TEST_F() [all …]
|
| H A D | mount.cc | 70 struct statfs statbuf; in TEST_P() 92 SET_OUT_HEADER_LEN(out, statfs); in TEST_P() 95 ASSERT_EQ(0, statfs("mountpoint", &statbuf)) << strerror(errno); in TEST_P() 103 ASSERT_EQ(0, statfs("mountpoint", &statbuf)) << strerror(errno); in TEST_P() 110 struct statfs statbuf; in TEST_P() 127 SET_OUT_HEADER_LEN(out, statfs); in TEST_P() 130 ASSERT_EQ(0, statfs("mountpoint", &statbuf)) << strerror(errno); in TEST_P() 143 ASSERT_EQ(0, statfs("mountpoint", &statbuf)) << strerror(errno); in TEST_P()
|
| /freebsd-13.1/sbin/umount/ |
| H A D | umount.c | 84 int umountfs(struct statfs *sfs); 93 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() 475 struct statfs * 478 static struct statfs *mntbuf; in getmntentry() 481 struct statfs *sfs, *foundsfs; in getmntentry() 582 struct statfs * 585 struct statfs *sfs; in checkmntlist() [all …]
|
| /freebsd-13.1/bin/df/ |
| H A D | df.c | 81 static void addstat(struct statfs *, struct statfs *); 92 static size_t regetmntinfo(struct statfs **, long); 117 struct statfs statfsbuf, totalbuf; in main() 119 struct statfs *mntbuf; in main() 247 if (statfs(mntpt, &statfsbuf) < 0) { in main() 297 struct statfs *mntbuf; in getmntpt() 385 regetmntinfo(struct statfs **mntbufp, long mntsize) in regetmntinfo() 388 struct statfs *mntbuf; in regetmntinfo() 417 prthuman(const struct statfs *sfsp, int64_t used) in prthuman() 473 prtstat(struct statfs *sfsp, struct maxwidths *mwp) in prtstat() [all …]
|
| /freebsd-13.1/lib/libc/gen/ |
| H A D | statvfs.c | 43 static int sfs2svfs(const struct statfs *from, struct statvfs *to); 48 struct statfs sfs; in fstatvfs() 75 struct statfs sfs; in statvfs() 79 rv = statfs(path, &sfs); in statvfs() 98 sfs2svfs(const struct statfs *from, struct statvfs *to) in sfs2svfs()
|
| H A D | getmntinfo.c | 48 getmntinfo(struct statfs **mntbufp, int mode) in getmntinfo() 50 static struct statfs *mntbuf; in getmntinfo()
|
| /freebsd-13.1/usr.sbin/autofs/ |
| H A D | automount.c | 64 unmount_by_statfs(const struct statfs *sb, bool force) in unmount_by_statfs() 89 static const struct statfs * 90 find_statfs(const struct statfs *mntbuf, int nitems, const char *mountpoint) in find_statfs() 147 const char *prefix, const struct statfs *mntbuf, int nitems) in mount_if_not_already() 149 const struct statfs *sb; in mount_if_not_already() 188 struct statfs *mntbuf; in mount_unmount() 264 struct statfs *mntbuf; in flush_caches() 287 struct statfs *mntbuf; in unmount_automounted()
|
| /freebsd-13.1/crypto/openssh/openbsd-compat/ |
| H A D | bsd-statvfs.c | 38 copy_statfs_to_statvfs(struct statvfs *to, struct statfs *from) in copy_statfs_to_statvfs() 62 struct statfs fs; in statvfs() 65 if (statfs(path, &fs) == -1) in statvfs() 80 struct statfs fs; in fstatvfs()
|
| /freebsd-13.1/sbin/mksnap_ffs/ |
| H A D | mksnap_ffs.c | 75 issamefs(const char *path, struct statfs *stfsp) in issamefs() 77 struct statfs stfsbuf; in issamefs() 82 if (statfs(path, &stfsbuf) < 0) in issamefs() 94 struct statfs stfsbuf; in main() 125 if (statfs(path, &stfsbuf) < 0) in main()
|
| /freebsd-13.1/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-13.1/tools/regression/security/cap_test/ |
| H A D | cap_test_capmode.c | 68 struct statfs statfs; in test_capmode() local 99 CHECK_CAPMODE(getfsstat, &statfs, sizeof(statfs), MNT_NOWAIT); in test_capmode()
|
| /freebsd-13.1/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-13.1/sbin/mount/ |
| H A D | mount.c | 81 struct statfs *getmntpt(const char *); 83 int ismounted(struct fstab *, struct statfs *, int); 90 void prmount(struct statfs *); 91 void putfsent(struct statfs *); 237 struct statfs *mntbuf; in main() 549 struct statfs sf; in mountfs() 622 if (statfs(name, &sf) < 0) { in mountfs() 636 prmount(struct statfs *sfp) in prmount() 681 struct statfs * 684 struct statfs *mntbuf; in getmntpt() [all …]
|
| /freebsd-13.1/usr.sbin/bsnmpd/modules/snmp_hostres/ |
| H A D | hostres_snmp.h | 68 struct statfs; 206 const struct asn_oid *fs_get_type(const struct statfs *); 216 void fs_tbl_process_statfs_entry(const struct statfs *, int32_t);
|
| /freebsd-13.1/lib/libc/sys/ |
| H A D | statfs.c | 38 statfs(const char *path, struct statfs *buf) in statfs() function
|
| H A D | getfsstat.c | 40 getfsstat(struct statfs *buf, long bufsize, int flags) in getfsstat() 50 (bufsize / sizeof(struct statfs)); /* overflow on translation. */ in getfsstat()
|
| /freebsd-13.1/usr.sbin/snapinfo/ |
| H A D | snapinfo.c | 49 static int find_snapshot(struct statfs *sfs); 60 struct statfs *mntbuf; in main() 120 find_snapshot(struct statfs *sfs) in find_snapshot()
|
| /freebsd-13.1/sys/contrib/openzfs/lib/libspl/os/freebsd/ |
| H A D | getmntany.c | 43 struct statfs sfs; in getextmntent() 56 if (statfs(path, &sfs) != 0) { in getextmntent()
|
| H A D | mnttab.c | 100 statfs2mnttab(struct statfs *sfs, struct mnttab *mp) in statfs2mnttab() 139 static struct statfs *gsfs = NULL; 145 struct statfs *sfs; in statfs_init()
|
| /freebsd-13.1/sbin/fsck_ffs/ |
| H A D | main.c | 78 static int setup_bkgrdchk(struct statfs *mntp, int sbrdfailed, char **filesys); 79 static int chkdoreload(struct statfs *mntp); 80 static struct statfs *getmntpt(const char *); 245 struct statfs *mntp; in checkfilesys() 585 setup_bkgrdchk(struct statfs *mntp, int sbreadfailed, char **filesys) in setup_bkgrdchk() 718 chkdoreload(struct statfs *mntp) in chkdoreload() 763 static struct statfs * 769 struct statfs *mntbuf, *statfsp; in getmntpt()
|
| /freebsd-13.1/sys/compat/linux/ |
| H A D | linux_stats.c | 414 bsd_to_linux_statfs(struct statfs *bsd_statfs, struct l_statfs *linux_statfs) in bsd_to_linux_statfs() 450 struct statfs *bsd_statfs; in linux_statfs() 455 bsd_statfs = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); in linux_statfs() 459 bsd_statfs = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); in linux_statfs() 495 struct statfs *bsd_statfs; in linux_statfs64() 503 bsd_statfs = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); in linux_statfs64() 507 bsd_statfs = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); in linux_statfs64() 523 struct statfs *bsd_statfs; in linux_fstatfs64() 529 bsd_statfs = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); in linux_fstatfs64() 544 struct statfs *bsd_statfs; in linux_fstatfs() [all …]
|
| /freebsd-13.1/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-13.1/lib/libc/tests/gen/ |
| H A D | getmntinfo_test.c | 43 check_mntinfo(struct statfs *mntinfo, int n) in check_mntinfo() 58 struct statfs *mntinfo; in ATF_TC_BODY()
|
| /freebsd-13.1/lib/libc/include/ |
| H A D | libc_private.h | 321 struct statfs; 342 int __sys_fstatfs(int fd, struct statfs *); 348 int __sys_getfsstat(struct statfs *, long, int); 390 int __sys_statfs(const char *, struct statfs *);
|
| /freebsd-13.1/lib/libefivar/ |
| H A D | efivar-dp-xlate.c | 140 struct statfs *mnt; in efi_hd_to_unix() 213 mntlen = sizeof(struct statfs) * n; in efi_hd_to_unix() 446 struct statfs buf; in find_geom_efi_on_root() 456 if (statfs("/", &buf) != 0) in find_geom_efi_on_root() 643 struct statfs buf; in path_to_dp() 653 if (statfs(rp, &buf) != 0) { in path_to_dp()
|