Function fiemap::fiemap

source ·
pub fn fiemap<P: AsRef<Path>>(filepath: P) -> Result<Fiemap>
Expand description

Get fiemap for the path and return an iterator of extents

Examples found in repository?
examples/show_extents.rs (line 9)
6
7
8
9
10
11
12
13
14
15
fn main() -> Result<(), Error> {
  for f in args().skip(1) {
    println!("{}:", f);
    for fe in fiemap::fiemap(f)? {
      println!("  {:?}", fe?);
    }
  }

  Ok(())
}