<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    We decided to append time-stamp with snapname when creating a
    snapshot by default. Users can override this with a flag
    "no-timestamp", then snapshot will be created without appending
    time-stamp. So the snapshot create syntax would be like " snapshot
    create &lt;snapname&gt; &lt;volname(s)&gt; [no-timestamp] 
    [description &lt;description&gt;] [force] ".<br>
    <br>
    Patch for the same can be found here
    <a class="moz-txt-link-freetext" href="http://review.gluster.org/#/c/9597/1">http://review.gluster.org/#/c/9597/1</a>.<br>
    <br>
    Regards<br>
    Rafi KC<br>
    <br>
    <div class="moz-cite-prefix">On 01/09/2015 12:18 PM, Poornima
      Gurusiddaiah wrote:<br>
    </div>
    <blockquote
      cite="mid:2002297200.6708259.1420786135826.JavaMail.zimbra@redhat.com"
      type="cite">
      <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" <a class="moz-txt-link-rfc2396E" href="mailto:avati@gluster.org">&lt;avati@gluster.org&gt;</a><br>
          <b>To: </b>"Poornima Gurusiddaiah"
          <a class="moz-txt-link-rfc2396E" href="mailto:pgurusid@redhat.com">&lt;pgurusid@redhat.com&gt;</a>, "Gluster Devel"
          <a class="moz-txt-link-rfc2396E" href="mailto:gluster-devel@gluster.org">&lt;gluster-devel@gluster.org&gt;</a>, "gluster-users"
          <a class="moz-txt-link-rfc2396E" href="mailto:gluster-users@gluster.org">&lt;gluster-users@gluster.org&gt;</a><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 moz-do-not-send="true"
              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  snapshot<br>
                    list/info/restore etc. commands work with the
                    original snapname.</div>
                  <div>The patch for the same can be found @<a
                      moz-do-not-send="true"
                      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
                    <a class="moz-txt-link-abbreviated" href="mailto:snap1@GMT-2014.12.30-05.07.50">snap1@GMT-2014.12.30-05.07.50</a><br>
                    drwxr-xr-x 4 root root 110 Dec 26 04:14
                    <a class="moz-txt-link-abbreviated" href="mailto:snap2@GMT-2014.12.30-23.49.02">snap2@GMT-2014.12.30-23.49.02</a>
                    <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 moz-do-not-send="true"
                href="mailto:Gluster-devel@gluster.org" target="_blank">Gluster-devel@gluster.org</a><br>
              <a moz-do-not-send="true"
                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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Gluster-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>