[Bug 289690] dynamic_gang_header is not supported by current loader
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 289690] dynamic_gang_header is not sported by current loader"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 06 Nov 2025 16:03:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289690
--- Comment #4 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=4d6801a6b5bdd4d055a00484a743cb4ada659669
commit 4d6801a6b5bdd4d055a00484a743cb4ada659669
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-11-06 16:00:50 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-11-06 16:02:33 +0000
stand: Teach the zfs loader about dynamic gang headers
There is a pool feature, dynamic_gang_header, that is enabled by default
in new pools. When this feature is active, gang headers may be larger
than 512 bytes. The loader needs to be taught to cope with that.
Try using the vdev ashift to pick the gang block header size. If the
checksum fails, fall back to the old gang block header size.
This is based on a patch by Paul Dagnelie, with testing, bug-fixing and
some simplifications from me.
PR: 289690
Co-authored by: Paul Dagnelie <paul.dagnelie@klarasystems.com>
Reviewed by: imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D53578
stand/libsa/zfs/zfsimpl.c | 67 ++++++++++++++++++++++++++++++++++++---------
sys/cddl/boot/zfs/zfsimpl.h | 15 ++--------
2 files changed, 56 insertions(+), 26 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.