ntfs-3g:rebuild

This commit is contained in:
Rmys
2019-11-14 18:49:39 +03:00
parent 3f11d85bc0
commit 8b3348b407
6 changed files with 533 additions and 4 deletions
@@ -0,0 +1,12 @@
--- a/libntfs-3g/volume.c.ref 2017-03-23 10:42:44.000000000 +0100
+++ b/libntfs-3g/volume.c 2017-12-20 08:11:51.842424300 +0100
@@ -959,7 +959,8 @@
vol->mftmirr_size = l;
}
ntfs_log_debug("Comparing $MFTMirr to $MFT...\n");
- for (i = 0; i < vol->mftmirr_size; ++i) {
+ /* Windows 10 does not update the full $MFTMirr any more */
+ for (i = 0; (i < vol->mftmirr_size) && (i < FILE_first_user); ++i) {
MFT_RECORD *mrec, *mrec2;
const char *ESTR[12] = { "$MFT", "$MFTMirr", "$LogFile",
"$Volume", "$AttrDef", "root directory", "$Bitmap",