- DEBUG("Writing integrity table "
- "(new_lookup_table_end=%"PRIu64", old_lookup_table_end=%"PRIu64")",
- new_lookup_table_end, old_lookup_table_end);
-
- wimlib_assert(old_lookup_table_end <= new_lookup_table_end);
-
- old_table = NULL;
- if (wim_has_integrity_table(wim) && old_lookup_table_end != 0) {
- ret = read_integrity_table(wim,
- old_lookup_table_end - WIM_HEADER_DISK_SIZE,
- &old_table);
- if (ret == WIMLIB_ERR_INVALID_INTEGRITY_TABLE) {
- WARNING("Old integrity table is invalid! "
- "Ignoring it");
- } else if (ret != 0) {
- WARNING("Can't read old integrity table! "
- "Ignoring it");
- }
- }