From: Darrick J. Wong Date: Mon, 31 Jan 2022 22:27:44 +0000 (-0500) Subject: libxfs: replace xfs_sb_version checks with feature flag checks X-Git-Tag: v5.15.0-rc0~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eefdf2ab9d30381a1067d71599f8b11d265dd3da;p=thirdparty%2Fxfsprogs-dev.git 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 --- 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);