statvfs
struct statvfs statvfsbuf, *mntvbuf;
statvfs(mntpt, &statvfsbuf) == 0) {
if (statvfs(mntpt, &statvfsbuf) < 0) {
struct statvfs *mntvbuf;
regetmntinfo(struct statfs **mntbufp, struct statvfs **mntvbufp, long mntsize, char **vfslist)
struct statvfs *mntvbuf;
statvfs(mntbuf[i].f_mntonname,&mntvbuf[j]);
prthuman(struct statvfs *vsfsp, int64_t used)
prtstat(struct statfs *sfsp, struct statvfs *vsfsp, struct maxwidths *mwp)
update_maxwidths(struct maxwidths *mwp, struct statfs *sfsp, struct statvfs *vsfsp)
static void prthuman(struct statvfs *, int64_t);
static void prtstat(struct statfs *, struct statvfs *, struct maxwidths *);
static long regetmntinfo(struct statfs **, struct statvfs **, long, char **);
static void update_maxwidths(struct maxwidths *, struct statfs *, struct statvfs *);
struct statvfs st;
if (statvfs(path, &st) != 0)
struct statvfs st;
send_statvfs(u_int32_t id, struct statvfs *st)
getmntvinfo(struct statfs **mntbufp, struct statvfs **mntvbufp, int flags)
static struct statvfs *mntvbuf;
while (vbufsize <= mntsize * (int)sizeof(struct statvfs)) {
vbufsize = (mntsize + 1) * sizeof(struct statvfs);
if ((mntvbuf = (struct statvfs *)malloc(vbufsize)) == NULL)
struct statvfs;
struct statvfs *mntvbuf = NULL;
vfs_stdstatvfs(struct mount *mp, struct statvfs *sbp, struct ucred *cred)
kern_statvfs(struct nlookupdata *nd, struct statvfs *buf)
struct statvfs *sp;
struct statvfs buf;
kern_fstatvfs(int fd, struct statvfs *buf)
struct statvfs *sp;
struct statvfs buf;
struct statvfs *vsfsp;
info.maxcount = uap->vbufsize / sizeof(struct statvfs);
struct statvfs *vsp;
struct statvfs *sp;
vfs_statvfs(struct mount *mp, struct statvfs *sbp, struct ucred *cred)
int kern_fstatvfs(int fd, struct statvfs *buf);
int kern_statvfs(struct nlookupdata *nd, struct statvfs *buf);
struct statvfs;
struct statvfs mnt_vstat; /* extended stats */
typedef int vfs_statvfs_t(struct mount *mp, struct statvfs *sbp,
int vfs_statvfs(struct mount *mp, struct statvfs *sbp, struct ucred *cred);
struct statvfs;
int getmntvinfo (struct statfs **, struct statvfs **, int);
int fstatvfs(int, struct statvfs *);
int statvfs(const char * __restrict, struct statvfs * __restrict);
int fhstatvfs(const struct fhandle *, struct statvfs * __restrict);
int getvfsstat(struct statfs * __restrict, struct statvfs * __restrict, long, int);
struct statvfs * buf; char buf_[PAD_(struct statvfs *)];
struct statvfs * buf; char buf_[PAD_(struct statvfs *)];
struct statvfs * buf; char buf_[PAD_(struct statvfs *)];
struct statvfs * vbuf; char vbuf_[PAD_(struct statvfs *)];
struct statvfs_args statvfs;
autofs_statvfs(struct mount *mp, struct statvfs *sbp, struct ucred *cred)
dirfs_statvfs(struct mount *mp, struct statvfs *sbp, struct ucred *cred)
struct statvfs st;
if ((statvfs(dmp->dm_path, &st)) == -1)
ext2_statvfs(struct mount *mp, struct statvfs *sbp, struct ucred *cred)
fuse_statvfs(struct mount *mp, struct statvfs *sbp, struct ucred *cred)
hammer_vfs_statvfs(struct mount *mp, struct statvfs *sbp, struct ucred *cred)
static int hammer_vfs_statvfs(struct mount *mp, struct statvfs *sbp,
static int hammer2_vfs_statvfs(struct mount *mp, struct statvfs *sbp,
hammer2_vfs_statvfs(struct mount *mp, struct statvfs *sbp, struct ucred *cred)
struct statvfs tmp;
msdosfs_statvfs(struct mount *mp, struct statvfs *sbp, struct ucred *cred)
static int nfs_statvfs(struct mount *mp, struct statvfs *sbp,
nfs_statvfs(struct mount *mp, struct statvfs *sbp, struct ucred *cred)
ntfs_statvfs(struct mount *mp, struct statvfs *sbp, struct ucred *cred)
static int ntfs_statvfs (struct mount *, struct statvfs *,
struct statvfs buf;
if (statvfs(path, &buf) < 0)
struct statvfs buf;
if (statvfs(path, &buf) < 0)
struct statvfs sfs;
struct statvfs mnt_vstat;
hammer2_vfs_statvfs(struct mount *mp, struct statvfs *sbp, struct ucred *cred)
struct statvfs tmp;
static int hammer2_vfs_statvfs(struct mount *mp, struct statvfs *sbp,