Re: [PATCH 1/2] ntfs: restore $MFT mirror contents check
From: Namjae Jeon
Date: Mon May 11 2026 - 10:33:56 EST
On Mon, May 11, 2026 at 2:11 AM DaeMyung Kang <charsyam@xxxxxxxxx> wrote:
>
> check_mft_mirror() still computes the number of bytes to validate in each
> mirrored MFT record, but the actual comparison against $MFTMirr was dropped
> when the superblock code was updated.
>
> As a result, mount misses a stale or inconsistent $MFTMirr as long as both
> records pass the structural baad-record checks. Restore the comparison and
> log an error when the primary $MFT record differs from its mirror copy.
>
> Returning false lets the existing mount error handling mark the volume as
> having NTFS errors and, with on_errors=remount-ro, continue read-only. The
> default on_errors=continue mount policy still allows the mount to proceed.
>
> Fixes: 6251f0b0de7d ("ntfs: update super block operations")
> Signed-off-by: DaeMyung Kang <charsyam@xxxxxxxxx>
Applied it to #ntfs-next.
Thanks!