Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154429399
D23765.id68563.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
551 B
Referenced Files
None
Subscribers
None
D23765.id68563.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D23765: clamp kernel dump compression level when using gzip
Attached
Detach File
Event Timeline
Log In to Comment