Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
e9b4996
Report APFS clone sharing and estimate private-byte savings
huntharo Sep 27, 2026
4ed80d5
test: expose quadratic mark resolution and removal budgets
huntharo Oct 14, 2026
f95d368
fix: batch marked path resolution and bound removal nesting
huntharo Oct 14, 2026
92e5419
docs: record red-green mark performance evidence
huntharo Oct 14, 2026
aa4f168
fix: account for selected clone groups and bound metadata reuse
huntharo Oct 14, 2026
70f110b
test: measure marking hover and review latency by queue size
huntharo Oct 14, 2026
04b33b3
docs: qualify mark interaction performance evidence
huntharo Oct 14, 2026
786ae6d
fix: make non-Unix link count fallback const
huntharo Oct 14, 2026
23bb26e
docs: audit remaining queue rendering and scan complexity
huntharo Oct 14, 2026
5566508
test: expose quadratic queue mutations and review status lookups
huntharo Oct 14, 2026
2a7be0b
fix: index marked paths and absorb descendants in one pass
huntharo Oct 14, 2026
94a2c40
fix: index review row status from each fresh removal plan
huntharo Oct 14, 2026
8740401
test: cover directory insertion in the queue construction budget
huntharo Oct 14, 2026
24bf81b
fix: preserve ancestor selection for raw mark spellings
huntharo Oct 14, 2026
2ca9fce
docs: explain the combined queue fixes with red-green evidence
huntharo Oct 14, 2026
e8c098e
docs: clarify the blocked and overlapping review fixtures
huntharo Oct 14, 2026
b0e48fb
docs: record expanded queue fix integration and validation
huntharo Oct 14, 2026
7b2c02d
Merge origin/main and preserve APFS accounting boundaries
huntharo Oct 24, 2026
f747d12
Use a native absolute path in remote acceptance fixture
huntharo Oct 24, 2026
87c02c7
Match remote preview test to helper platform support
huntharo Oct 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ and `cargo build --release` directly; CI runs the gate on both systems.
## Invariants

1. **Sizes come from `st_blocks * 512` unless apparent size was asked for.**
That is the number that comes back when a file is deleted. On macOS the
directory listing reports it and `st_size` for a whole buffer of entries:
every fork's allocation, and the data fork's length; see `macos.rs`. On
Windows it is the allocation the directory listing reports; see
`windows.rs`. An
APFS clones can share those blocks; private-byte estimates are reported
separately without changing tile weights. On macOS the directory listing
reports every fork's allocation and the data fork's length in bulk; see
`macos.rs`. On Windows it is the allocation the directory listing reports;
see `windows.rs`. An
elevated scan of a whole NTFS drive reads it from the master file table
instead, keeping the walk's rules for hidden entries, links, cloud
folders and depth; see `mft.rs`. That path counts every stream's
Expand Down Expand Up @@ -133,6 +133,8 @@ and `cargo build --release` directly; CI runs the gate on both systems.
| what macOS lists and measures in bulk | `crates/disktree-core/src/macos.rs` — `unsafe` for `getattrlistbulk` |
| what Windows lists, measures and compares differently | `crates/disktree-core/src/windows.rs` — `unsafe` for Win32 |
| reading a whole NTFS drive from its file table | `crates/disktree-core/src/mft.rs` |
| APFS clone hints and private-size system calls | `crates/disktree-core/src/macos.rs` — isolated `unsafe` |
| clone sharing totals and conservative savings | `crates/disktree-core/src/sharing.rs` |
| a key, a screen transition, a mark | `crates/disktree-app/src/state.rs` |
| spacing, type and size | `crates/disktree-app/src/ui.rs` — tokens only, no `px` in layout |
| the mosaic's painting or labels | `crates/disktree-app/src/treemap_view.rs` |
Expand Down
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,23 @@ What is different from Linux:
- **Free space** is what `df` reports. Finder's figure is larger: it counts
purgeable space (caches and local snapshots macOS will clear on its own).
- **Cloned files** (copies APFS shares blocks between, as Finder's Duplicate
makes) are each counted in full, so a total can exceed what deleting them
frees.
makes) remain counted in full in the treemap. The scan line separately
reports bytes in cloned files and estimated repeated data-fork allocation.
The selection, review and permanent-delete confirmation estimate savings
from the accepted set of marks together. Complete clone groups credit
shared data once; a remaining hardlink retains its file data. Unknown or
modified sharing and allocation outside the data fork supply a range, with only its lower bound used by the
volume meter. Unknown private sizes contribute zero to that bound.
Snapshots and open files can retain blocks,
and changing files can stale the estimate; rescan to refresh it. The final
result still measures the volume's actual free-space change.
Clone hints come from bulk directory reads; only potentially shared files
need a private-size query. A bounded, sharded cache reuses confirmed full
clones within their observed reference count, separately on each real
APFS volume and each scan. Modified clones are measured individually.
Unsupported filesystems or kernels fall back to
the ordinary listing without clone detection. Apparent-size scans do not
collect clone metadata.
- **Time Machine's local snapshots** are not files and do not appear; they
are part of the gap between the scan and the disk's used space.
- **Cloud-only folders** (iCloud Drive, Dropbox and the like, evicted to the
Expand Down
Loading
Loading