X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Flookup_table.c;h=302b1750ece3335c0dfda989c036efeb552e7d38;hp=9109c481771fa1166e85220d53dc442fef3e6ca4;hb=acfc301115f69877a634f3141908747a54f678a0;hpb=2fa590c75e9433779557999870f0c8136157c2b7 diff --git a/src/lookup_table.c b/src/lookup_table.c index 9109c481..302b1750 100644 --- a/src/lookup_table.c +++ b/src/lookup_table.c @@ -75,8 +75,10 @@ new_lookup_table_entry(void) lte = CALLOC(1, sizeof(struct wim_lookup_table_entry)); if (lte) { - lte->part_number = 1; - lte->refcnt = 1; + lte->part_number = 1; + lte->refcnt = 1; + BUILD_BUG_ON(RESOURCE_NONEXISTENT != 0); + BUILD_BUG_ON(WIMLIB_COMPRESSION_TYPE_NONE != 0); } else { ERROR("Out of memory (tried to allocate %zu bytes for " "lookup table entry)", @@ -334,6 +336,9 @@ cmp_streams_by_sequential_order(const void *p1, const void *p2) return 1; return 0; case RESOURCE_IN_FILE_ON_DISK: +#ifdef WITH_FUSE + case RESOURCE_IN_STAGING_FILE: +#endif #ifdef __WIN32__ case RESOURCE_WIN32_ENCRYPTED: #endif @@ -711,11 +716,13 @@ write_wim_lookup_table_from_stream_list(struct list_head *stream_list, WIM_RESHDR_FLAG_METADATA, out_fd, WIMLIB_COMPRESSION_TYPE_NONE, + 0, out_res_entry, NULL, write_resource_flags, comp_ctx); FREE(table_buf); + DEBUG("ret=%d", ret); return ret; }