statfs
struct statfs statfsb;
if( statfs(name, &statfsb)<0 )
struct statfs *mounts;
struct statfs fs;
if (statfs(dir, &fs, sizeof(fs), 0) == 0)
if (statfs(dir, &fs) > 0)
if (statfs(dir, &fs) == 0)
struct statfs statfs;
Pread(Proc, &statfs, sizeof (statfs), offset) == sizeof (statfs)) {
statfs.f_fstyp,
statfs.f_bsize,
statfs.f_frsize,
statfs.f_blocks,
statfs.f_bfree,
statfs.f_files,
statfs.f_ffree);
statfs.f_fname,
statfs.f_fpack);
struct statfs32 statfs;
Pread(Proc, &statfs, sizeof (statfs), offset) == sizeof (statfs)) {
statfs.f_fstyp,
statfs.f_bsize,
statfs.f_frsize,
statfs.f_blocks,
statfs.f_bfree,
statfs.f_files,
statfs.f_ffree);
statfs.f_fname,
statfs.f_fpack);
int (*statfs)(void *, struct l9p_request *);
static void dostatfs(struct l9p_statfs *, struct statfs *, long);
struct statfs f;
dostatfs(&req->lr_resp.rstatfs.statfs, &f, name_max);
backend->statfs = fs_statfs;
dostatfs(struct l9p_statfs *out, struct statfs *in, long namelen)
struct l9p_statfs statfs;
l9p_pu32(msg, &fcall->rstatfs.statfs.type);
l9p_pu32(msg, &fcall->rstatfs.statfs.bsize);
l9p_pu64(msg, &fcall->rstatfs.statfs.blocks);
l9p_pu64(msg, &fcall->rstatfs.statfs.bfree);
l9p_pu64(msg, &fcall->rstatfs.statfs.bavail);
l9p_pu64(msg, &fcall->rstatfs.statfs.files);
l9p_pu64(msg, &fcall->rstatfs.statfs.ffree);
l9p_pu64(msg, &fcall->rstatfs.statfs.fsid);
r = l9p_pu32(msg, &fcall->rstatfs.statfs.namelen);
error = be->statfs(be->softc, req);
l9p_describe_statfs(" ", &fcall->rstatfs.statfs, sb);
cnvtvfs(struct statfs *buf, struct statvfs *vbuf)
statfs(char *path, struct statfs *buf)
fstatfs(int fd, struct statfs *buf)
int statfs(const char *, struct statfs *, int, int);
int fstatfs(int, struct statfs *, int, int);
if (len < 0 || len > sizeof (struct statfs))