]> www.infradead.org Git - users/hch/misc.git/commit
xfs: do not check NEEDSREPAIR if ro,norecovery mount.
authorLukas Herbolt <lukas@herbolt.com>
Mon, 3 Feb 2025 08:55:13 +0000 (09:55 +0100)
committerCarlos Maiolino <cem@kernel.org>
Fri, 14 Feb 2025 08:40:35 +0000 (09:40 +0100)
commit9e00163c31676c6b43d2334fdf5b406232f42dee
treefcc278b4db117f00a8b8df32ffdcef3a687f6152
parent6e33017c3276e3af7f79f61f3b3648e4a4c03d34
xfs: do not check NEEDSREPAIR if ro,norecovery mount.

If there is corrutpion on the filesystem andxfs_repair
fails to repair it. The last resort of getting the data
is to use norecovery,ro mount. But if the NEEDSREPAIR is
set the filesystem cannot be mounted. The flag must be
cleared out manually using xfs_db, to get access to what
left over of the corrupted fs.

Signed-off-by: Lukas Herbolt <lukas@herbolt.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_super.c