Increment real_refcnt for metadata lte's
authorEric Biggers <ebiggers3@gmail.com>
Sun, 16 Dec 2012 07:46:11 +0000 (01:46 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 16 Dec 2012 07:46:11 +0000 (01:46 -0600)
src/modify.c

index 42de5e92849613da8debf887dc45cacee4fb369a..d5553dc8a2ba1838608f0df89fa2d897724a84fe 100644 (file)
@@ -700,6 +700,8 @@ int wim_run_full_verifications(WIMStruct *w)
        w->full_verification_in_progress = false;
        if (ret == 0) {
                unsigned long num_ltes_with_bogus_refcnt = 0;
+               for (int i = 0; i < w->hdr.image_count; i++)
+                       w->image_metadata[i].metadata_lte->real_refcnt++;
                for_lookup_table_entry(w->lookup_table, lte_fix_refcnt,
                                       &num_ltes_with_bogus_refcnt);
                if (num_ltes_with_bogus_refcnt != 0) {