Home
last modified time | relevance | path

Searched refs:statfs (Results 1 – 25 of 168) sorted by relevance

1234567

/freebsd/tests/sys/fs/fusefs/
H A Dstatfs.cc46 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 Dmount.cc53 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 Dstatfs.sh50 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 Ddf.c66 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 Dumount.c80 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 Dautomount.c61 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 Dstatvfs.c40 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 Dgetmntinfo.c44 getmntinfo(struct statfs **mntbufp, int mode) in getmntinfo()
46 static struct statfs *mntbuf; in getmntinfo()
/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-statvfs.c37 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 Dmksnap_ffs.c77 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 Dos-sunos4.h79 struct statfs;
81 int fstatfs(int, struct statfs *);
167 int statfs(char *, struct statfs *);
/freebsd/contrib/libpcap/lbl/
H A Dos-sunos4.h78 struct statfs;
80 int fstatfs(int, struct statfs *);
165 int statfs(char *, struct statfs *);
/freebsd/tools/regression/security/cap_test/
H A Dcap_test_capmode.c63 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 Dhostres_snmp.h66 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 Dgetmntany.c44 struct statfs sfs; in getextmntent()
57 if (statfs(path, &sfs) != 0) { in getextmntent()
/freebsd/usr.sbin/snapinfo/
H A Dsnapinfo.c47 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 Dresources.c59 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 Dmnttab.h75 struct statfs;
81 extern void statfs2mnttab(struct statfs *sfs, struct mnttab *mp);
/freebsd/lib/libc/tests/gen/
H A Dgetmntinfo_test.c40 check_mntinfo(struct statfs *mntinfo, int n) in check_mntinfo()
55 struct statfs *mntinfo; in ATF_TC_BODY()
/freebsd/sys/compat/linux/
H A Dlinux_stats.c348 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 Dmount.c77 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 Dmntopts.h104 struct statfs *getmntpoint(const char *);
105 int chkdoreload(struct statfs *, void (*)(const char *, ...) __printflike(1,2));
/freebsd/tools/diag/prtblknos/
H A Dmain.c50 struct statfs sfb; in main()
61 if (statfs(filename, &sfb) != 0) in main()
/freebsd/sys/sys/
H A Dmount.h81 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 Defivar-dp-xlate.c136 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()

1234567