[Gluster-devel] How can add one fop after another fop?

Vijay Bellur vbellur at redhat.com
Thu Mar 30 15:32:13 UTC 2017


On Thu, Mar 30, 2017 at 7:22 AM, Tahereh Fattahi <t28.fattahi at gmail.com>
wrote:

> Thanks for your answer.
> For example I want to save the number of files in directory as one
> extended attribute.
> After every create operation, this number should be added and set as
> attribute, So after create I need a setxattr.
> But I dont know where this create is completed, I tested in dht translator
> and it was false because the creation is not complete in this translator.
>
>
>
A side effect of inode quota [1] implementation is that it provides a
mechanism to query the number of files/objects in a directory or volume.

Might be worth checking if that meets your needs.

Regards,
Vijay

[1]
http://gluster-documentations.readthedocs.io/en/latest/Features/quota-object-count/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-devel/attachments/20170330/46d8898e/attachment.html>


More information about the Gluster-devel mailing list