X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fwrite.c;h=7d6ee2df826e3b0ac1e3c80df1ea43bceddbaf54;hb=1c3c0358979da71761ac52736e8355c54c7a77f2;hp=7e2ac220ef82a923f4d1b436186a6c836df99aa7;hpb=9899681e667c07db9a286c38fa76f53cfa726b73;p=wimlib diff --git a/src/write.c b/src/write.c index 7e2ac220..7d6ee2df 100644 --- a/src/write.c +++ b/src/write.c @@ -1213,6 +1213,12 @@ write_stream_list(struct list_head *stream_list, * bytes needing to be compressed is less 2000000 (heuristic value). */ if (out_ctype != WIMLIB_COMPRESSION_TYPE_NONE) { + if (out_ctype == WIMLIB_COMPRESSION_TYPE_LZMS && + ctx.lookup_table != NULL) { + WARNING("LZMS compression not implemented; data will " + "actually be written uncompressed."); + } + if (ctx.num_bytes_to_compress >= 2000000) { ret = new_parallel_chunk_compressor(out_ctype, out_chunk_size, @@ -2937,15 +2943,10 @@ can_overwrite_wim_inplace(const WIMStruct *wim, int write_flags) if (wim_is_pipable(wim) || (write_flags & WIMLIB_WRITE_FLAG_PIPABLE)) return false; - if (wim->hdr.wim_version != WIM_VERSION_PACKED_STREAMS) { - if (wim->compression_type != wim->out_compression_type) - return false; - if (wim->chunk_size != wim->out_chunk_size) - return false; - } else { - if (write_flags & WIMLIB_WRITE_FLAG_NO_PACK_STREAMS) - return false; - } + if (wim->compression_type != wim->out_compression_type) + return false; + if (wim->chunk_size != wim->out_chunk_size) + return false; return true; }