<div dir="ltr">On Sun, Aug 25, 2013 at 11:23 PM, Vijay Bellur <span dir="ltr">&lt;<a href="mailto:vbellur@redhat.com" target="_blank">vbellur@redhat.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">File size as reported on the mount point and the bricks can vary because of this code snippet in iatt_from_stat():<br>
<br>
        {<br>
                uint64_t maxblocks;<br>
<br>
                maxblocks = (iatt-&gt;ia_size + 511) / 512;<br>
<br>
                if (iatt-&gt;ia_blocks &gt; maxblocks)<br>
                        iatt-&gt;ia_blocks = maxblocks;<br>
        }<br>
<br>
<br>
This snippet was brought in to improve accounting behaviour for quota that would fail with disk file systems that perform speculative pre-allocation.<br>
<br>
If this aides only specific use cases, I think we should make the behaviour configurable.<br>
<br>
Thoughts?<br>
<br>
-Vijay<div><div class="h5"><br></div></div></blockquote><div><br></div><div><br></div><div>This is very unlikely the problem. st_blocks field values do not influence md5sum behavior in any way. The file size (st_size) would, but both du -k and the above code snipped only deal with st_blocks.</div>
<div><br></div><div>Bobby, it would help if you can identify the mismatching file and inspect and see what is the difference between the two files?</div><div><br></div><div>Avati</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
<br>
<br>
<br>
<br>
-------- Original Message --------<br>
Subject:        [Gluster-users] FileSize changing in GlusterNodes<br>
Date:   Wed, 21 Aug 2013 05:35:40 +0000<br>
From:   Bobby Jacob &lt;<a href="mailto:bobby.jacob@alshaya.com" target="_blank">bobby.jacob@alshaya.com</a>&gt;<br>
To:     <a href="mailto:gluster-users@gluster.org" target="_blank">gluster-users@gluster.org</a> &lt;<a href="mailto:gluster-users@gluster.org" target="_blank">gluster-users@gluster.org</a>&gt;<br>
<br>
<br>
<br>
Hi,<br>
<br>
When I upload files into the gluster volume, it replicates all the files<br>
to both gluster nodes. But the file size slightly varies by (4-10KB),<br>
which changes the md5sum of the file.<br>
<br>
Command to check file size : du –k *. I’m using glusterFS 3.3.1 with<br>
Centos 6.4<br>
<br>
This is creating inconsistency between the files on both the bricks. ?<br>
What is the reason for this changed file size and how can it be avoided. ?<br>
<br>
Thanks &amp; Regards,<br>
<br></div></div>
*Bobby Jacob*<br>
<br>
<br>
<br>
<br>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a><br></blockquote></div><br></div></div>