Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151258659
D23765.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
566 B
Referenced Files
None
Subscribers
None
D23765.diff
View Options
Index: head/sys/kern/subr_compressor.c
===================================================================
--- head/sys/kern/subr_compressor.c
+++ head/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 8, 4:12 AM (7 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31074678
Default Alt Text
D23765.diff (566 B)
Attached To
Mode
D23765: clamp kernel dump compression level when using gzip
Attached
Detach File
Event Timeline
Log In to Comment