Skip to content

Photo cache reads free space on Windows, and makes no grid pictures ahead when short of room - #267

Merged
YashwanthKamireddi merged 1 commit into
mainfrom
fix/windows-disk-room
Nov 25, 2026
Merged

YashwanthKamireddi merged 1 commit into
mainfrom
fix/windows-disk-room

Conversation

@YashwanthKamireddi

Copy link
Copy Markdown
Owner

The cache's own free_space read only Unix's, so on Windows the limit and the
grid floor never applied and grid pictures could fill the disk. It now uses
quince_backup's reader, which reads Windows too.

Short of room, a grid picture made is not kept, so prepare made (and fetched)
every one again on each read of the library. wanted_steps now leaves
thumbnail-sized steps out while the disk is short; only what is on screen is
made.

New tests: the_caches_disk_says_how_much_room_it_has (every desktop; on Windows the old reader answered nothing), grid_pictures_are_kept_only_above_the_floor, and short_of_room_no_grid_picture_is_made_ahead_and_nothing_twice, which fails on main. Found in a health audit after D#258 (a 57,000-photo library on Windows).

…head when short of room

The cache's own free_space read only Unix's, so on Windows the limit and the
grid floor never applied and grid pictures could fill the disk. It now uses
quince_backup's reader, which reads Windows too.

Short of room, a grid picture made is not kept, so prepare made (and fetched)
every one again on each read of the library. wanted_steps now leaves
thumbnail-sized steps out while the disk is short; only what is on screen is
made.
@YashwanthKamireddi
YashwanthKamireddi merged commit 6d8f246 into main Nov 25, 2026
15 checks passed
@YashwanthKamireddi
YashwanthKamireddi deleted the fix/windows-disk-room branch November 25, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant