From 6548d91f733cf98f984df2adda0014aa1fb24c3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Fri, 12 Feb 2016 17:13:21 +0100 Subject: [PATCH] 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. --- ntfsprogs/ntfsresize.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ntfsprogs/ntfsresize.c b/ntfsprogs/ntfsresize.c index af5da8e4..6e592816 100644 --- a/ntfsprogs/ntfsresize.c +++ b/ntfsprogs/ntfsresize.c @@ -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; }