ATTR_RECORD *attr10, *attr20, *attr90;
struct ufile *file;
ntfs_attr *mft;
+ u32 log_levels;
if (!vol)
return NULL;
ntfs_attr_close(mft);
mft = NULL;
+ /* disable errors logging, while examining suspicious records */
+ log_levels = ntfs_log_clear_levels(NTFS_LOG_LEVEL_PERROR);
attr10 = find_first_attribute(AT_STANDARD_INFORMATION, file->mft);
attr20 = find_first_attribute(AT_ATTRIBUTE_LIST, file->mft);
attr90 = find_first_attribute(AT_INDEX_ROOT, file->mft);
if (get_data(file, vol) < 0) {
ntfs_log_error("ERROR: Couldn't get data streams.\n");
}
+ /* restore errors logging */
+ ntfs_log_set_levels(log_levels);
return file;
}
ntfs_log_perror("ERROR: Couldn't open $MFT/$BITMAP");
return -1;
}
+ NVolSetNoFixupWarn(vol);
bmpsize = attr->initialized_size;
buffer = malloc(BUFSIZE);
if (opts.match)
regfree(&re);
free(buffer);
+ NVolClearNoFixupWarn(vol);
if (attr)
ntfs_attr_close(attr);
return results;