<html><body><div style="font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000"><div>Yes, the creation time of the snap is appended to the snapname dynamically, </div><div>i.e. snapview-server takes the snaplist from glusterd, and while populating the dentry for the ".snaps" it appends the time.<br></div><div><br></div><div>Thanks,<br></div><div>Poornima<br></div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Anand Avati" &lt;avati@gluster.org&gt;<br><b>To: </b>"Poornima Gurusiddaiah" &lt;pgurusid@redhat.com&gt;, "Gluster Devel" &lt;gluster-devel@gluster.org&gt;, "gluster-users" &lt;gluster-users@gluster.org&gt;<br><b>Sent: </b>Friday, January 9, 2015 1:49:02 AM<br><b>Subject: </b>Re: [Gluster-devel] Appending time to snap name in USS<br><div><br></div>It would be convenient if the time is appended to the snap name on the fly (when receiving list of snap names from glusterd?) so that the timezone application can be dynamic (which is what users would expect).<br><div><br></div><div>Thanks</div><br><div class="gmail_quote">On Thu Jan 08 2015 at 3:21:15 AM Poornima Gurusiddaiah &lt;<a href="mailto:pgurusid@redhat.com" target="_blank">pgurusid@redhat.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:#000000"><div>Hi,<br></div><div><br></div><div>Windows has a feature called shadow copy. This is widely used by all</div><div>windows users to view the previous versions of a file.<br>For shadow copy to work with glusterfs backend, the problem was that </div><div>the clients expect snapshots to contain some format<br>of time in their name.<br><div><br></div>After evaluating the possible ways(asking the user to create<br>snapshot with some format of time in it and have rename snapshot<br>for existing snapshots) the following method seemed simpler.<br><div><br></div>If the USS is enabled, then the creation time of the snapshot is<br>appended to the snapname and is listed in the .snaps directory.<br>The actual name of the snapshot is left unmodified. i.e. the&nbsp; snapshot<br>list/info/restore etc. commands work with the original snapname.</div><div>The patch for the same can be found @<a href="http://review.gluster.org/#/c/9371/" target="_blank">http://review.gluster.org/#/c/9371/</a><br></div><div><br></div><div>The impact is that, the users would see the snapnames to be different in the ".snaps" folder<br></div><div>than what they have created. Also the current patch does not take care of the scenario where<br></div><div>the snapname already has time in its name.<br></div><div><div><br></div>Eg:<br>Without this patch:<br>drwxr-xr-x 4 root root 110 Dec 26 04:14 snap1<br>drwxr-xr-x 4 root root 110 Dec 26 04:14 snap2<br><div><br></div>With this patch<br>drwxr-xr-x 4 root root 110 Dec 26 04:14 snap1@GMT-2014.12.30-05.07.50<br>drwxr-xr-x 4 root root 110 Dec 26 04:14 snap2@GMT-2014.12.30-23.49.02<div><br></div></div><div>Please let me know if you have any suggestions or concerns on the same.<br></div><div><br></div><div>Thanks,<br></div><div>Poornima<br></div></div></div>______________________________<span style="text-decoration: underline;" data-mce-style="text-decoration: underline;"></span>_________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org" target="_blank">Gluster-devel@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-devel" target="_blank">http://www.gluster.org/<span style="text-decoration: underline;" data-mce-style="text-decoration: underline;"></span>mailman/listinfo/gluster-devel</a><br>
</blockquote></div>
</blockquote><div><br></div></div></body></html>