summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/common-utils.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/common-utils.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/common-utils.c')
-rw-r--r--libglusterfs/src/common-utils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c
index bfc2fc6ad..80d9d2940 100644
--- a/libglusterfs/src/common-utils.c
+++ b/libglusterfs/src/common-utils.c
@@ -2300,14 +2300,16 @@ static const char *__gf_timefmts[] = {
"%F %T",
"%Y/%m/%d-%T",
"%b %d %T",
- "%F %H%M%S"
+ "%F %H%M%S",
+ "%Y-%m-%d-%T",
};
static const char *__gf_zerotimes[] = {
"0000-00-00 00:00:00",
"0000/00/00-00:00:00",
"xxx 00 00:00:00",
- "0000-00-00 000000"
+ "0000-00-00 000000",
+ "0000-00-00-00:00:00",
};
void