Repository navigation
Conversation
On an iPad Air (J71) with iPadOS 12.5.8 and checkra1n 0.12.4, --split said "iPadOS 32 GB, 32 GB used" and "can spare 0 GB" while iPadOS used 12.6 GB. The companion reported 12,638,662,656 bytes allocated but an APFS minimum of 31,711,035,392: iPadOS's update snapshot, which iPadOS doesn't run from under checkra1n 0.12.4, held about 19 GB (resize-apfs#28). The installer showed max(allocated, minimum) as used, and told the user to delete apps, which frees nothing there. - The layout now tells used (allocated) from what iPadOS keeps (APFS's minimum), and carries the system snapshot the companion already reported. The split still never goes below the minimum. - The companion's helper answers remove_snapshot with resize-apfs's engine (its checks: current revision, the reported name, removable, no operation) and has the vfs snapshot entitlement for it. The installer waits up to 150 s, and reads the layout again after a dropped connection. - The CLI explains the snapshot and asks before removing it (--remove-snapshot without a terminal); the window's no-room screen offers "Remove the snapshot…" and asks once more. Both offer it only where it gives the system its 10 GB. Where the snapshot can't go, both say what holds the space and point to Resize APFS instead of "delete some apps". - ORCHARD_DEMO_SNAPSHOT=1 shows that case in the window's demo. - A removal counts by APFS's own minimum: on the J71 the engine's answer still listed the snapshot (its scan from before) while the minimum had fallen from 31.7 to 13.1 GB. A snapshot reported to hold more than the minimum keeps above what is allocated is taken as gone. - The storage numbers the split is sized from go into the run log. Assisted-by: LLM Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: LLM Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The bug
orchard install omarchy-a --spliton an iPad Air (J71, iPadOS 12.5.8, checkra1n 0.12.4) showed "iPadOS 32 GB, 32 GB used" and "iPadOS can spare 0 GB right now", while Settings showed 11 GB used.The companion's numbers (logged now on connect):
com.apple.os.update-70289BA1…, removable, holds ≈ 18,998,099,968flow_layoutshowedmax(allocated, minimum)as used. The minimum is real: iPadOS's update snapshot, which iPadOS doesn't run from under checkra1n 0.12.4, keeps APFS from shrinking. This is resize-apfs#28 / resize-apfs PR #33. The companion already reportedlayout.systemSnapshot, but the installer ignored it and told the user to delete apps, which frees nothing here.The change
remove_snapshot, calls resize-apfs'sDeviceEngine.removeSnapshot, which keeps its own checks: revision, name, removable, no operation running. The helper gets thecom.apple.private.vfs.snapshotentitlement for it. The installer waits up to 150 s and reads the layout again after a dropped connection. Documented incompanion/PROTOCOL.md.--remove-snapshot. Removal is offered only where it gives the system its 10 GB.ORCHARD_DEMO_SNAPSHOT=1shows this case in the demo.Tested
cargo testfor the whole workspace passes, including the app with--features gpui/runtime_shaders, because this Mac has no Metal toolchain. New tests:--remove-snapshot). APFS's minimum went from 31.71 GB to 13.13 GB, so iPadOS can spare about 16 GB.Follow-ups (not here)
companion-*.log.🤖 Generated with Claude Code