Retain offset compatibility with pre-12.0 dumps
As a follow-up to r324965, which adds support for compressed kernel dumps, readjust dump header members slightly to mostly preserve ABI with earlier (11.x and older) dumps. Reviewed by: markj X-MFC-With: r324965 Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D15829
This commit is contained in:
parent
6f3fcd7693
commit
e6e49c7df4
@ -81,8 +81,8 @@ struct kerneldumpheader {
|
||||
#define KERNELDUMPMAGIC_CLEARED "Cleared Kernel Dump"
|
||||
char architecture[12];
|
||||
uint32_t version;
|
||||
#define KERNELDUMPVERSION 3
|
||||
#define KERNELDUMP_TEXT_VERSION 3
|
||||
#define KERNELDUMPVERSION 4
|
||||
#define KERNELDUMP_TEXT_VERSION 4
|
||||
uint32_t architectureversion;
|
||||
#define KERNELDUMP_AARCH64_VERSION 1
|
||||
#define KERNELDUMP_AMD64_VERSION 2
|
||||
@ -93,14 +93,15 @@ struct kerneldumpheader {
|
||||
#define KERNELDUMP_RISCV_VERSION 1
|
||||
#define KERNELDUMP_SPARC64_VERSION 1
|
||||
uint64_t dumplength; /* excl headers */
|
||||
uint64_t dumpextent;
|
||||
uint64_t dumptime;
|
||||
uint32_t dumpkeysize;
|
||||
uint32_t blocksize;
|
||||
uint8_t compression;
|
||||
char hostname[64];
|
||||
char versionstring[192];
|
||||
char panicstring[179];
|
||||
char panicstring[175];
|
||||
uint8_t compression;
|
||||
uint64_t dumpextent;
|
||||
char unused[4];
|
||||
uint32_t parity;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user