pub struct MountStat {
pub device: Option<String>,
pub mount_point: PathBuf,
pub fs: String,
pub statistics: Option<MountNFSStatistics>,
}Expand description
Mount information from /proc/<pid>/mountstats.
Example:
let stats = Process::myself().unwrap().mountstats().unwrap();
for mount in stats {
println!("{} mounted on {} wth type {}",
mount.device.unwrap_or("??".to_owned()),
mount.mount_point.display(),
mount.fs
);
}Fields§
§device: Option<String>The name of the mounted device
mount_point: PathBufThe mountpoint within the filesystem tree
fs: StringThe filesystem type
statistics: Option<MountNFSStatistics>If the mount is NFS, this will contain various NFS statistics