]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commitdiff
xfs_repair: fix exchrange upgrade
authorDarrick J. Wong <djwong@kernel.org>
Wed, 2 Oct 2024 01:25:47 +0000 (18:25 -0700)
committerAndrey Albershteyn <aalbersh@redhat.com>
Fri, 4 Oct 2024 11:15:28 +0000 (13:15 +0200)
Set the correct superblock field for the exchange-range feature upgrade.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
repair/phase2.c

index 3418da523a67a93eb9d5e9014849055214a32623..e50cd3f8c2759d6c4955a970abb9406c2ffb5d71 100644 (file)
@@ -205,7 +205,7 @@ set_exchrange(
        }
 
        printf(_("Adding file exchange-range support to filesystem.\n"));
-       new_sb->sb_features_ro_compat |= XFS_SB_FEAT_INCOMPAT_EXCHRANGE;
+       new_sb->sb_features_incompat |= XFS_SB_FEAT_INCOMPAT_EXCHRANGE;
        new_sb->sb_features_incompat |= XFS_SB_FEAT_INCOMPAT_NEEDSREPAIR;
        return true;
 }