Show on-disk file size in victory inspect #649

Merged
askharoun merged 1 commit from upstream-pr/649 into main 2026-11-25 00:11:59 +00:00
askharoun commented 2026-11-24 06:11:37 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6575829876 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/649). Originally posted by [askharoun](https://github.com/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.
LAKSHYA-cmd-tech commented 2026-11-24 06:54:12 +00:00 (Migrated from github.com)

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).

  • cargo test -p victory: test passed cleanly.
  • cargo xtask policy: 151 files ok.
  • Verified display of on-disk file size in ictory inspect.
<!-- greyfinch-sync:Marvisak/VIctory:review:6034619379 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/649#pullrequestreview-6034619379). Originally posted by [LAKSHYA-cmd-tech](https://github.com/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). - cargo test -p victory: test passed cleanly. - cargo xtask policy: 151 files ok. - Verified display of on-disk file size in ictory inspect.
mercuryVM commented 2026-11-24 06:54:12 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T06:40:38Z.

Review: APPROVED


Tested 43e2ca9 on Windows 11, RTX 5070, MSVC: cargo test --workspace --no-fail-fast passes (264 passed, 0 failed).

One println! of data.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).

<!-- greyfinch-sync:Marvisak/VIctory:review:6034774927 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/649#pullrequestreview-6034774927). Originally posted by [mercuryVM](https://github.com/mercuryVM) on 2026-11-24T06:40:38Z. **Review:** APPROVED --- Tested 43e2ca9 on Windows 11, RTX 5070, MSVC: `cargo test --workspace --no-fail-fast` passes (264 passed, 0 failed). One `println!` of `data.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).
catminou4 commented 2026-11-24 06:54:12 +00:00 (Migrated from github.com)

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_resource cfg 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.

<!-- greyfinch-sync:Marvisak/VIctory:review:6034840010 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/649#pullrequestreview-6034840010). Originally posted by [catminou4](https://github.com/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_resource` cfg 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.
mercuryVM commented 2026-11-24 12:04:10 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T11:03:24Z.

Review: APPROVED


Tested 43e2ca9 on Windows 11, RTX 5070, MSVC: cargo test -p victory passed. Clippy's 1 warning is the existing field_reassign_with_default in victory-hle xmem.rs:747. I ran victory inspect on a local title executable, and it prints the new file size … bytes line 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).

<!-- greyfinch-sync:Marvisak/VIctory:review:6038037369 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/649#pullrequestreview-6038037369). Originally posted by [mercuryVM](https://github.com/mercuryVM) on 2026-11-24T11:03:24Z. **Review:** APPROVED --- Tested 43e2ca9 on Windows 11, RTX 5070, MSVC: `cargo test -p victory` passed. Clippy's 1 warning is the existing `field_reassign_with_default` in victory-hle xmem.rs:747. I ran `victory inspect` on a local title executable, and it prints the new `file size … bytes` line 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).
ErRusso commented 2026-11-24 12:04:30 +00:00 (Migrated from github.com)

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.

  • Scope: apps/victory/src/inspect.rs (+1/-0). Adds a file size N bytes line (uses data.len(), the bytes actually read) between the path and the blake3 hash in victory inspect.

Trivially correct and useful for correlating on-disk vs. logical size.

No issues found.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7129946052 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/649#issuecomment-7129946052). Originally posted by [ErRusso](https://github.com/ErRusso) on 2026-11-24T11:19:18Z. --- ## Audit: ✅ Looks good Reviewed this PR as part of an audit of mergeable PRs. - **Scope:** `apps/victory/src/inspect.rs` (+1/-0). Adds a `file size N bytes` line (uses `data.len()`, the bytes actually read) between the path and the blake3 hash in `victory inspect`. Trivially correct and useful for correlating on-disk vs. logical size. No issues found.
upstream-sync closed this pull request 2026-11-25 01:04:38 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!649
No description provided.