Card ingest free-space check used statvfs (~28 GB truly empty) while System Settings Available (~97 GB) includes APFS purgeable space.
On macOS, read NSURLVolumeAvailableCapacityForImportantUsageKey (fallback to statvfs). Keep the 1 GiB headroom.
Tests for day packing and ImportantUsage ≥ statvfs.
Evidence (this machine)
Card: 7245 JPEG · 85.6 GB → Desktop
Old check: needed+1 GiB ≈ 86.7 GB vs ~26 GB free → refuse
New check: vs ~97 GB Available → fits
Test plan
cargo test --lib card::tests
Rebuild desktop app and re-run ingest from EOS_DIGITAL to Desktop
Fixes https://git.bitreport.pt/BitReport.pt/photoreport/issues/190
## Summary
- Card ingest free-space check used `statvfs` (~28 GB truly empty) while System Settings Available (~97 GB) includes APFS purgeable space.
- On macOS, read `NSURLVolumeAvailableCapacityForImportantUsageKey` (fallback to `statvfs`). Keep the 1 GiB headroom.
- Tests for day packing and ImportantUsage ≥ statvfs.
## Evidence (this machine)
- Card: 7245 JPEG · 85.6 GB → Desktop
- Old check: needed+1 GiB ≈ 86.7 GB vs ~26 GB free → refuse
- New check: vs ~97 GB Available → fits
## Test plan
- [x] `cargo test --lib card::tests`
- [ ] Rebuild desktop app and re-run ingest from EOS_DIGITAL to Desktop
statvfs only counted empty APFS blocks, so ingest refused ~86 GB copies while System Settings still showed ~97 GB Available (purgeable). Read ImportantUsage capacity instead.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Fixes #190
Summary
statvfs(~28 GB truly empty) while System Settings Available (~97 GB) includes APFS purgeable space.NSURLVolumeAvailableCapacityForImportantUsageKey(fallback tostatvfs). Keep the 1 GiB headroom.Evidence (this machine)
Test plan
cargo test --lib card::tests