From: Darrick J. Wong <djwong@xxxxxxxxxx> When the rtgroups feature is enabled, format rtsummary blocks with the appropriate block headers. Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx> --- mkfs/proto.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mkfs/proto.c b/mkfs/proto.c index f5b7859f9a9..b89b114d0d6 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); + } } /*