Add option to disable quota and update quota size option #4993
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #4970
Forum post
--quota-disable
option to disable the reported backend quota. Sometimes Mono does not report the quota for the backup path, but rather for a parent directory.Updated help text
Disabled quota
If the quota is disabled, the backend is treated as if it does not support reporting a quota at all. This means that the quota values in the result remain set to zero.
The reported quota sometimes needs to be disabled, because Mono sometimes does not recognize the mount point. Then it will report the quota for a parent directory.
Assigned quota
The
--quota-size
option was previously intended to provide a total backend size, if it does not support reporting a quota. However, this never actually worked. Instead, it now sets a limit on the backup size, in addition to the reported backend quota.If the backup size is more than the assigned quota size, the backup completes with an error. If the remaining free space is less than the warning threshold (percentage of backup size), the backup completes with a warning. If both the backend quota and the assigned quota is exceeded, the backend quota takes precedence in warning and error messages.