You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
$ mkdir -p ./app1 ./app2/nested
$ saunafs setquota -d 0 1G 0 0 ./app1
$ saunafs setquota -d 0 2G 0 0 ./app2
$ head -c 100M /dev/random > ./app1/app1_file
$ head -c 100M /dev/random > ./app2/app2_file
$ head -c 100M /dev/random > ./app2/nested/app2_nested_file
Now running stat -f for directory
./app1 - should return equivalent of 1[GB] for Blocks Total and equivalent of 900[MB] for Blocks Free,
./app2and./app2/nested - should return equivalent of 2[GB] for Blocks Total and equivalent of 1800[MB] for Blocks 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:
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: