Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107135375
D34520.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
680 B
Referenced Files
None
Subscribers
None
D34520.diff
View Options
diff --git a/sbin/dumpon/dumpon.c b/sbin/dumpon/dumpon.c
--- a/sbin/dumpon/dumpon.c
+++ b/sbin/dumpon/dumpon.c
@@ -650,6 +650,15 @@
error = ioctl(fd, DIOCSKERNELDUMP, kdap);
if (error != 0)
error = errno;
+ if (error == EINVAL && (gzip || zstd)) {
+ /* Retry without compression in case kernel lacks support. */
+ kdap->kda_compression = KERNELDUMP_COMP_NONE;
+ error = ioctl(fd, DIOCSKERNELDUMP, kdap);
+ if (error == 0)
+ warnx("Compression disabled; kernel may lack gzip or zstd support.");
+ else
+ error = errno;
+ }
explicit_bzero(kdap->kda_encryptedkey, kdap->kda_encryptedkeysize);
free(kdap->kda_encryptedkey);
explicit_bzero(kdap, sizeof(*kdap));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 4:23 PM (19 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15755519
Default Alt Text
D34520.diff (680 B)
Attached To
Mode
D34520: dumpon: proceed without compression if the kernel lacks support
Attached
Detach File
Event Timeline
Log In to Comment