Date: Sun, 10 Jan 2021 19:11:59 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 252554] dumpon doesn't work with -z or -Z options? Message-ID: <bug-252554-227-TrcUdtVynZ@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-252554-227@https.bugs.freebsd.org/bugzilla/> References: <bug-252554-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252554 --- Comment #4 from Ed Maste <emaste@freebsd.org> --- Something like (completely untested): + if (error =3D=3D EINVAL && netdump && (gzip || zstd)) { + /* Retry w/o compression in case kernel lacks support. */ + kdap->kda_compression =3D KERNELDUMP_COMP_NONE; + error =3D ioctl(fd, DIOCSKERNELDUMP, kdap); + if (error =3D=3D 0) { + warnx("Compression disabled; kernel may lack gzip o= r " + "zstd support."); + } else { + error =3D errno; + } + } --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252554-227-TrcUdtVynZ>