[Bugs] [Bug 1188636] RFE: Quota marker needs to be re-factored by replacing WIND and UNWIND with SYNCOP
bugzilla at redhat.com
bugzilla at redhat.com
Wed Mar 18 04:07:09 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1188636
--- Comment #49 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/9567 committed in master by Vijay Bellur
(vbellur at redhat.com)
------
commit 7970183f4c730d4aca3cfaa106fde015a0fbc415
Author: vmallika <vmallika at redhat.com>
Date: Tue Mar 17 20:05:19 2015 +0530
Quota/marker : Support for inode quota
Currently, the only way to retrieve the number of files/objects in a
directory or volume is to do a crawl of the entire directory/volume.
This is expensive and is not scalable.
The new mechanism proposes to store count of objects/files as part of
an extended attribute of a directory. Each directory's extended
attribute value will indicate the number of files/objects present
in a tree with the directory being considered as the root of the tree.
Currently file usage is accounted in marker by doing multiple FOPs
like setting and getting xattrs. Doing this with STACK WIND and
UNWIND can be harder to debug as involves multiple callbacks.
In this code we are replacing current mechanism with syncop approach
as syncop code is much simpler to follow and help us implement inode
quota in an organized way.
Change-Id: Ibf366fbe07037284e89a241ddaff7750fc8771b4
BUG: 1188636
Signed-off-by: vmallika <vmallika at redhat.com>
Signed-off-by: Sachin Pandit <spandit at redhat.com>
Reviewed-on: http://review.gluster.org/9567
Reviewed-by: Vijay Bellur <vbellur at redhat.com>
Tested-by: Vijay Bellur <vbellur at redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=ySRxuxJaXs&a=cc_unsubscribe
More information about the Bugs
mailing list