path: root/tests/snapshot.rc
diff options
authorMohammed Rafi KC <>2015-02-05 16:12:53 +0530
committerKrishnan Parthasarathi <>2015-03-10 04:42:00 -0700
commit1ae8b4c33af175545d6afe99aeb7a21896960a35 (patch)
tree4e56f0a7b8d760e9ceaea39f1b4c0b863a754218 /tests/snapshot.rc
parent8cdd272dcf277aa4148c57458cc5477a49b08383 (diff)
snapshot: append timestamp with snapname
Appending GMT time stamp with snapname by default. If no-timestamp flag is given during snapshot creation, then time stamp will not append with snapname; Initial consumer of this feature is Samba's Shadow Copy feature. This feature allows Windows user to get previous revisions of a file. For this feature to work snapshot names under .snaps folder (USS) should have timestamp in following format appended: PS: This format is configurable by Samba conf file. Due to a limitation in Windows directory access the exact format cannot be used by USS. Therefore we have modified the file format to: Snapshot scheduling feature also required to append timestamp to the snapshot name therefore timestamp is appended in snapshot creation itself instead of doing the changes in snapview server. More info: Change-Id: Idac24670948cf4c0fbe916ea6690e49cbc832d07 BUG: 1189473 Signed-off-by: Mohammed Rafi KC <> Reviewed-on: Tested-by: Gluster Build System <> Reviewed-by: Rajesh Joseph <> Reviewed-by: Krishnan Parthasarathi <> Tested-by: Krishnan Parthasarathi <>
Diffstat (limited to 'tests/snapshot.rc')
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/snapshot.rc b/tests/snapshot.rc
index a0c92d9..defce07 100644
--- a/tests/snapshot.rc
+++ b/tests/snapshot.rc
@@ -228,7 +228,7 @@ function create_n_snapshots() {
local snap_name=$3
local ret=0
for i in `seq 1 $snap_count`; do
- $CLI_1 snapshot create $snap_name$i ${vol}&
+ $CLI_1 snapshot create $snap_name$i ${vol} no-timestamp &
wait $PID_1
@@ -337,7 +337,7 @@ function snap_create()
while [ $i -lt $limit ]
- $cli_index snapshot create snap$i $volname
+ $cli_index snapshot create snap$i $volname no-timestamp