#[repr(transparent)]pub struct Statvfs(_);
Expand description
Wrapper around the POSIX statvfs
struct
For more information see the statvfs(3)
man pages.
Implementations§
source§impl Statvfs
impl Statvfs
sourcepub fn block_size(&self) -> c_ulong
pub fn block_size(&self) -> c_ulong
get the file system block size
sourcepub fn fragment_size(&self) -> c_ulong
pub fn fragment_size(&self) -> c_ulong
Get the fundamental file system block size
sourcepub fn blocks(&self) -> fsblkcnt_t
pub fn blocks(&self) -> fsblkcnt_t
Get the number of blocks.
Units are in units of fragment_size()
sourcepub fn blocks_free(&self) -> fsblkcnt_t
pub fn blocks_free(&self) -> fsblkcnt_t
Get the number of free blocks in the file system
sourcepub fn blocks_available(&self) -> fsblkcnt_t
pub fn blocks_available(&self) -> fsblkcnt_t
Get the number of free blocks for unprivileged users
sourcepub fn files(&self) -> fsfilcnt_t
pub fn files(&self) -> fsfilcnt_t
Get the total number of file inodes
sourcepub fn files_free(&self) -> fsfilcnt_t
pub fn files_free(&self) -> fsfilcnt_t
Get the number of free file inodes
sourcepub fn files_available(&self) -> fsfilcnt_t
pub fn files_available(&self) -> fsfilcnt_t
Get the number of free file inodes for unprivileged users
sourcepub fn filesystem_id(&self) -> c_ulong
pub fn filesystem_id(&self) -> c_ulong
Get the file system id