Checked the MFTMirr lcn to be consistent with the boot sector

The lcn of the initial run of the MFTMirr data must be the same as
described in the boot sector. As a consequence this cannot be a hole.
edge.strict_endians^2
Jean-Pierre André 2021-07-12 08:31:18 +02:00
parent 4e094563d4
commit ec7bf54377
1 changed files with 6 additions and 0 deletions

View File

@ -458,6 +458,12 @@ static int ntfs_mftmirr_load(ntfs_volume *vol)
ntfs_log_perror("Failed to map runlist of $MFTMirr/$DATA");
goto error_exit;
}
if (vol->mftmirr_na->rl->lcn != vol->mftmirr_lcn) {
ntfs_log_error("Bad $MFTMirr lcn 0x%llx, want 0x%llx\n",
(long long)vol->mftmirr_na->rl->lcn,
(long long)vol->mftmirr_lcn);
goto error_exit;
}
return 0;