ntfs_mft_records_read: log all errors

master
szaka 2009-02-11 00:36:27 +00:00
parent 27dfa1a105
commit 901c3a7227
1 changed files with 3 additions and 5 deletions

View File

@ -105,11 +105,9 @@ int ntfs_mft_records_read(const ntfs_volume *vol, const MFT_REF mref,
if (br != count) {
if (br != -1)
errno = EIO;
if (br >= 0)
ntfs_log_debug("Error: partition is smaller than it should "
"be!\n");
else
ntfs_log_perror("Error reading $Mft record(s)");
ntfs_log_perror("Failed to read of MFT, mft=%llu count=%lld "
"br=%lld", (long long)m, (long long)count,
(long long)br);
return -1;
}
return 0;