mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
Closed the volume when a resizing is done
Closing the volume is the way to sync the MFT to disk. When not doing so, the MFT runlists in $DATA and $Bitmap are not synced if they have been updated in the second resizing stage relative to runlists which have grown outside their original MFT record.
This commit is contained in:
parent
5edb3ec920
commit
6548d91f73
@ -4609,11 +4609,9 @@ int main(int argc, char **argv)
|
||||
printf("Successfully resized NTFS on device '%s'.\n", vol->dev->d_name);
|
||||
if (resize.shrink)
|
||||
printf("%s", resize_important_msg);
|
||||
#if CLEAN_EXIT
|
||||
if (resize.lcn_bitmap.bm)
|
||||
free(resize.lcn_bitmap.bm);
|
||||
if (vol)
|
||||
ntfs_umount(vol,0);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user