Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jun 2018 19:02:53 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335227 - head/sys/sys
Message-ID:  <201806151902.w5FJ2r1c095857@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Fri Jun 15 19:02:53 2018
New Revision: 335227
URL: https://svnweb.freebsd.org/changeset/base/335227

Log:
  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

Modified:
  head/sys/sys/kerneldump.h

Modified: head/sys/sys/kerneldump.h
==============================================================================
--- head/sys/sys/kerneldump.h	Fri Jun 15 18:55:02 2018	(r335226)
+++ head/sys/sys/kerneldump.h	Fri Jun 15 19:02:53 2018	(r335227)
@@ -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;
 };
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806151902.w5FJ2r1c095857>