Struct nix::sys::statvfs::vfs::Statvfs
[−]
[src]
pub struct Statvfs {
pub f_bsize: c_ulong,
pub f_frsize: c_ulong,
pub f_blocks: u64,
pub f_bfree: u64,
pub f_bavail: u64,
pub f_files: u64,
pub f_ffree: u64,
pub f_favail: u64,
pub f_fsid: c_ulong,
pub f_flag: FsFlags,
pub f_namemax: c_ulong,
// some fields omitted
}The posix statvfs struct
Fields
f_bsize | Filesystem block size. This is the value that will lead to most efficient use of the filesystem |
f_frsize | Fragment Size -- actual minimum unit of allocation on this filesystem |
f_blocks | Total number of blocks on the filesystem |
f_bfree | Number of unused blocks on the filesystem, including those reserved for root |
f_bavail | Number of blocks available to non-root users |
f_files | Total number of inodes available on the filesystem |
f_ffree | Number of inodes available on the filesystem |
f_favail | Number of inodes available to non-root users |
f_fsid | File System ID |
f_flag | Mount Flags |
f_namemax | Maximum filename length |
Methods
impl Statvfs
fn for_path<P: ?Sized + NixPath>(path: &P) -> Result<Statvfs>
Create a new Statvfs object and fill it with information about
the mount that contains path
fn update_with_path<P: ?Sized + NixPath>(&mut self, path: &P) -> Result<()>
Replace information in this struct with information about path
fn for_fd<T: AsRawFd>(fd: &T) -> Result<Statvfs>
Create a new Statvfs object and fill it with information from fd
fn update_with_fd<T: AsRawFd>(&mut self, fd: &T) -> Result<()>
Replace information in this struct with information about fd