summaryrefslogtreecommitdiff
path: root/tools/lib
diff options
context:
space:
mode:
authorBaolin Liu <liubaolin@kylinos.cn>2026-11-20 23:50:21 +0800
committerNamjae Jeon <linkinjeon@kernel.org>2026-11-21 21:05:19 +0900
commitf8b648c1ace89bb784febaf09cf2d59cc167f840 (patch)
tree4fd19e20119bc5e9401dc0cb3880a251016eb70f /tools/lib
parent23c62304dde29abe92013d85910d03a77dada35d (diff)
ntfs: limit MFT mirror comparisons to system records
Windows 10 can leave $MFTMirr records from record 16 onwards stale on volumes with large clusters. Comparing them can falsely report corruption. Commit 749357bd48c1 ("ntfs: mount hibernated volumes read-only regardless of errors=") made these mismatches force a read-only mount even with errors=continue. Limit the record checks and comparison to the first 16 records within the mirror, following ntfs-3g. Keep reading the full mirror for runlist mapping and location checks, and leave mirror writeback unchanged. Fixes: 2beaa98b46c4 ("ntfs: restore $MFT mirror contents check") Cc: stable@vger.kernel.org Link: https://github.com/tuxera/ntfs-3g/commit/85e208176ffd16ce9a51a9f534b194f0ebbde6e3 Signed-off-by: Baolin Liu <liubaolin@kylinos.cn> Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/lib')
0 files changed, 0 insertions, 0 deletions