We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9c91a4f + d16aa4d commit a3c08daCopy full SHA for a3c08da
fs/xfs/xfs_super.c
@@ -1620,8 +1620,12 @@ xfs_fs_fill_super(
1620
#endif
1621
}
1622
1623
- /* Filesystem claims it needs repair, so refuse the mount. */
1624
- if (xfs_has_needsrepair(mp)) {
+ /*
+ * Filesystem claims it needs repair, so refuse the mount unless
1625
+ * norecovery is also specified, in which case the filesystem can
1626
+ * be mounted with no risk of further damage.
1627
+ */
1628
+ if (xfs_has_needsrepair(mp) && !xfs_has_norecovery(mp)) {
1629
xfs_warn(mp, "Filesystem needs repair. Please run xfs_repair.");
1630
error = -EFSCORRUPTED;
1631
goto out_free_sb;
0 commit comments