Repository navigation
Conversation
|
@ckamm, thanks for your PR! By analyzing the history of the files in this pull request, we identified @danimo, @ogoffart and @jturcotte to be potential reviewers. |
* Run a Propfind to determine the available quota before each sync run. * Keep the available quota up to date with each upload and delete job. * Don't start upload jobs if there's not enough available space. * If we (unexpectedly) receive a 507 Insufficent Storage error, adjust the expectation of available remote space downwards.
b06b1e5 to
9f8d9c1
Compare
ogoffart
left a comment
There was a problem hiding this comment.
I'm just wondering weather this quota value is reliable enough.
I mean, we might then block the sync without reason.
It might be that the user directory has a small quota, but the shared directory has a huge quota.
| } | ||
| } | ||
|
|
||
| void PropagateUploadFileCommon::checkInsufficentStorageError() |
There was a problem hiding this comment.
On the other hand, maybe the folder is on a different storage or with different quota requirement that the main quota. So we might mess the quota up.
|
@ogoffart Hm, you're right about quotas potentially differing per folder - I didn't think about shared folders. So we actually need to track quota-available per-folder for good behavior. I'll think about it. Definitely not for 2.3.1 then. |
|
@ogoffart What if we retrieved quota information of a folder before each upload. Once per folder only, possibly only for larger uploads, or for folders that have seen an insufficent storage error before. It'd add quite a bit of bookkeeping but is currently the sanest option I see. Thoughts? The best option would be being able to retrieve the 'mount points' with individual quotas from the server. I doubt something like that exists currently? |
|
We haven't decided about what to do here. I don't see this in 2.4.0. |
|
We'll not do it this way. See #5537 (comment) |
Targetting master since it's uncertain whether this should be in 2.3.1 or 2.4.0! Assigning to 2.3.1 for now - opinions?
the expectation of available remote space downwards.