Home
last modified time | relevance | path

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

1234567

/freebsd-14.2/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-14.2/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-14.2/bin/df/
H A Ddf.c78 static void addstat(struct statfs *, struct statfs *);
89 static size_t regetmntinfo(struct statfs **, long);
114 struct statfs statfsbuf, totalbuf; in main()
116 struct statfs *mntbuf; in main()
244 if (statfs(mntpt, &statfsbuf) < 0) { in main()
295 struct statfs *mntbuf; in getmntpt()
383 regetmntinfo(struct statfs **mntbufp, long mntsize) in regetmntinfo()
386 struct statfs *mntbuf; in regetmntinfo()
415 prthuman(const struct statfs *sfsp, int64_t used) in prthuman()
471 prtstat(struct statfs *sfsp, struct maxwidths *mwp) in prtstat()
[all …]
/freebsd-14.2/sbin/umount/
H A Dumount.c102 struct statfs *mntbuf, *sfs; in main()
270 struct statfs sfsbuf; in checkname()
272 struct statfs *sfs; in checkname()
346 umountfs(struct statfs *sfs) in umountfs()
497 struct statfs *
500 static struct statfs *mntbuf; in getmntentry()
503 struct statfs *sfs, *foundsfs; in getmntentry()
604 struct statfs *
607 struct statfs *sfs; in checkmntlist()
621 mntinfo(struct statfs **mntbuf) in mntinfo()
[all …]
/freebsd-14.2/usr.sbin/autofs/
H A Dautomount.c62 unmount_by_statfs(const struct statfs *sb, bool force) in unmount_by_statfs()
87 static const struct statfs *
88 find_statfs(const struct statfs *mntbuf, int nitems, const char *mountpoint) in find_statfs()
145 const char *prefix, const struct statfs *mntbuf, int nitems) in mount_if_not_already()
147 const struct statfs *sb; in mount_if_not_already()
186 struct statfs *mntbuf; in mount_unmount()
264 struct statfs *mntbuf; in flush_caches()
265 struct statfs statbuf; in flush_caches()
286 if (statfs(mntbuf[i].f_mntonname, &statbuf) != 0) { in flush_caches()
303 struct statfs *mntbuf; in unmount_automounted()
/freebsd-14.2/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.c46 getmntinfo(struct statfs **mntbufp, int mode) in getmntinfo()
48 static struct statfs *mntbuf; in getmntinfo()
/freebsd-14.2/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-14.2/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-14.2/tools/regression/security/cap_test/
H A Dcap_test_capmode.c64 struct statfs statfs; in test_capmode() local
95 CHECK_CAPMODE(getfsstat, &statfs, sizeof(statfs), MNT_NOWAIT); in test_capmode()
/freebsd-14.2/contrib/libpcap/lbl/
H A Dos-sunos4.h78 struct statfs;
80 int fstatfs(int, struct statfs *);
165 int statfs(char *, struct statfs *);
/freebsd-14.2/contrib/tcpdump/lbl/
H A Dos-sunos4.h79 struct statfs;
81 int fstatfs(int, struct statfs *);
167 int statfs(char *, struct statfs *);
/freebsd-14.2/lib/libc/sys/
H A Dstatfs.c36 statfs(const char *path, struct statfs *buf) in statfs() function
H A Dgetfsstat.c38 getfsstat(struct statfs *buf, long bufsize, int flags) in getfsstat()
48 (bufsize / sizeof(struct statfs)); /* overflow on translation. */ in getfsstat()
/freebsd-14.2/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-14.2/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-14.2/sys/contrib/openzfs/lib/libspl/os/freebsd/
H A Dgetmntany.c43 struct statfs sfs; in getextmntent()
56 if (statfs(path, &sfs) != 0) { in getextmntent()
/freebsd-14.2/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-14.2/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-14.2/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-14.2/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-14.2/sbin/mount/
H A Dmount.c87 int ismounted(struct fstab *, struct statfs *, int);
95 void prmount(struct statfs *);
96 void putfsent(struct statfs *);
217 struct statfs *mntbuf; in main()
461 ismounted(struct fstab *fs, struct statfs *mntbuf, int mntsize) in ismounted()
552 struct statfs sf; in mountfs()
632 if (statfs(name, &sf) < 0) { in mountfs()
655 prmount(struct statfs *sfp) in prmount()
901 putfsent(struct statfs *ent) in putfsent()
H A Dmntopts.h106 struct statfs *getmntpoint(const char *);
107 int chkdoreload(struct statfs *, void (*)(const char *, ...) __printflike(1,2));
/freebsd-14.2/lib/libc/include/
H A Dlibc_private.h328 struct statfs;
349 int __sys_fstatfs(int fd, struct statfs *);
355 int __sys_getfsstat(struct statfs *, long, int);
397 int __sys_statfs(const char *, struct statfs *);

1234567