statfs
mntbuf = calloc(argc, sizeof(struct statfs));
if (!statfs(mntpt, &mntbuf[mntsize]))
struct statfs *mntbuf;
regetmntinfo(struct statfs **mntbufp, long mntsize)
struct statfs *mntbuf;
(void)statfs(mntbuf[i].f_mntonname, &mntbuf[j]);
prthuman(struct statfs *sfsp, unsigned long long used)
prtstat(struct statfs *sfsp, int maxwidth, int headerlen, int blocksize)
bsdprint(struct statfs *mntbuf, long mntsize, int maxwidth)
posixprint(struct statfs *mntbuf, long mntsize, int maxwidth)
struct statfs *sfsp;
raw_df(char *file, struct statfs *sfsp)
static void bsdprint(struct statfs *, long, int);
static void posixprint(struct statfs *, long, int);
static void prthuman(struct statfs *sfsp, unsigned long long);
static void prtstat(struct statfs *, int, int, int);
static long regetmntinfo(struct statfs **, long);
extern int e2fs_df(int, char *, struct statfs *);
extern int ffs_df(int, char *, struct statfs *);
static int raw_df(char *, struct statfs *);
struct statfs *mntbuf;
int e2fs_df(int, char *, struct statfs *);
e2fs_df(int rfd, char *file, struct statfs *sfsp)
int ffs_df(int, char *, struct statfs *);
ffs_df(int rfd, char *file, struct statfs *sfsp)
struct statfs sfs;
if (!statfs(path, &sfs) && !strcmp(path, sfs.f_mntonname)) {
struct statfs fsb;
getmntinfo(struct statfs **mntbufp, int flags)
static struct statfs *mntbuf;
while (bufsize <= mntsize * sizeof(struct statfs)) {
bufsize = (mntsize + 1) * sizeof(struct statfs);
cvt_statfs_to_statvfs(const struct statfs *fsp, struct statvfs *vfsp)
struct statfs sb;
struct statfs sb;
ret = statfs(path, &sb);
PROTO_NORMAL(statfs);
struct statfs stfs;
HX(statfs(".", &stfs) == -1, stfs);
HX(statfs("/", &stfs) == -1, stfs);
struct statfs stfs;
HX(statfs(".", &stfs) == -1, stfs);
HX(statfs("/", &stfs) == -1, stfs);
int (*statfs)(const char *, struct statvfs *);
void (*statfs)(fuse_req_t, fuse_ino_t);
CHECK_OPT(statfs);
err = f->op.statfs(realname, &stbuf);
.statfs = ifuse_ops_statfs,
if (se->llops.statfs)
se->llops.statfs(req, fbuf->fb_ino);
struct statfs *mntbuf, *mnt;
if (!statfs(badbuf, goodbuf) || errno != EFAULT)
if (!statfs(path, goodbuf) || errno != ENAMETOOLONG)
if (statfs("/", goodbuf))
if (!statfs("/", 0) || errno != EFAULT)
if (!statfs("/", badbuf) || errno != EFAULT)
if (statfs("/", goodbuf))
if (!statfs(0, goodbuf) || errno != EFAULT)
struct statfs sb;
UV_SHOULD_SUCCEED((statfs("/home", &sb) == -1), "statfs");
UV_SHOULD_SUCCEED((statfs("/", &sb) == -1), "statfs");
UV_SHOULD_SUCCEED((statfs(uv_file1, &sb) == -1), "statfs");
UV_SHOULD_SUCCEED((statfs(uv_file2, &sb) == -1), "statfs");
UV_SHOULD_SUCCEED((statfs(uv_dir1, &sb) == -1), "statfs");
UV_SHOULD_SUCCEED((statfs(uv_dir2, &sb) == -1), "statfs");
UV_SHOULD_SUCCEED((statfs(uv_file1, &sb) == -1), "statfs");
UV_SHOULD_SUCCEED((statfs(uv_file2, &sb) == -1), "statfs");
UV_SHOULD_SUCCEED((statfs(uv_dir1, &sb) == -1), "statfs");
UV_SHOULD_SUCCEED((statfs(uv_dir2, &sb) == -1), "statfs");
struct statfs fsbuf;
if (statfs(argv[i], &fsbuf) == -1) {
if (!statfs(disk, &fsbuf) && !strcmp(fsbuf.f_mntonname, disk)) {
struct statfs stfs_buf;
if (statfs("/", &stfs_buf) == 0) {
struct statfs stfs_buf;
if (statfs("/", &stfs_buf) == 0) {
struct statfs *mntbuf;
struct statfs sf;
if (statfs(name, &sf) == -1) {
if (statfs(name, &sf) == -1) {
prmount(struct statfs *sf)
struct statfs *
struct statfs *mntbuf;
struct statfs
void prmount(struct statfs *);
struct statfs fsb, *ofsp, *fsp;
statfs(cp, &fsb) >= 0) {
struct statfs sfb;
if (statfs(req->er_path, &sfb) == -1) {
if (statfs(path, &sfb) == -1) {
struct statfs fsb;
statfs(dirpath, &fsb) == -1) {
struct statfs *mp;
struct statfs sf;
if (statfs(node, &sf) == -1)
struct statfs fs;
if (statfs(tmp, &fs) != 0)
if (statfs(mnt, &fs) != 0)
struct statfs *mp;
struct statfs sfs;
struct statfs *mp;
struct statfs fsbuf;
struct statfs *fs;
struct statfs *mntbuf;
struct statfs statfsbuf;
int cd9660_statfs(struct mount *, struct statfs *, struct proc *);
cd9660_statfs(struct mount *mp, struct statfs *sbp, struct proc *p)
int udf_statfs(struct mount *, struct statfs *, struct proc *);
udf_statfs(struct mount *mp, struct statfs *sbp, struct proc *p)
struct statfs sb;
copy_statfs_info(struct statfs *sbp, const struct mount *mp)
const struct statfs *mbp;
syscallarg(struct statfs *) buf;
struct statfs *sp;
copyout_statfs(struct statfs *sp, void *uaddr, struct proc *p)
size_t co_sz1 = offsetof(struct statfs, f_fsid);
size_t co_sz2 = sizeof(struct statfs) - co_off2;
syscallarg(struct statfs *) buf;
struct statfs *sp;
syscallarg(struct statfs *) buf;
struct statfs *sp;
syscallarg(struct statfs *) buf;
struct statfs *sp;
struct statfs *sfsp;
maxcount = SCARG(uap, bufsize) / sizeof(struct statfs);
int copyout_statfs(struct statfs *, void *, struct proc *);
fusefs_statfs(struct mount *mp, struct statfs *sbp, struct proc *p)
int fusefs_statfs(struct mount *, struct statfs *, struct proc *);
msdosfs_statfs(struct mount *mp, struct statfs *sbp, struct proc *p)
int msdosfs_statfs(struct mount *, struct statfs *, struct proc *);
int msdosfs_statfs(struct mount *, struct statfs *, struct proc *);
struct statfs *sf;
struct statfs statfs;
sf = &statfs;
nfs_statfs(struct mount *mp, struct statfs *sbp, struct proc *p)
int nfs_statfs(struct mount *, struct statfs *, struct proc *);
ntfs_statfs(struct mount *mp, struct statfs *sbp, struct proc *p)
int ntfs_statfs(struct mount *, struct statfs *,
struct statfs mnt_stat; /* cache of filesystem stats */
int (*vfs_statfs)(struct mount *mp, struct statfs *sbp,
int fstatfs(int, struct statfs *);
int getfsstat(struct statfs *, size_t, int);
int getmntinfo(struct statfs **, int);
int statfs(const char *, struct statfs *);
int fhstatfs(const fhandle_t *, struct statfs *);
syscallarg(struct statfs *) buf;
syscallarg(struct statfs *) buf;
syscallarg(struct statfs *) buf;
syscallarg(struct statfs *) buf;
struct statfs;
void copy_statfs_info(struct statfs *, const struct mount *);
tmpfs_statfs(struct mount *mp, struct statfs *sbp, struct proc *p)
int tmpfs_statfs(struct mount *, struct statfs *, struct proc *);
int ext2fs_statfs(struct mount *, struct statfs *, struct proc *);
struct statfs;
ext2fs_statfs(struct mount *mp, struct statfs *sbp, struct proc *p)
int ffs_statfs(struct mount *, struct statfs *, struct proc *);
struct statfs;
ffs_statfs(struct mount *mp, struct statfs *sbp, struct proc *p)
struct statfs;
struct statfs sb;
if (statfs(entry->fts_accpath, &sb))
static struct statfs *mntbuf;
struct statfs *fst;
getufsquota(struct statfs *fst, struct fstab *fs, struct quotause *qup,
getnfsquota(struct statfs *fst, struct fstab *fs, struct quotause *qup,
int getnfsquota(struct statfs *, struct fstab *, struct quotause *,
int getufsquota(struct statfs *, struct fstab *, struct quotause *,
static struct statfs *mnt = NULL;
size *= sizeof(struct statfs);
struct statfs statfsbuf;
r = statfs(mntpt, &statfsbuf);
struct statfs *mntbufp, *mntp;
mnt_dup(struct statfs *mp)
struct statfs sf;
if (statfs(dst, &sf) || sf.f_blocks < 2048) {
struct statfs sf;
if (statfs(dst, &sf) || sf.f_blocks < 2048) {
struct statfs fssb;
struct statfs st;
if (statfs(LP_SD(lp), &st) == -1)
struct statfs sfb;
if (statfs(".", &sfb) < 0) {
struct statfs *mp;
struct statfs fsbuf;
if (statfs(fs->fs_file, &fsbuf) < 0 ||
struct statfs buf;
if (statfs(PATH_QUEUE, &buf) == -1) {