You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Decide whether to remove the deprecated fragment parser (parse_record_to_fragment) #572
io::parser::parse_record_to_fragment (plus fragment_extension::parse_extension_to_fragment, ~680 lines) is #[deprecated] and has zero callers in the workspace — only the two re-exports (io.rs:45, io/parser/mod.rs:16) and tests. The live parsers are io::parser::unified::process_record (bulk load) and parse::direct_index::parse_record_to_index (USN incremental).
Deleting it was considered and deliberately rejected for now:
uffs-forensics is a planned in-repo consumer, and carving partial/fragmented records is squarely its remit. Deleting hard-won untrusted-byte parsing and rebuilding it later, worse, is the bad trade. Correct-but-dormant beats deleted-and-rewritten.
uffs-mft is consumable from git by third parties. #[deprecated] is the right signal; the semver-correct path is deprecate then remove in a breaking release, with its own release note — not a silent pub removal riding along in an unrelated PR.
Confirmed uffs-products does not use it: zero hits for parse_record_to_fragment, MftIndexFragment, fragment_extension, merge_fragments.
Revisit criteria
Around 2027-01, or once uffs-forensics has shipped — whichever is first:
If uffs-forensics shipped and does not use it, and it is still callerless: remove it in a breaking release, with a release note. The argument is then a fact rather than a guess.
If uffs-forensics (or any consumer) does use it: drop the #[deprecated], give it real coverage, and treat it as supported.
Context
Found while adding the NTFS 3.0+ $SI fields to ExtendedStandardInfo. Two related fixes already landed and are not blocked on this decision:
fix(mft): stop zeroing usn/security_id/owner_id in the fragment parser — the path hand-rolled a 36-byte NTFS 1.2 $STANDARD_INFORMATION read regardless of the record's real $SI size, silently zeroing those three fields on every modern volume. Now routed through the shared, fuzz-hardened parse_standard_info_full, with a regression pin.
The stale #[expect(clippy::too_many_lines, reason = "...performance-critical hot path")] reason string, false since the fragment-merge rewrite, now states the real status. A reason-string that is actively false is worse than none: the next reader treats a dead function as load-bearing, which is how this survived.
Cross-reference: the $SI-damage-signal question raised alongside this is now #573, filed separately.
It is not scoped to the fragment parser — parse_standard_info_full is shared with unified.rs:160 (bulk load) and direct_index.rs:270 (live USN), so the silent-default behavior lives in the paths every user runs. If this issue closes as "delete the fragment parser," #573 must stay open.
State check, 2026-10-03 — facts for the decision, no action taken
The "deliberately rejected for now" rationale above rests on uffs-forensics being a planned in-repo consumer. Checked where that stands:
crates/uffs-forensics/ exists on disk but is an empty, untracked directory: zero files, zero entries, not a workspace member in Cargo.toml. It has not materialised in the ten weeks since this issue was filed.
parse_record_to_fragment / parse_extension_to_fragment still have zero callers in the workspace outside the two re-exports (io.rs, io/parser/mod.rs) and their own tests. Both are #[deprecated]. The live parsers remain io::parser::unified::process_record (bulk) and parse::direct_index::parse_record_to_index (USN).
So the question is unchanged but sharper: ~680 lines of deprecated, uncalled code kept on the strength of a consumer that does not yet exist. Two honest options:
Keep, and say until when. If forensics is still intended, give this a revisit date so the deprecation does not become permanent.
Delete now. It is in git history; a future uffs-forensics can resurrect it from the commit that removed it, which is cheaper than carrying it through every lint-set and parser change in the meantime.
This is an owner call rather than a bug, so it is left open deliberately. Everything else in this repo's open set is current as of v0.6.42.
Owner decision on the two options in the 2026-10-03 state check: keepparse_record_to_fragment / parse_extension_to_fragment (still #[deprecated], still zero callers outside their re-exports and tests), with a fixed revisit date instead of an open-ended "around 2027-01".
Revisit on 2027-01-15, applying the criteria already in this issue:
If uffs-forensics has not become a real workspace member by then, or exists and does not use these parsers: remove them in a breaking uffs-mft release with its own release note, and close this issue.
If it uses them: drop #[deprecated], give them real test coverage, and close this issue as "supported".
Activity
githubrobbi commentedon Jul 21, 2026
Cross-reference: the
$SI-damage-signal question raised alongside this is now #573, filed separately.It is not scoped to the fragment parser —
parse_standard_info_fullis shared withunified.rs:160(bulk load) anddirect_index.rs:270(live USN), so the silent-default behavior lives in the paths every user runs. If this issue closes as "delete the fragment parser," #573 must stay open.githubrobbi commentedon Oct 2, 2026
State check, 2026-10-03 — facts for the decision, no action taken
The "deliberately rejected for now" rationale above rests on
uffs-forensicsbeing a planned in-repo consumer. Checked where that stands:crates/uffs-forensics/exists on disk but is an empty, untracked directory: zero files, zero entries, not a workspace member inCargo.toml. It has not materialised in the ten weeks since this issue was filed.parse_record_to_fragment/parse_extension_to_fragmentstill have zero callers in the workspace outside the two re-exports (io.rs,io/parser/mod.rs) and their own tests. Both are#[deprecated]. The live parsers remainio::parser::unified::process_record(bulk) andparse::direct_index::parse_record_to_index(USN).$SIdamage signal that was explicitly not to be closed with this) was closed 2026-07-21, so that coupling no longer constrains the decision here.So the question is unchanged but sharper: ~680 lines of deprecated, uncalled code kept on the strength of a consumer that does not yet exist. Two honest options:
uffs-forensicscan resurrect it from the commit that removed it, which is cheaper than carrying it through every lint-set and parser change in the meantime.This is an owner call rather than a bug, so it is left open deliberately. Everything else in this repo's open set is current as of v0.6.42.
githubrobbi commentedon Oct 14, 2026
Decision 2026-10-13: keep, revisit 2027-01-15
Owner decision on the two options in the 2026-10-03 state check: keep
parse_record_to_fragment/parse_extension_to_fragment(still#[deprecated], still zero callers outside their re-exports and tests), with a fixed revisit date instead of an open-ended "around 2027-01".Revisit on 2027-01-15, applying the criteria already in this issue:
uffs-forensicshas not become a real workspace member by then, or exists and does not use these parsers: remove them in a breakinguffs-mftrelease with its own release note, and close this issue.#[deprecated], give them real test coverage, and close this issue as "supported".Nothing changes in the code until then.