Checked $MFT data to be ready before fetching an extent

edge.strict_endians^2
Jean-Pierre André 2021-07-12 08:31:18 +02:00
parent e2e625065d
commit 4e094563d4
1 changed files with 6 additions and 0 deletions

View File

@ -3217,6 +3217,12 @@ is_enumeration:
ctx->mrec = ctx->base_mrec;
} else {
/* We want an extent record. */
if (!vol->mft_na) {
ntfs_log_perror("$MFT not ready for "
"opening an extent to inode %lld\n",
(long long)base_ni->mft_no);
break;
}
ni = ntfs_extent_inode_open(base_ni,
al_entry->mft_reference);
if (!ni)