fix(mft): preserve extension first_stream.size and dir_index in LIVE parser#6
Merged
githubrobbi merged 1 commit intomainfrom Mar 17, 2026
Merged
fix(mft): preserve extension first_stream.size and dir_index in LIVE parser#6githubrobbi merged 1 commit intomainfrom
githubrobbi merged 1 commit intomainfrom
Conversation
…parser Two root causes behind 16,517 directory size differences (Bug C): 1. IOCP out-of-order I/O: when an extension record is parsed before its base record, the base overwrites first_stream.size with 0 (losing the extension's $DATA size). Now snapshot and restore first_stream.size alongside the other extension-data snapshots. 2. Extension records with only $I30 attributes were silently skipped by the early-return guard (which didn't check dir_index_size). Now include dir_index_size/dir_index_allocated in both the guard and the return value. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
first_stream.sizewhen IOCP delivers extension records before their base record (fixes files showing size=0)dir_index_size/dir_index_allocatedin the extension parser's early-return guard (fixes directories missing $I30 index sizes)Test plan
🤖 Generated with Claude Code