From: Darrick J. Wong Date: Mon, 19 Sep 2022 18:40:52 +0000 (-0700) Subject: mkfs: add headers to realtime summary blocks X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b228bdf41676d2adf9401a324c376646c746e90b;p=users%2Fhch%2Fxfsprogs.git mkfs: add headers to realtime summary blocks When the rtgroups feature is enabled, format rtsummary blocks with the appropriate block headers. Signed-off-by: Darrick J. Wong --- diff --git a/mkfs/proto.c b/mkfs/proto.c index f5b7859f9..b89b114d0 100644 --- a/mkfs/proto.c +++ b/mkfs/proto.c @@ -991,6 +991,14 @@ rtsummary_init( if (error) fail(_("Block allocation of the realtime summary inode failed"), error); + + if (xfs_has_rtgroups(mp)) { + error = init_rtblock_headers(mp->m_rsumip, + XFS_B_TO_FSB(mp, mp->m_rsumsize), + &xfs_rtsummary_buf_ops, XFS_RTSUMMARY_MAGIC); + if (error) + fail(_("Initialization of rtsummary failed"), error); + } } /*