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:
Jean-Pierre André 2016-02-12 17:13:21 +01:00
parent 5edb3ec920
commit 6548d91f73

View File

@ -4609,11 +4609,9 @@ int main(int argc, char **argv)
printf("Successfully resized NTFS on device '%s'.\n", vol->dev->d_name); printf("Successfully resized NTFS on device '%s'.\n", vol->dev->d_name);
if (resize.shrink) if (resize.shrink)
printf("%s", resize_important_msg); printf("%s", resize_important_msg);
#if CLEAN_EXIT
if (resize.lcn_bitmap.bm) if (resize.lcn_bitmap.bm)
free(resize.lcn_bitmap.bm); free(resize.lcn_bitmap.bm);
if (vol) if (vol)
ntfs_umount(vol,0); ntfs_umount(vol,0);
#endif
return 0; return 0;
} }