Since shared_vn always has to be zero, zero it at the end of repair. Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx> --- v2: reset shared_vn in phase 1 and tell the user about it, per sandeen --- repair/phase1.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/repair/phase1.c b/repair/phase1.c index 126d0b3..ee5d3d7 100644 --- a/repair/phase1.c +++ b/repair/phase1.c @@ -138,6 +138,17 @@ _("Cannot disable lazy-counters on V5 fs\n")); } } + /* shared_vn should be zero */ + if (sb->sb_shared_vn) { + if (!no_modify) { + do_warn(_("resetting shared_vn to zero\n")); + sb->sb_shared_vn = 0; + primary_sb_modified = 1; + } else { + do_warn(_("would reset shared_vn to zero\n")); + } + } + if (primary_sb_modified) { if (!no_modify) { do_warn(_("writing modified primary superblock\n")); -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html