summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/graph.c
diff options
context:
space:
mode:
authorAnand Avati <avati@redhat.com>2014-03-27 08:03:52 -0700
committerAnand Avati <avati@redhat.com>2014-04-20 18:07:44 -0700
commit11473a6a10aaa5e62050e7e52115e2f8f10de124 (patch)
tree83859e3e12a2030e486ff6ec029eafdceafc0889 /libglusterfs/src/graph.c
parent81b32ab6e1c950577d0f2779db67283303e3e705 (diff)
common-utils: new dirent compatible time fmt
Introduce a new time format without "/" and spaces, in order to be used in (virtual) filenames. Change-Id: I468be54f1ec7f45265add4c458e19d95567439f7 BUG: 1089216 Signed-off-by: Anand Avati <avati@redhat.com> Reviewed-on: http://review.gluster.org/7507 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'libglusterfs/src/graph.c')
-rw-r--r--libglusterfs/src/graph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c
index e76df1ca560..b4eddd826f6 100644
--- a/libglusterfs/src/graph.c
+++ b/libglusterfs/src/graph.c
@@ -367,7 +367,7 @@ fill_uuid (char *uuid, int size)
strerror (errno));
}
- gf_time_fmt (now_str, sizeof now_str, tv.tv_sec, gf_timefmt_Ymd_T);
+ gf_time_fmt (now_str, sizeof now_str, tv.tv_sec, gf_timefmt_dirent);
snprintf (uuid, size, "%s-%d-%s:%"GF_PRI_SUSECONDS,
hostname, getpid(), now_str, tv.tv_usec);