composefs_gc

Function composefs_gc 

Source
pub(crate) async fn composefs_gc(
    storage: &Storage,
    booted_cfs: &BootedComposefs,
) -> Result<()>
Expand description
  1. List all bootloader entries
  2. List all EROFS images
  3. List all state directories
  4. List staged depl if any

If bootloader entry B1 doesn’t exist, but EROFS image B1 does exist, then delete the image and perform GC

Similarly if EROFS image B1 doesn’t exist, but state dir does, then delete the state dir and perform GC