| /freebsd-12.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-12.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() 583 struct statfs * 586 struct statfs *sfs; in checkmntlist() [all …]
|
| /freebsd-12.1/bin/df/ |
| H A D | df.c | 89 static void addstat(struct statfs *, struct statfs *); 123 struct statfs statfsbuf, totalbuf; in main() 125 struct statfs *mntbuf; in main() 297 } else if (statfs(mntpt, &statfsbuf) == 0) { in main() 323 if (statfs(mntpt, &statfsbuf) < 0) { in main() 373 struct statfs *mntbuf; in getmntpt() 392 struct statfs *mntbuf; in regetmntinfo() 407 error = statfs(mntbuf[i].f_mntonname, &mntbuf[j]); in regetmntinfo() 421 prthuman(const struct statfs *sfsp, int64_t used) in prthuman() 477 prtstat(struct statfs *sfsp, struct maxwidths *mwp) in prtstat() [all …]
|
| /freebsd-12.1/usr.sbin/autofs/ |
| H A D | automount.c | 65 unmount_by_statfs(const struct statfs *sb, bool force) in unmount_by_statfs() 88 static const struct statfs * 89 find_statfs(const struct statfs *mntbuf, int nitems, const char *mountpoint) in find_statfs() 146 const char *prefix, const struct statfs *mntbuf, int nitems) in mount_if_not_already() 148 const struct statfs *sb; in mount_if_not_already() 187 struct statfs *mntbuf; in mount_unmount() 263 struct statfs *mntbuf; in flush_caches() 286 struct statfs *mntbuf; in unmount_automounted()
|
| /freebsd-12.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-12.1/crypto/openssh/openbsd-compat/ |
| H A D | bsd-statvfs.c | 33 copy_statfs_to_statvfs(struct statvfs *to, struct statfs *from) in copy_statfs_to_statvfs() 56 struct statfs fs; in statvfs() 59 if (statfs(path, &fs) == -1) in statvfs() 74 struct statfs fs; in fstatvfs()
|
| /freebsd-12.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() 95 struct statfs stfsbuf; in main() 126 if (statfs(path, &stfsbuf) < 0) in main()
|
| /freebsd-12.1/cddl/compat/opensolaris/misc/ |
| H A D | mnttab.c | 95 statfs2mnttab(struct statfs *sfs, struct mnttab *mp) in statfs2mnttab() 130 static struct statfs *gsfs = NULL; 136 struct statfs *sfs; in statfs_init() 169 struct statfs *sfs; in getmntany() 198 struct statfs *sfs; in getmntent()
|
| /freebsd-12.1/sys/i386/ibcs2/ |
| H A D | ibcs2_stat.c | 60 static int cvt_statfs(struct statfs *, caddr_t, int); 86 struct statfs *sp; in cvt_statfs() 114 struct statfs *sf; 119 sf = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); 133 struct statfs *sf; 136 sf = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK);
|
| /freebsd-12.1/sbin/mount/ |
| H A D | mount.c | 80 struct statfs *getmntpt(const char *); 82 int ismounted(struct fstab *, struct statfs *, int); 89 void prmount(struct statfs *); 90 void putfsent(struct statfs *); 262 struct statfs *mntbuf; in main() 573 struct statfs sf; in mountfs() 646 if (statfs(name, &sf) < 0) { in mountfs() 660 prmount(struct statfs *sfp) in prmount() 705 struct statfs * 708 struct statfs *mntbuf; in getmntpt() [all …]
|
| /freebsd-12.1/contrib/amd/conf/mtab/ |
| H A D | mtab_bsd.c | 53 #define statfs statvfs macro 57 mnt_dup(struct statfs *mp) in mnt_dup() 111 struct statfs *mntbufp, *mntp; in read_mtab()
|
| /freebsd-12.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-12.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-12.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-12.1/sys/compat/linux/ |
| H A D | linux_stats.c | 372 bsd_to_linux_statfs(struct statfs *bsd_statfs, struct l_statfs *linux_statfs) in bsd_to_linux_statfs() 408 struct statfs *bsd_statfs; in linux_statfs() 415 if (ldebug(statfs)) in linux_statfs() 416 printf(ARGS(statfs, "%s, *"), path); in linux_statfs() 418 bsd_statfs = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); in linux_statfs() 453 struct statfs *bsd_statfs; in linux_statfs64() 466 bsd_statfs = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); in linux_statfs64() 481 struct statfs *bsd_statfs; in linux_fstatfs64() 491 bsd_statfs = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); in linux_fstatfs64() 506 struct statfs *bsd_statfs; in linux_fstatfs() [all …]
|
| /freebsd-12.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-12.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-12.1/lib/libc/sys/ |
| H A D | statfs.c | 39 statfs(const char *path, struct statfs *buf) in statfs() function
|
| H A D | getfsstat.c | 41 getfsstat(struct statfs *buf, long bufsize, int flags) in getfsstat() 51 (bufsize / sizeof(struct statfs)); /* overflow on translation. */ in getfsstat()
|
| /freebsd-12.1/sys/sys/ |
| H A D | mount.h | 73 struct statfs { struct 207 struct statfs mnt_stat; /* cache of filesystem stats */ 653 typedef int vfs_statfs_t(struct mount *mp, struct statfs *sbp); 886 void statfs_scale_blocks(struct statfs *sf, long max_size); 982 int fhstatfs(const struct fhandle *, struct statfs *); 983 int fstatfs(int, struct statfs *); 986 int getfsstat(struct statfs *, long, int); 987 int getmntinfo(struct statfs **, int); 991 int statfs(const char *, struct statfs *);
|
| /freebsd-12.1/contrib/amd/conf/checkmount/ |
| H A D | checkmount_bsd44.c | 45 #define statfs statvfs macro 54 struct statfs *mntbufp, *mntp; in fixmount_check_mount()
|
| /freebsd-12.1/lib/libc/include/ |
| H A D | libc_private.h | 318 struct statfs; 338 int __sys_fstatfs(int fd, struct statfs *); 344 int __sys_getfsstat(struct statfs *, long, int); 383 int __sys_statfs(const char *, struct statfs *);
|
| /freebsd-12.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()
|