m.insert("ext3", "noload");
m.insert("ext4", "noload");
+ m.insert("xfs", "norecovery");
+
// ufs2 is used as default since FreeBSD 5.0 released in 2003, so let's assume that
// whatever the user is trying to restore is not using anything older...
m.insert("ufs", "ufstype=ufs2");
}
}
+ info!("Supported FS: {}", supported_fs.join(", "));
+
Ok(Self { supported_fs })
}
_ => bail!("no or invalid image in path"),
};
- let buckets = match self.disk_map.get_mut(req_fidx.as_ref()) {
+ let buckets = match self.disk_map.get_mut(
+ req_fidx
+ .strip_suffix(".img.fidx")
+ .unwrap_or_else(|| req_fidx.as_ref()),
+ ) {
Some(x) => x,
None => bail!("given image '{}' not found", req_fidx),
};