This is committed already (when we were using TLA). It caused problems with compilation on Mac OS X too.<br><br><div class="gmail_quote">2009/3/3 Anand Avati <span dir="ltr">&lt;<a href="mailto:avati@zresearch.com">avati@zresearch.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Can you please resubmit this with git format-patch, if still<br>
applicable on FreeBSD?<br>
<font color="#888888"><br>
Avati<br>
</font><div><div></div><div class="h5"><br>
On Tue, Feb 17, 2009 at 1:49 AM, Filipe Maia &lt;<a href="mailto:filipe@xray.bmc.uu.se">filipe@xray.bmc.uu.se</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; The previous patch does not compile in FreeBSD as I used a non<br>
&gt; standard part of the stat structure.<br>
&gt;<br>
&gt; Here&#39;s the fix against 2.0.0r18 to make it compile in FreeBSD (and<br>
&gt; possibly other POSIX systems).<br>
&gt;<br>
&gt; --- posix.c.orig        2009-02-16 21:10:36.963597828 +0100<br>
&gt; +++ posix.c     2009-02-16 21:11:05.587603273 +0100<br>
&gt; @@ -2864,8 +2864,8 @@<br>
&gt;         */<br>
&gt;<br>
&gt;        if (!S_ISLNK (entry-&gt;buf.st_mode)) {<br>
&gt; -               tv[0].tv_sec = entry-&gt;buf.st_atim.tv_sec;<br>
&gt; -               tv[1].tv_sec = entry-&gt;buf.st_mtim.tv_sec;<br>
&gt; +               tv[0].tv_sec = entry-&gt;buf.st_atime;<br>
&gt; +               tv[1].tv_sec = entry-&gt;buf.st_mtime;<br>
&gt;                ret = utimes (pathname, tv);<br>
&gt;                if (ret == -1) {<br>
&gt;                        op_ret = -errno;<br>
&gt;<br>
&gt; Filipe<br>
&gt;<br>
&gt; On Sat, Jan 31, 2009 at 06:09, Anand Avati &lt;<a href="mailto:avati@zresearch.com">avati@zresearch.com</a>&gt; wrote:<br>
&gt;&gt; Committed (with some minor changes). Thanks! There is no sensible way<br>
&gt;&gt; to set ctime.<br>
&gt;&gt;<br>
&gt;&gt; Avati<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Jan 26, 2009 at 9:48 PM, Filipe Maia &lt;<a href="mailto:filipe@xray.bmc.uu.se">filipe@xray.bmc.uu.se</a>&gt; wrote:<br>
&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; When doing self heal the access and modification times are not<br>
&gt;&gt;&gt; preserved. This can have bad consequences for certain applications<br>
&gt;&gt;&gt; (e.g. make).<br>
&gt;&gt;&gt; The attached patch tries to fix this.<br>
&gt;&gt;&gt; It doesn&#39;t set ctime as is impossible to do in a portable way.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I also noticed that removing the namespace with glusterfsd running<br>
&gt;&gt;&gt; results in glusterfsd getting confused. It has to be restarted for<br>
&gt;&gt;&gt; things to go back to normal.<br>
&gt;&gt;&gt; It would be nice to be able to avoid this.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Filipe<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; Gluster-devel mailing list<br>
&gt;&gt;&gt; <a href="mailto:Gluster-devel@nongnu.org">Gluster-devel@nongnu.org</a><br>
&gt;&gt;&gt; <a href="http://lists.nongnu.org/mailman/listinfo/gluster-devel" target="_blank">http://lists.nongnu.org/mailman/listinfo/gluster-devel</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
<br>
<br>
_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@nongnu.org">Gluster-devel@nongnu.org</a><br>
<a href="http://lists.nongnu.org/mailman/listinfo/gluster-devel" target="_blank">http://lists.nongnu.org/mailman/listinfo/gluster-devel</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Amar Tumballi<br><br>