diff options
author | Varun Shastry <vshastry@redhat.com> | 2013-07-31 12:26:51 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-08-07 12:59:50 +0530 |
commit | 47d58c392998e05d7ef20b17c0089c17d7921e5e (patch) | |
tree | 8fb869c5eecf7bca7f87e3faa0d926078a34289b /libglusterfsclient/src/Makefile.am | |
parent | dcbd9152a67b06ddaff012a9042b50dc7b76cd0d (diff) |
features/quota: Read the limit from the xattrs
Old approach:
This is based on the path. So, the config file stored as limit-set key value
pair in the volfile was the source of truth for any directory to be enforced
the quota limit. So, we were storing it in a list and everypath is compared
with the list. This hinders scaling with the order of kilos of quota
directories. This approach is different from the XFS where the below method of
inode based limit is employed this adds the admins to learn new stuff.
New approach:
This is based on the inode. After the path is set with the quota limit. The
limit sticks with the inode. So, we need not to store the paths in the xlator
context/options, instead get the xattrs in the lookup. Set the hard and soft
limits of context from there.
The additional change in the glusterd to set the xattrs when limit-usage
command issued will be submitted as a separate patch.
This patch also does:
* Move the logging from the quotad to quota-enforcer.
* Save the soft limit in the context.
* Some clean up in quota-enforcer
Change-Id: I2840f9377a4a1f76630741550873fe74758fa100
Signed-off-by: Varun Shastry <vshastry@redhat.com>
Diffstat (limited to 'libglusterfsclient/src/Makefile.am')
0 files changed, 0 insertions, 0 deletions