Changes by: szaka
Update of /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19153/ntfsprogs
Modified Files:
ntfsresize.c
Log Message:
Let the user know if the journal file couldn't be checked or was unlean
Index: ntfsresize.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs/ntfsresize.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -p -r1.81 -r1.82
--- ntfsresize.c 25 Jul 2005 21:19:08 -0000 1.81
+++ ntfsresize.c 1 Aug 2005 20:22:24 -0000 1.82
@@ -83,6 +83,11 @@ static const char *hibernated_volume_msg
"Apparently the NTFS partition is hibernated. Windows must be resumed and\n"
"turned off properly, thus resizing will be possible later on.\n";
+static const char *unclean_journal_msg =
+"Apparently the NTFS journal file is unclean. Please shutdown Windows\n"
+"properly before using this software. If it wouldn't help then please\n"
+"report it to lin...@li.... Thank you.\n";
+
static const char *bad_sectors_warning_msg =
"****************************************************************************\n"
"* WARNING: The disk has bad sector. This means physical damage on the disk *\n"
@@ -2179,7 +2184,9 @@ static ntfs_volume *mount_volume(void)
printf(corrupt_volume_msg);
else if (err == EPERM)
printf(hibernated_volume_msg);
- exit(1);
+ else if (err == EOPNOTSUPP) /* NOTE: same as ENOTSUP !!! */
+ printf(unclean_journal_msg);
+ exit(1);
}
if (vol->flags & VOLUME_IS_DIRTY)
|