-tally_image_refcnts(WIMStruct *wim)
-{
- const struct wim_image_metadata *imd;
- const struct wim_inode *inode;
-
- imd = wim_get_current_image_metadata(wim);
- image_for_each_inode(inode, imd)
- tally_inode_refcnts(inode, wim->lookup_table);
- return 0;
-}
-
-
-/* Ideally this would be unnecessary... however, the WIMs for Windows 8 are
- * screwed up because some lookup table entries are referenced more times than
- * their stated reference counts. So theoretically, if we delete all the
- * references to a stream and then remove it, it might still be referenced
- * somewhere else, making a file be missing from the WIM... So, work around this
- * problem by looking at ALL the images to re-calculate the reference count of
- * EVERY lookup table entry. This only absolutely has to be done before an image
- * is deleted or before an image is mounted read-write. */
-int
-wim_recalculate_refcnts(WIMStruct *wim)