Skip to content

bugfix #1919: Unix mount-aware disk-space preflight - #1922

Merged
rmcrackan merged 2 commits into
masterfrom
cursor/1919-unix-disk-space-mount-f0df
Aug 9, 2026
Merged

bugfix #1919: Unix mount-aware disk-space preflight#1922
rmcrackan merged 2 commits into
masterfrom
cursor/1919-unix-disk-space-mount-f0df

Conversation

@rmcrackan

@rmcrackan rmcrackan commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Fixes #1919: false "Not enough disk space"

  • Windows: unchanged
  • Unix: symlink-canonicalize the path (so /home -> /var/home), then take the longest matching DriveInfo.GetDrives() mount prefix

Path.GetPathRoot always returns "/" for absolute Unix paths, so bulk
backup preflight queried composefs root free space (often 0 on Bazzite)
instead of the filesystem containing Books/In progress.

On Unix, symlink-canonicalize paths (so /home -> /var/home) and pick the
longest DriveInfo.GetDrives() mount prefix. Route GetBackupDriveSpaces
through the shared helper so grouping and free-space queries agree.

Co-authored-by: rmcrackan <rmcrackan@gmail.com>
@github-actions github-actions Bot added the exempt Excluded from automatic stale closure (e.g. maintainer-opened) label Aug 9, 2026
FindLongestMountPointPrefix is exercised on Windows CI with Unix-style
paths. Path.DirectorySeparatorChar is '\\' there, so '/var/home' never
matched '/var/home/...'. Hardcode '/' for Unix mount identity.

Co-authored-by: rmcrackan <rmcrackan@gmail.com>
@rmcrackan
rmcrackan marked this pull request as ready for review August 9, 2026 18:00
@rmcrackan
rmcrackan merged commit e36db71 into master Aug 9, 2026
11 checks passed
@rmcrackan
rmcrackan deleted the cursor/1919-unix-disk-space-mount-f0df branch August 9, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exempt Excluded from automatic stale closure (e.g. maintainer-opened)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not enough disk space error on Bazzite Linux

2 participants