collect_objects

Function collect_objects 

Source
pub fn collect_objects<ObjectID: FsVerityHashValue>(
    image: &[u8],
) -> Result<HashSet<ObjectID>, ErofsReaderError>
Expand description

Collects all object references from an EROFS image

This function walks the directory tree and extracts fsverity object IDs from overlay.metacopy xattrs for garbage collection purposes.

Returns a set of all referenced object IDs.