Changes by: szaka
Update of /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17119/ntfsprogs
Modified Files:
ntfsclone.c
Log Message:
Explain dirty volume
Index: ntfsclone.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs/ntfsclone.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -p -r1.71 -r1.72
--- ntfsclone.c 5 Feb 2006 19:35:20 -0000 1.71
+++ ntfsclone.c 5 Feb 2006 22:10:01 -0000 1.72
@@ -88,6 +88,10 @@ static const char *bad_sectors_warning_m
"* Use the --rescue option to efficiently save as much data as possible! *\n"
"*************************************************************************\n";
+static const char *dirty_volume_msg =
+"Volume '%s' is scheduled for a check or it was shutdown \n"
+"uncleanly. Please boot Windows or use the --force option to progress.\n";
+
struct {
int verbose;
int quiet;
@@ -1215,8 +1219,7 @@ static void mount_volume(unsigned long n
if (vol->flags & VOLUME_IS_DIRTY)
if (opt.force-- <= 0)
- err_exit("Volume is dirty. Run chkdsk and "
- "please try again (or see -f option).\n");
+ err_exit(dirty_volume_msg, opt.volume);
if (NTFS_MAX_CLUSTER_SIZE < vol->cluster_size)
err_exit("Cluster size %u is too large!\n",
|