1
0
mirror of https://github.com/gluster/glusterfs.git synced 2026-02-06 18:48:16 +01:00
Files
Amar Tumballi 1bc2c76eba Simple quota: based on namespace (#1750)
* the quota setting can happen only on 'namespace' inode.
* once set, the accounting is maintained only at the namespace level for whole tree.
* uses 'simple-quota' key to show the correct quota usage in distributed volume.
* statfs()'s response would be used to set the the volume level usage in xlator,
  in setxattr() call, when done through a special mount process.
* the xlator is designed to be on brick graph, and saves only the usage of data
  inside it.
* An option is provided to utilize the backend filesystem's quota feature for
  'accounting', which can improve the performance.
  - This PR expects backend quota to properly return `statfs()` (or `df`) output.
    If `features.simple-quota.use-backend` option is set, then there wont be any
    active accounting in simple-quota translator, but only `setxattr()` and
    `statfs()` is handled for special keys. We expect helper function to
    set 'quota-limit' and also 'namespace' xattr to aid the glusterfs process in
    general to identify the entries.

Updates: #1774
Change-Id: Id4229b720b57cde458b9b36e36ada3ffe2be0ac2
Signed-off-by: Amar Tumballi <amar@kadalu.io>
2022-03-31 11:17:41 +05:30
..