]> wimlib.net Git - wimlib/blobdiff - src/wim.c
Fixes
[wimlib] / src / wim.c
index 4060fa581d4cbf0ebf0146af7f3cd67b5f5667cd..8f579f2ce3f4cc33d75cd7e1ef88263a965814f5 100644 (file)
--- a/src/wim.c
+++ b/src/wim.c
@@ -616,6 +616,24 @@ new_image_metadata_array(unsigned num_images)
        return imd_array;
 }
 
+int
+wim_checksum_unhashed_streams(WIMStruct *w)
+{
+       int ret;
+       for (int i = 0; i < w->hdr.image_count; i++) {
+               struct wim_lookup_table_entry *lte, *tmp;
+               list_for_each_entry_safe(lte, tmp,
+                                        &w->image_metadata[i]->unhashed_streams,
+                                        unhashed_list)
+               {
+                       ret = hash_unhashed_stream(lte, w->lookup_table, NULL);
+                       if (ret)
+                               return ret;
+               }
+       }
+       return 0;
+}
+
 /* Frees the memory for the WIMStruct, including all internal memory; also
  * closes all files associated with the WIMStruct.  */
 WIMLIBAPI void