-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warn users when they run out of space #656
Conversation
Tested this portion with a flash drive, and it looks like it's working fine. Free space is also shown when selecting a backup location, and backup sizes are shown when restoring. |
Tested this by setting MIN_FREE_SPACE to -1 and recompiling. Seems to not notice an IOException for ENOSPC (caused by ErrnoException for ENOSPC) and waits a few minutes until timing out with a generic "Backup failed." Full log provided privately. |
This is done by storing also the APK sizes in addition to the app data size we already store.
Nextcloud has a bug that lets us write chunked transfers over quota: nextcloud/server#7993 However, when we upload small files, we can get the proper 507 response and thus detect out of space situations and warn the user about them.
This helped me to identify additional out of space situations,we can now warn the user about. Pushed those as extra commits. |
This PR takes two approaches for warning the user about out of space situations:
Related to #363
Fixes #555