pub fn info<P: AsRef<Path>>(fs: P, flags: Opt) -> Result<FsInfo>Expand description
Returns an FsInfo struct
The returned FsInfo provieds information about the btrfs filesystem referenced by fs.
The returned FsInfo can be custumized with flags
§Flags
Full list is available flags:
Request information about checksum type and size
Request information about filesystem generation
Request information about filesystem metadata UUID
§Examples
use libbtrfs::{fs, Opt};
let fs_info = fs::info("/", Opt::CSUM_INFO)?;
// will not panic since Opt::CSUM_INFO flag was provieded
let csum_type = fs_info.csum_type();