ntfs_device_mount(): explain a bit better what fails and how

This commit is contained in:
szaka 2005-11-13 19:25:05 +00:00
parent 3e459eb923
commit 6cd1ea6e75

View File

@ -787,8 +787,8 @@ ntfs_volume *ntfs_device_mount(struct ntfs_device *dev, unsigned long rwflag)
if (l == -1)
ntfs_log_perror("Failed to read $MFT");
else {
ntfs_log_debug("Length of data not equal expected "
"length.\n");
ntfs_log_debug("Failed to read $MFT, unexpected length "
"(%d != %lld).\n", vol->mftmirr_size, l);
errno = EIO;
}
goto error_exit;
@ -799,8 +799,9 @@ ntfs_volume *ntfs_device_mount(struct ntfs_device *dev, unsigned long rwflag)
if (l == -1)
ntfs_log_perror("Failed to read $MFTMirr");
else {
ntfs_log_debug("Length of data not equal expected "
"length.\n");
ntfs_log_debug("Failed to read $MFTMirr, unexpected "
"length (%d != %lld).\n",
vol->mftmirr_size, l);
errno = EIO;
}
goto error_exit;