Changes by: antona
Update of /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7624
Modified Files:
mkntfs.c
Log Message:
Only output message that volume is being set dirty if we are actually setting
the dirty flag. Otherwise the message is pointless.
Index: mkntfs.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs/mkntfs.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -p -r1.54 -r1.55
--- mkntfs.c 2 Jun 2005 18:36:44 -0000 1.54
+++ mkntfs.c 3 Jun 2005 21:53:02 -0000 1.55
@@ -3217,10 +3217,10 @@ static void create_file_volume(MFT_RECOR
err = add_attr_vol_name(m, vol->vol_name, vol->vol_name ?
strlen(vol->vol_name) : 0);
if (!err) {
- Qprintf("Setting the volume dirty so check disk runs on next "
- "reboot into Windows.\n");
- err = add_attr_vol_info(m, fl, vol->major_ver,
- vol->minor_ver);
+ if (fl & VOLUME_IS_DIRTY)
+ Qprintf("Setting the volume dirty so check disk runs "
+ "on next reboot into Windows.\n");
+ err = add_attr_vol_info(m, fl, vol->major_ver, vol->minor_ver);
}
if (err < 0)
err_exit("Couldn't create $Volume: %s\n", strerror(-err));
|