mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-28 04:25:13 +08:00
ntfs_device_mount(): explain a bit better what fails and how
This commit is contained in:
parent
3e459eb923
commit
6cd1ea6e75
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user