SaunaFS Client, option for returning nearest quota for stat #89
Labels
enhancement
New feature or request
good first issue
Good for newcomers
Priority: Medium
Performance degradation, bugs
Description
Currently
stat
command (and similar) always(?) returns raw capacity of the SaunaFS cluster:We use quotas to partition the cluster for multiple applications and we would like them to be able to see only capacity available for them. This is especially useful for applications that discard or compress older data when running low on capacity.
Sample scenario
Prepare sample structure:
Now running
stat -f
for directory./app1
- should return equivalent of 1[GB] forBlocks Total
and equivalent of 900[MB] forBlocks Free
,./app2
and./app2/nested
- should return equivalent of 2[GB] forBlocks Total
and equivalent of 1800[MB] forBlocks Free
.Proposal
This could be achieved as an option for SaunaFS Client (e.g.
-o sfsstatmode=hardquota
) that changes that behavior to return size and usage of the hierarchically nearest quota, and raw capacity if no quota is found in the tree.The text was updated successfully, but these errors were encountered: