<div dir="ltr">Thank you<div>I need this information divided to bricks.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 2, 2017 at 11:07 PM, Vijay Bellur <span dir="ltr">&lt;<a href="mailto:vbellur@redhat.com" target="_blank">vbellur@redhat.com</a>&gt;</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="h5">On Tue, May 2, 2017 at 8:00 AM, Tahereh Fattahi <span dir="ltr">&lt;<a href="mailto:t28.fattahi@gmail.com" target="_blank">t28.fattahi@gmail.com</a>&gt;</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/<wbr>Features/quota-object-count/</a> </div></div></div></div>
</blockquote></div><br></div>