Page MenuHomeFreeBSD

D23765.id68563.diff
No OneTemporary

D23765.id68563.diff

Index: sys/kern/subr_compressor.c
===================================================================
--- sys/kern/subr_compressor.c
+++ sys/kern/subr_compressor.c
@@ -117,6 +117,13 @@
s->gz_stream.next_in = Z_NULL;
s->gz_stream.avail_in = 0;
+ if (level != Z_DEFAULT_COMPRESSION) {
+ if (level < Z_BEST_SPEED)
+ level = Z_BEST_SPEED;
+ else if (level > Z_BEST_COMPRESSION)
+ level = Z_BEST_COMPRESSION;
+ }
+
error = deflateInit2(&s->gz_stream, level, Z_DEFLATED, -MAX_WBITS,
DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY);
if (error != 0)

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 29, 12:10 PM (4 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32347118
Default Alt Text
D23765.id68563.diff (551 B)

Event Timeline