[Bug 252554] dumpon doesn't work with -z or -Z options?

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jan 10 19:11:59 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252554

--- Comment #4 from Ed Maste <emaste at freebsd.org> ---
Something like (completely untested):

+       if (error == EINVAL && netdump && (gzip || zstd)) {
+               /* Retry w/o 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;
+               }
+       }

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list