From: Darrick J. Wong <djwong@xxxxxxxxxx> Convert the xfs_sb_version_hasfoo() to checks against mp->m_features. Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx> --- libxfs/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libxfs/init.c b/libxfs/init.c index e7009a2e..593d0fa2 100644 --- a/libxfs/init.c +++ b/libxfs/init.c @@ -424,17 +424,17 @@ rtmount_init( xfs_daddr_t d; /* address of last block of subvolume */ int error; - if (mp->m_sb.sb_rblocks == 0) + if (!xfs_has_realtime(mp)) 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);