From 7f2d1efa82050815f107c0a9b628e306f586d6c6 Mon Sep 17 00:00:00 2001 From: Erik Larsson Date: Wed, 3 Aug 2011 11:02:33 +0200 Subject: [PATCH] Bugfix: ntfs_mft_load didn't fill in the size fields in the $MFT inode. --- libntfs-3g/volume.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libntfs-3g/volume.c b/libntfs-3g/volume.c index ca305851..f2b47606 100644 --- a/libntfs-3g/volume.c +++ b/libntfs-3g/volume.c @@ -374,6 +374,11 @@ mft_has_no_attr_list: /* Done with the $Mft mft record. */ ntfs_attr_put_search_ctx(ctx); ctx = NULL; + + /* Update the size fields in the inode. */ + vol->mft_ni->data_size = vol->mft_na->data_size; + vol->mft_ni->allocated_size = vol->mft_na->allocated_size; + /* * The volume is now setup so we can use all read access functions. */