pub fn filesystem_open_with_cache<R: Read + Seek>(
reader: R,
mirror: u32,
chunk_cache: ChunkTreeCache,
) -> Result<OpenFilesystem<R>>Expand description
Open a btrfs filesystem using a pre-built chunk cache.
Skips the chunk tree walk entirely, using the provided cache for
all logical-to-physical address resolution. This is the entry point
for rescue chunk-recover --apply, where the on-disk chunk tree is
damaged and the cache has been reconstructed from a raw device scan.
The root tree is still read normally (it becomes accessible once the correct chunk mappings are in place).
ยงErrors
Returns an error if the superblock read or root tree walk fails.