Date: Fri, 15 Apr 2016 17:45:51 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 194279] teach dumpsys / savecore to use dumpdev's sectorsize Message-ID: <bug-194279-8-FaXmbrxhAP@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-194279-8@https.bugs.freebsd.org/bugzilla/> References: <bug-194279-8@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=3D194279 --- Comment #2 from commit-hook@freebsd.org --- A commit references this bug: Author: cem Date: Fri Apr 15 17:45:12 UTC 2016 New revision: 298076 URL: https://svnweb.freebsd.org/changeset/base/298076 Log: Add 4Kn kernel dump support (And 4Kn minidump support, but only for amd64.) Make sure all I/O to the dump device is of the native sector size. To that end, we keep a native sector sized buffer associated with dump devices (di->blockbuf) and use it to pad smaller objects as needed (e.g. kerneldumpheader). Add dump_write_pad() as a convenience API to dump smaller objects with zero padding. (Rather than pull in NPM leftpad, we wrote our own.) Savecore(1) has been updated to deal with these dumps. The format for 512-byte sector dumps should remain backwards compatible. Minidumps for other architectures are left as an exercise for the reader. PR: 194279 Submitted by: ambrisko@ Reviewed by: cem (earlier version), rpokala Tested by: rpokala (4Kn/512 except 512 fulldump), cem (512 fulldump) Relnotes: yes Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D5848 Changes: head/sbin/savecore/savecore.c head/sys/amd64/amd64/minidump_machdep.c head/sys/kern/kern_dump.c head/sys/kern/kern_shutdown.c head/sys/sys/conf.h --=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-194279-8-FaXmbrxhAP>