mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 18:14:24 +08:00
Only output message that volume is being set dirty if we are actually setting
the dirty flag. Otherwise the message is pointless.
This commit is contained in:
parent
d530c02e49
commit
8f45d909c1
@ -3217,10 +3217,10 @@ static void create_file_volume(MFT_RECORD *m, MFT_REF root_ref, VOLUME_FLAGS fl)
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user