static int fuse_statfs(const char *path, struct statvfs *stat) { struct afp_volume * volume= (struct afp_volume *) ((struct fuse_context *)(fuse_get_context()))->private_data; int ret; struct afp_volume_stats astats; ret=ml_statfs(volume,path,&astats); if (astats.blocksize==0) astats.blocksize=4096; stat->f_bsize=astats.blocksize; stat->f_blocks=astats.bytestotal/astats.blocksize; stat->f_bfree=astats.bytesfree/astats.blocksize; stat->f_bavail=astats.bytesfree / astats.blocksize; stat->f_files=0; stat->f_ffree=0; stat->f_fsid=0; stat->f_namemax=AFP_MAX_PATH; stat->f_frsize=astats.blocksize; stat->f_frsize=0; stat->f_favail=0; stat->f_flag=0; return ret; }
static int fuse_statfs(const char *path, struct statvfs *stat) { struct afp_volume * volume= (struct afp_volume *) ((struct fuse_context *)(fuse_get_context()))->private_data; int ret; ret=ml_statfs(volume,path,stat); return ret; }