In certain networks can be usefull to not allow users upload, more files than the space that they're sharing.
Quota management will be handled by the StorageClient?, which imposes the limits on what can be uploaded to the grid. When a file is to be uploaded, the StorageClient?:
1- Checks that the storage server is running and writable
2- Calculates the space it is sharing in the associated storage server.
a- Available disk space b- Reserved disk space (minimum free space to be reserved) c- Size of stored shares
3- The size of leases it holds on files stored on grid (requires a catalog of uploaded files and lease expiration/renewal tracking).
4- Estimates the assigned space as 'Sharing space (available + stored shares)'
5- Checks that Used space (i.e. sum of leases) is smaller than 'Sharing space'.
6- Retrieve the grid's “X out K” parameters used in erasure encoding.
7- Verifies that predicted used space and reports an error if the available quota is exceeded.