<div dir="ltr"><div>Thanks Rajesh,<br><br></div>I was looking at 3.6 only to check on some locking issues that we were seeing. However, we would like to see this in master. Please feel free to suggest modifications/modify the code as you see fit. Are there plans of having a more general way of integrating other underlying snapshotting mechanisms such as btrfs/lxd as well?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 20, 2016 at 3:16 PM, Rajesh Joseph <span dir="ltr">&lt;<a href="mailto:rjoseph@redhat.com" target="_blank">rjoseph@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 Mon, Jun 20, 2016 at 12:33 PM, Kaushal M <span dir="ltr">&lt;<a href="mailto:kshlmster@gmail.com" target="_blank">kshlmster@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><div>On Mon, Jun 20, 2016 at 11:38 AM, B.K.Raghuram &lt;<a href="mailto:bkrram@gmail.com" target="_blank">bkrram@gmail.com</a>&gt; wrote:<br>
&gt; We had hosted some changes to an old version of glusterfs (3.6.1) in order<br>
&gt; to incorporate ZFS snapshot support for gluster snapshot commands. These<br>
&gt; have been done quite a while back and were not forward ported to newer<br>
&gt; versions of glusterfs. I have a couple of questions on this :<br>
&gt;<br>
&gt; 1. If one needs to incorporate these changes in their current or modified<br>
&gt; form into the glusterfs master, what is the procedure to do so?<br>
&gt;<br>
&gt; 2. Since the above process may take longer to roll in, we would like to get<br>
&gt; the changes into at least the latest version of the 3.6 branch. In order to<br>
&gt; do this, I tried the following and needed some help :<br>
&gt;<br>
&gt; I tried to apply the two ZFS relates commits<br>
&gt; (<a href="https://github.com/fractalio/glusterfs/commits/release-3.6" rel="noreferrer" target="_blank">https://github.com/fractalio/glusterfs/commits/release-3.6</a>) to the latest<br>
&gt; gluster code in the  guster-3.6 branch. I hit  one merge conflict per<br>
&gt; commit, both in xlators/mgmt/glusterd/src/glusterd-snapshot.c. The attached<br>
&gt; glusterd-snapshot.c_1 is the file with the merge conflicts after applying<br>
&gt; the first commit and  glusterd-snapshot.c_2 is the one applying the second<br>
&gt; commit. In order to process, I removed the HEAD changes in each of the merge<br>
&gt; conflicts and proceeded just to see if anything else breaks but it went<br>
&gt; through. glusterd-snapshot.c_1_corrected and glusterd-snapshot.c_2_corrected<br>
&gt; and the corresponding files after removing the merge conflicts.<br>
&gt;<br>
&gt; The question I had is, are the changes that I made to correct the merge<br>
&gt; conflicts safe? If not, could someone provide some suggestions on how to<br>
&gt; correct the two conflicts?<br>
&gt;<br>
&gt; The file cmd_log contains the history of commands that I went through in the<br>
&gt; process..<br>
&gt;<br>
<br>
</div></div>Thanks for sharing this Ram!<br>
<br>
Rajesh is the right person to answer your questions. As a GlusterD<br>
maintainer, I&#39;ll go through this and see if I can answer as well.<br>
<br></blockquote><div><br></div></div></div><div>Overall the merge resolution seems fine, except few mistakes. e.g. in glusterd-snapshot.c_2 you missed<br></div><div>to add &quot;(unmount == _gf_true)&quot; in the while loop in function &quot;glusterd_do_lvm_snapshot_remove&quot;.<br><br></div><div>In function &quot;glusterd_lvm_snapshot_remove&quot; wrong chunk of code added. The &quot;if&quot; condition should break here<br></div><div>instead of continuing from here.<br> <br></div><div>Also I think it would be better to rebase the change against master instead of 3.6. <br><br></div><div>Apart from this I am yet to review the complete change. I have taken an initial look and seems like<br></div><div>we do need some amount of cleanup to the code before it can be taken in. I also need to see how well it will<br></div><div>work the existing framework. I will go through it and provide a detailed comments later.<br><br></div><div>Thanks &amp; Regards,<br></div><div>Rajesh<br></div><span class=""><div><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
&gt; Thanks,<br>
&gt; -Ram<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Gluster-devel mailing list<br>
&gt; <a href="mailto:Gluster-devel@gluster.org" target="_blank">Gluster-devel@gluster.org</a><br>
&gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
</blockquote></span></div><br></div></div>
</blockquote></div><br></div>