Changes by: szaka
Update of /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28512/ntfsprogs
Modified Files:
ntfsresize.c
Log Message:
- hint to the user what to do if the partition is hibernated
Index: ntfsresize.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs/ntfsresize.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -p -r1.60 -r1.61
--- ntfsresize.c 19 Apr 2005 12:01:38 -0000 1.60
+++ ntfsresize.c 10 May 2005 17:00:03 -0000 1.61
@@ -79,6 +79,10 @@ static const char *corrupt_volume_msg =
"it's important! You probably also need to reboot Windows to take effect.\n"
"Then you can try ntfsresize again. No modification was made to your NTFS.\n";
+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";
+
struct {
int verbose;
int debug;
@@ -2064,6 +2068,8 @@ static ntfs_volume *mount_volume(void)
printf(invalid_ntfs_msg, opt.volume);
else if (err == EIO)
printf(corrupt_volume_msg);
+ else if (err == EPERM)
+ printf(hibernated_volume_msg);
exit(1);
}
|