From 6c7b1783191ffe324953aad63735843feda9f901 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 26 Dec 2013 17:32:45 -0600 Subject: [PATCH] write.c: Do not raw-copy packed resources --- src/write.c | 5 +++++ 1 file changed, 5 insertions(+) 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; } -- 2.43.0