statvfs
int statvfs(const char *path, struct statvfs *buffer);
int fstatvfs(int descriptor, struct statvfs *buffer);
int (*statfs) (const char *, struct statvfs *);
int fuse_fs_statfs(struct fuse_fs *fs, const char *path, struct statvfs *buf);
int (*statfs) (const char *, struct statvfs *);
int fuse_reply_statfs(fuse_req_t req, const struct statvfs *stbuf);
fuse_ll_statfs(const fuse_lowlevel_ops* ops, fuse_ino_t inode, struct statvfs* stat)
fuse_reply_statfs(fuse_req_t req, const struct statvfs* stat)
struct statvfs* fReplyStat;
int fuse_ll_statfs(const fuse_lowlevel_ops* ops, fuse_ino_t inode, struct statvfs* stat);
struct statvfs st;
fuse_fs_statfs(struct fuse_fs* fs, const char* path, struct statvfs* buf)
fill_statvfs(dev_t device, struct statvfs *statvfs)
statvfs->f_frsize = statvfs->f_bsize = info.block_size;
statvfs->f_blocks = info.total_blocks;
statvfs->f_bavail = statvfs->f_bfree = info.free_blocks;
statvfs->f_files = info.total_nodes;
statvfs->f_favail = statvfs->f_ffree = info.free_nodes;
statvfs->f_fsid = device;
statvfs->f_flag = info.flags & B_FS_IS_READONLY ? ST_RDONLY : 0;
statvfs->f_namemax = B_FILE_NAME_LENGTH;
statvfs(const char *path, struct statvfs *statvfs)
return fill_statvfs(device, statvfs);
fstatvfs(int fd, struct statvfs *statvfs)
return fill_statvfs(stat.st_dev, statvfs);
__pathconf_common(struct statvfs *fs, struct stat *st,
struct statvfs fs;
struct statvfs fs;
ret = statvfs(path, &fs);
struct statvfs *sfs)