Changes by: szaka
Update of /cvsroot/linux-ntfs/ntfsprogs/libntfs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30697/libntfs
Modified Files:
volume.c
Log Message:
ntfs_device_mount(): explain a bit better what fails and how
Index: volume.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/volume.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -p -r1.65 -r1.66
--- volume.c 5 Nov 2005 01:34:21 -0000 1.65
+++ volume.c 13 Nov 2005 19:25:05 -0000 1.66
@@ -787,8 +787,8 @@ ntfs_volume *ntfs_device_mount(struct nt
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 nt
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;
|