Page MenuHomeFreeBSD

savecore: add support for gzip kernel dumps
AbandonedPublic

Authored by markj on Jul 12 2015, 2:19 AM.
Tags
None
Referenced Files
F122456491: D3059.id.diff
Sat, Jul 5, 11:46 AM
F122453104: D3059.id6896.diff
Sat, Jul 5, 11:06 AM
F122437639: D3059.id6869.diff
Sat, Jul 5, 8:33 AM
F122432032: D3059.id.diff
Sat, Jul 5, 7:39 AM
Unknown Object (File)
Thu, Jul 3, 1:15 AM
Unknown Object (File)
Tue, Jul 1, 4:33 AM
Unknown Object (File)
Thu, Jun 19, 1:20 PM
Unknown Object (File)
Thu, Jun 19, 1:19 PM

Details

Reviewers
rstone
Summary

Most of the changes are little touchups:

  • Add a subroutine, compare_magic, for comparing the magic field of a dump header.
  • We now use the dumpextent field of the trailing dump header to locate the leading dump header.
  • DoRegularFile needs to do reads in multiples of the device's sector size, but with compressed dumps we may need to do a read that doesn't end on a sector boundary.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage

Event Timeline

markj retitled this revision from to savecore: add support for gzip kernel dumps.
markj edited the test plan for this revision. (Show Details)
markj added a reviewer: rstone.
markj updated this object.
markj added a subscriber: cem.
sbin/savecore/savecore.c
707

I don't have operator precedence memorized for these ones. Can we add a pair of parentheses around (compress || isgzipdump)?

  • - use parens to make an expression easier to parse
bdrewery added inline comments.
sbin/savecore/savecore.c
563

sizeof()

593

sizeof()