Commit 45fdf3b
fix(mft): restore OFFLINE sort + custom format for parity (5/6 drives pass)
Commit 90ee522 removed all sort_directory_children() calls to match C++
LIVE behavior, but this broke OFFLINE mode (0/6 drives passing). OFFLINE
paths need sorting for deterministic output since MFT dump parsing order
differs from live IOCP traversal.
Changes:
- Restore sort_directory_children() before compute_tree_metrics() in all
3 OFFLINE code paths: builder.rs, persistence.rs, merge.rs
- Add --format custom to verify_parity.rs to match C++ baseline footer
Verified: D, E, G, M, S all SORTED MATCH. F is known deferred (Bug 3).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 90ee522 commit 45fdf3b
File tree
4 files changed
+18
-1
lines changed- crates/uffs-mft/src
- index
- reader
- scripts
4 files changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | | - | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
469 | 477 | | |
470 | 478 | | |
471 | 479 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
612 | 616 | | |
613 | 617 | | |
614 | 618 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
994 | 994 | | |
995 | 995 | | |
996 | 996 | | |
| 997 | + | |
| 998 | + | |
997 | 999 | | |
998 | 1000 | | |
999 | 1001 | | |
| |||
0 commit comments