<div dir="ltr"><div><div><div>trusted.io-stats-dump is a virtual (not physical) extended attribute.<br></div>The code is written in a way that a request to set trusted.io-stats-dump gets bypassed at the io-stats translator layer on the stack and<br>there it gets converted into the action of dumping the statistics into the provided output file path.<br></div><div>See io_stats_setxattr() implementation in io-stats.c for more details.<br></div><div><br></div>HTH,<br></div>Krutika<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 13, 2017 at 12:14 PM, Jeevan Patnaik <span dir="ltr">&lt;<a href="mailto:g1patnaik@gmail.com" target="_blank">g1patnaik@gmail.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="auto">Hi,<div dir="auto"><br></div><div dir="auto">I am trying to understand how the extended attribute trusted.io-stats-dump works.</div><div dir="auto"><br></div><div dir="auto">setfattr -n trusted.io-stats-dump -v /tmp/gluster_perf_stats/io-<wbr>stats-pre.txt /mnt/gluster/gv0_glusterfs</div><div dir="auto"><br></div><div dir="auto">I can see that the io-stats-pre.txt is created. But how and what happened in the background?</div><div dir="auto"><br></div><div dir="auto">And why I can&#39;t I see the attribute with getfattr again?</div><div dir="auto"><br></div><div dir="auto">getfattr -dm- /mnt/gluster/gv0_glusterfs</div><div dir="auto"># file: mnt/gluster/gv0_glusterfs</div><div dir="auto">trusted.glusterfs.dht.<wbr>commithash=&quot;3480667945&quot;</div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Jeevan.</div></div>
<br>______________________________<wbr>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br></blockquote></div><br></div>