Thanks
On Thu Jan 08 2015 at 3:21:15 AM Poornima Gurusiddaiah <pgurusid@xxxxxxxxxx> wrote:
_______________________________________________Hi,Windows has a feature called shadow copy. This is widely used by allwindows users to view the previous versions of a file.
For shadow copy to work with glusterfs backend, the problem was thatthe clients expect snapshots to contain some format
of time in their name.After evaluating the possible ways(asking the user to create
snapshot with some format of time in it and have rename snapshot
for existing snapshots) the following method seemed simpler.If the USS is enabled, then the creation time of the snapshot is
appended to the snapname and is listed in the .snaps directory.
The actual name of the snapshot is left unmodified. i.e. the snapshot
list/info/restore etc. commands work with the original snapname.The patch for the same can be found @http://review.gluster.org/#/c/9371/The impact is that, the users would see the snapnames to be different in the ".snaps" folderthan what they have created. Also the current patch does not take care of the scenario wherethe snapname already has time in its name.Eg:
Without this patch:
drwxr-xr-x 4 root root 110 Dec 26 04:14 snap1
drwxr-xr-x 4 root root 110 Dec 26 04:14 snap2With this patch
drwxr-xr-x 4 root root 110 Dec 26 04:14 snap1@GMT-2014.12.30-05.07.50
drwxr-xr-x 4 root root 110 Dec 26 04:14 snap2@GMT-2014.12.30-23.49.02Please let me know if you have any suggestions or concerns on the same.Thanks,Poornima
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-devel
_______________________________________________ Gluster-users mailing list Gluster-users@xxxxxxxxxxx http://www.gluster.org/mailman/listinfo/gluster-users