<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jul 28, 2014 at 10:43 AM, Richard van der Hoff <span dir="ltr"><<a href="mailto:richard@swiftserve.com" target="_blank">richard@swiftserve.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 28/07/14 18:05, Anand Avati wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Whether flush-behind is enabled or not, close() will guarantee all<br>
previous write()s on that fd have been acknowledged by server.<br>
</blockquote>
<br></div>
Thanks Anand. So can you explain why the 'wc' in my example doesn't see all of the data written by the dd?<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br></div><div>I'm wondering if it is because of attribute cache. Maybe attribute cache (either in fuse or gluster, don't know yet) is not getting invalidated for some reason. Try each of the following and check if any of them make the test work right:</div>
<div><br></div><div>#1 mount glusterfs with --attribute-cache=0</div><div><br></div><div>#2 disable stat prefetch with : gluster volume set $name performance.stat-prefetch off</div><div><br></div><div><br></div><div>That should help diagnose the problem further.</div>
<div><br></div><div>Thanks</div><div><br></div></div></div></div>