From: Eric Biggers Date: Thu, 26 Dec 2013 23:32:45 +0000 (-0600) Subject: write.c: Do not raw-copy packed resources X-Git-Tag: v1.6.0~88 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=6c7b1783191ffe324953aad63735843feda9f901 write.c: Do not raw-copy packed resources --- diff --git a/src/write.c b/src/write.c index d2bc3734..3895088e 100644 --- a/src/write.c +++ b/src/write.c @@ -176,6 +176,9 @@ can_raw_copy(const struct wim_lookup_table_entry *lte, rspec->wim->chunk_size == out_chunk_size); } + /* XXX: For compatibility, we can't allow multiple packed resources per + * WIM. */ +#if 0 if ((rspec->flags & WIM_RESHDR_FLAG_PACKED_STREAMS) && (write_resource_flags & WRITE_RESOURCE_FLAG_PACK_STREAMS)) { @@ -198,6 +201,8 @@ can_raw_copy(const struct wim_lookup_table_entry *lte, return (write_size > rspec->uncompressed_size / 2); } +#endif + return false; }