Show on-disk file size in victory inspect #649
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/649"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by askharoun on 2026-11-24T06:11:37Z.
What
Print the file size in bytes alongside the BLAKE3 hash. This makes it easier to distinguish the size on disk from the mapped image size.
Tested
Reviewed the one-line change. Cargo was unavailable, so the CLI was not run.
Imported from Marvisak/VIctory. Originally posted by LAKSHYA-cmd-tech on 2026-11-24T06:23:10Z.
Review: APPROVED
Tested on Windows 11 with Rust 1.98.1 (x86_64-pc-windows-msvc).
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T06:40:38Z.
Review: APPROVED
Tested
43e2ca9on Windows 11, RTX 5070, MSVC:cargo test --workspace --no-fail-fastpasses (264 passed, 0 failed).One
println!ofdata.len(), the same bytes the BLAKE3 line hashes, so the two always describe the same file. The column alignment matches the neighbouring lines. No issues.AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T06:47:53Z.
Review: APPROVED
Verified locally on macOS 26 arm64, rustc 1.98.1:
Main's app crate doesn't compile on macOS (known
host_resourcecfg issue in victory-gpu, fixed by #235/#523), so I merged #235's head locally (uncommitted, no conflicts) purely to check this one-line change:cargo check -p victory --locked: clean.The change itself is a single added line in
inspect.rs; compiles fine. Approving.Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T11:03:24Z.
Review: APPROVED
Tested
43e2ca9on Windows 11, RTX 5070, MSVC:cargo test -p victorypassed. Clippy's 1 warning is the existingfield_reassign_with_defaultin victory-hle xmem.rs:747. I ranvictory inspecton a local title executable, and it prints the newfile size … bytesline once, after the hash.data.len()is the bytes that were read and hashed, so the size and BLAKE3 always describe the same input.AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by ErRusso on 2026-11-24T11:19:18Z.
Audit: ✅ Looks good
Reviewed this PR as part of an audit of mergeable PRs.
apps/victory/src/inspect.rs(+1/-0). Adds afile size N bytesline (usesdata.len(), the bytes actually read) between the path and the blake3 hash invictory inspect.Trivially correct and useful for correlating on-disk vs. logical size.
No issues found.