savecore: bail on write error even when decompressingReviewed by: markjSponsored by: Dell EMC IsilonDifferential Revision: https://reviews.freebsd.org/D27560
Add '-u' switch that would uncompress cores that were compressed bykernel during dump time.A real life scenario is that cores are compressed to reducesize of dumpon partition, but we either don't
Add '-u' switch that would uncompress cores that were compressed bykernel during dump time.A real life scenario is that cores are compressed to reducesize of dumpon partition, but we either don't care about spacein the /var/crash or we have a filesystem level compression of/var/crash. And we want cores to be uncompressed in /var/crashbecause we'd like to instantily read them with kgdb. In thiscase we want kernel to write cores compressed, but savecore(1)write them uncompressed.Reviewed by: markj, gallatinRelnotes: yesDifferential Revision: https://reviews.freebsd.org/D27245
show more ...
Style, not functional changes:- Improve spelling of a false check [1]- A missing line from r367150.Submitted by: kib
Convert flags from int to bool. Some (compress) were already used incomparisons with bool values. No functional changes.
savecore: accept device names without the /dev/ prefixdumpon has accepted device names without the prefix ever since r291207.Since dumpon and savecore are always paired, they ought to accept the s
savecore: accept device names without the /dev/ prefixdumpon has accepted device names without the prefix ever since r291207.Since dumpon and savecore are always paired, they ought to accept the samearguments. Prior to this change, specifying 'dumpdev="da3"' in/etc/rc.conf, for example, would result in dumpon working just fine butsavecore complaining that "Dump device does not exist".PR: 247618Reviewed by: cem, bcrMFC after: 2 weeksSponsored by: AxcientDifferential Revision: https://reviews.freebsd.org/D25500
savecore: include time zone in info.N fileThis helps with event correlation when machines are distributedacross multiple time zones.Format the time with relaxed ISO 8601 for all the usual reason
savecore: include time zone in info.N fileThis helps with event correlation when machines are distributedacross multiple time zones.Format the time with relaxed ISO 8601 for all the usual reasons.MFC after: 2 weeksSponsored by: Dell EMC Isilon
Update Makefile.depend filesUpdate a bunch of Makefile.depend files asa result of adding Makefile.depend.options filesReviewed by: bdreweryMFC after: 1 weekSponsored by: Juniper NetworksDi
Update Makefile.depend filesUpdate a bunch of Makefile.depend files asa result of adding Makefile.depend.options filesReviewed by: bdreweryMFC after: 1 weekSponsored by: Juniper NetworksDifferential Revision: https://reviews.freebsd.org/D22494
Add Makefile.depend.optionsLeaf directories that have dependencies impactedby options need a Makefile.depend.options fileto avoid churn in Makefile.dependDIRDEPS for cases such as OPENSSL, TCP_
Add Makefile.depend.optionsLeaf directories that have dependencies impactedby options need a Makefile.depend.options fileto avoid churn in Makefile.dependDIRDEPS for cases such as OPENSSL, TCP_WRAPPERS etccan be set in local.dirdeps-options.mkwhich can add to those set in Makefile.depend.optionsSee share/mk/dirdeps-options.mkReviewed by: bdreweryMFC after: 1 weekSponsored by: Juniper NetworksDifferential Revision: https://reviews.freebsd.org/D22469
cap_fileargs: chase r346315, update fileargs_init in consumersReported by: ci.freebsd.org (8 times so far)MFC after: 3 weeksMFC with: r346315Sponsored by: The FreeBSD Foundation
Disable savecore(8)'s libcasper support when WITHOUT_DYNAMICROOT=yes.This follows the example of other Capsicumized programs in /sbin.Reported by: Manfred Antar <[email protected]>MFC with:
Disable savecore(8)'s libcasper support when WITHOUT_DYNAMICROOT=yes.This follows the example of other Capsicumized programs in /sbin.Reported by: Manfred Antar <[email protected]>MFC with: r342699Sponsored by: The FreeBSD Foundation
Fix an error check after r342699.Reported by: gccMFC with: r342699Sponsored by: The FreeBSD Foundation
Capsicumize savecore(8).- Use cap_fileargs(3) to open dump devices after entering capability mode, and use cap_syslog(3) to log messages.- Use a relative directory fd to open output files.- Use
Capsicumize savecore(8).- Use cap_fileargs(3) to open dump devices after entering capability mode, and use cap_syslog(3) to log messages.- Use a relative directory fd to open output files.- Use zdopen(3) to compress kernel dumps in capability mode.Reviewed by: cem, oshogboMFC after: 2 monthsSponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D18458
Restore /var/crash permissions to 0750, as declared in mtree file. Afterr337337 it changed to 0755.Reviewed by: loosApproved by: loosMFC after: 3 daysSponsored by: Rubicon Communications, LLC (
Restore /var/crash permissions to 0750, as declared in mtree file. Afterr337337 it changed to 0755.Reviewed by: loosApproved by: loosMFC after: 3 daysSponsored by: Rubicon Communications, LLC (Netgate)Differential Revision: https://reviews.freebsd.org/D18355
Move etc/minfree to sbin/savecore/.This is prep for pkgbase to have config files tagged as such.Approved by: will (mentor)Differential Revision: https://reviews.freebsd.org/D16558
The extension for zstd-compressed files is ".zst".Reported by: manu
Bump .Dd after r331113.Reported by: oshogbo@MFC after: 2 weeks
Xr crashinfo(8) from savecore(8).MFC after: 2 weeks
Prevent savecore from reading bounds from the current directory.Rev 244218 removed the requirement that you provide a dumpdirectory when checking if there is a coredump ready to be written.That h
Prevent savecore from reading bounds from the current directory.Rev 244218 removed the requirement that you provide a dumpdirectory when checking if there is a coredump ready to be written.That had the side-effect of causing the bounds file to be readfrom the current working directory instead of the dump directory.As the bounds file is irrelevant when just checking, the simplestfix is to not read the bounds file when checking.Reviewed by: markjMFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D14383
Add support for zstd-compressed user and kernel core dumps.This works similarly to the existing gzip compression support, butzstd is typically faster and gives better compression ratios.Support
Add support for zstd-compressed user and kernel core dumps.This works similarly to the existing gzip compression support, butzstd is typically faster and gives better compression ratios.Support for this functionality must be configured by adding ZSTDIO toone's kernel configuration file. dumpon(8)'s new -Z option is used toconfigure zstd compression for kernel dumps. savecore(8) now recognizesand saves zstd-compressed kernel dumps with a .zst extension.Submitted by: cem (original version)Relnotes: yesSponsored by: Dell EMC IsilonDifferential Revision: https://reviews.freebsd.org/D13101, https://reviews.freebsd.org/D13633
General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier f
General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.Special thanks to Wind River for providing access to "The Duke ofHighlander" tool: an older (2014) run over FreeBSD tree was useful as astarting point.
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
Add support for compressed kernel dumps.When using a kernel built with the GZIO config option, dumpon -z can beused to configure gzip compression using the in-kernel copy of zlib.This is useful o
Add support for compressed kernel dumps.When using a kernel built with the GZIO config option, dumpon -z can beused to configure gzip compression using the in-kernel copy of zlib.This is useful on systems with large amounts of RAM, which require acorrespondingly large dump device. Recovery of compressed dumps is alsofaster since fewer bytes need to be copied from the dump device.Because we have no way of knowing the final size of a compressed dumpuntil it is written, the kernel will always attempt to dump whencompression is configured, regardless of the dump device size. If thedump is aborted because we run out of space, an error is reported onthe console.savecore(8) is modified to handle compressed dumps and save them tovmcore.<index>.gz, as it does when given the -z option.A new rc.conf variable, dumpon_flags, is added. Its value is added tothe boot-time dumpon(8) invocation that occurs when a dump device isconfigured in rc.conf.Reviewed by: cem (earlier version)Discussed with: def, rgrimesRelnotes: yesSponsored by: Dell EMC IsilonDifferential Revision: https://reviews.freebsd.org/D11723
Fix style and wrap lines to 80 columns in savecore.c.No functional change intended.MFC after: 3 days
Revert r320918 and have mkdumpheader() handle version string truncation.Reported by: jhbMFC after: 1 week
Add a newline after the version string.MFC after: 3 days
1234567