-
Notifications
You must be signed in to change notification settings - Fork 113
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
What should GetQuota return? #2069
Comments
Is this because GetQuota on the storage provider gives the current user's quota for all storage spaces, and the Quota included in the ListStorageSpacesResponse is only for that one storage space? |
sadly, the ocs api does not differentiate between different storage spaces. it cannot take into account quota on an external storage or a federated share. for ocis we decided to report the quote from the users home space. with the spaces concept and the graph api we introduce it will be possible to get the quote of every storage space the user has access to. |
Thanks for clarifying that! |
I will guess and someone can confirm if I am correct: And anyone can calculate that the remaining available storage space "free space" is 3,000,000,000 about 3GB. |
Yes, that answer makes sense to me. That's probably what it is. I'll add a code comment! |
The GetQuota function on the storage provider API returns two
uint64
values.Are those "maxBytes" and "maxFiles" like in https://github.com/cs3org/go-cs3apis/blob/970eec3/cs3/storage/provider/v1beta1/resources.pb.go#L1491-L1505 ?
Or "total" and "used" like in
reva/internal/http/services/owncloud/ocs/handlers/cloud/users/users.go
Lines 130 to 131 in 5c0e31a
Is there any documentation for this?
Maybe this function should return something a bit more typed, or at least we could improve the documentation.
The text was updated successfully, but these errors were encountered: