<div dir="ltr">Yes, it is ok<div>Is it possible to see this attribute in client side? In which xlator?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 3, 2017 at 2:58 PM, Sanoj Unnikrishnan <span dir="ltr"><<a href="mailto:sunnikri@redhat.com" target="_blank">sunnikri@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>I am not sure, if i got your requirement correctly.<br></div>If you need to have the file count and directory count of each brick individually (without aggregation), you could get that by a getxattr of trusted.glusterfs.quota.size on the brick.<br></div><div>The size xattr value can be interpreted as follows:<br>getfattr -d -m. -e hex ' <path > <br></div><div>size: first 16 bytes<br></div><div>filecount: Next 16 bytes<br></div><div>dircount: Last 16 bytes <br></div><div><br>Regards,<br></div><div>Sanoj<br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, May 3, 2017 at 12:20 PM, Tahereh Fattahi <span dir="ltr"><<a href="mailto:t28.fattahi@gmail.com" target="_blank">t28.fattahi@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Thank you<div>I need this information divided to bricks.</div></div><div class="m_-6303136569474350658HOEnZb"><div class="m_-6303136569474350658h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 2, 2017 at 11:07 PM, Vijay Bellur <span dir="ltr"><<a href="mailto:vbellur@redhat.com" target="_blank">vbellur@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-6303136569474350658m_-7157355902964084825h5">On Tue, May 2, 2017 at 8:00 AM, Tahereh Fattahi <span dir="ltr"><<a href="mailto:t28.fattahi@gmail.com" target="_blank">t28.fattahi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi<div><br><div>I want to use a file as a counter when I create a file in dht xlator.</div><div>I mean, after creating a new file, I want open a file in the same directory with a special name, read that, update the counter and write back. </div><div>I think for this purpose I should open in dht_create_cbk, read in dht_open_cbk and write in dht_readv_cbk.</div><div>I think I should use dht_open , dht_readv and dht_writev. Maybe I could create inputs for these function expect frame! is it correct to use the frame fro dht_create function?</div><div><br></div><div>Is this scenario correct or there is better way?</div></div></div>
<br></blockquote><div><br></div></div></div><div>Have you tried the object count feature [1] ?</div><div><br></div><div>Regards,</div><div>Vijay</div><div><br></div><div>[1] <a href="http://gluster-documentations.readthedocs.io/en/latest/Features/quota-object-count/" target="_blank">http://gluster-documentations.<wbr>readthedocs.io/en/latest/Featu<wbr>res/quota-object-count/</a> </div></div></div></div>
</blockquote></div><br></div>
</div></div><br></div></div><span class="">______________________________<wbr>_________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org" target="_blank">Gluster-devel@gluster.org</a><br>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://lists.gluster.org/mailm<wbr>an/listinfo/gluster-devel</a><br></span></blockquote></div><br></div>
</blockquote></div><br></div>