From eefdf2ab9d30381a1067d71599f8b11d265dd3da Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Mon, 31 Jan 2022 17:27:44 -0500 Subject: [PATCH] libxfs: replace xfs_sb_version checks with feature flag checks Convert the xfs_sb_version_hasfoo() to checks against mp->m_features. Signed-off-by: Darrick J. Wong [sandeen: drop one hunk that wasn't really a conversion] Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- libxfs/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libxfs/init.c b/libxfs/init.c index 875c847ed..6b44a276f 100644 --- a/libxfs/init.c +++ b/libxfs/init.c @@ -435,14 +435,14 @@ rtmount_init( if (mp->m_sb.sb_rblocks == 0) return 0; - if (xfs_sb_version_hasreflink(&mp->m_sb)) { + if (xfs_has_reflink(mp)) { fprintf(stderr, _("%s: Reflink not compatible with realtime device. Please try a newer xfsprogs.\n"), progname); return -1; } - if (xfs_sb_version_hasrmapbt(&mp->m_sb)) { + if (xfs_has_rmapbt(mp)) { fprintf(stderr, _("%s: Reverse mapping btree not compatible with realtime device. Please try a newer xfsprogs.\n"), progname); -- 2.47.2