diff options
Diffstat (limited to 'libglusterfs/src')
-rw-r--r-- | libglusterfs/src/common-utils.c | 6 | ||||
-rw-r--r-- | libglusterfs/src/common-utils.h | 1 | ||||
-rw-r--r-- | libglusterfs/src/graph.c | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c index bfc2fc6ade3..80d9d294053 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 diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h index 26dcd314742..e17029dbaf9 100644 --- a/libglusterfs/src/common-utils.h +++ b/libglusterfs/src/common-utils.h @@ -480,6 +480,7 @@ typedef enum { gf_timefmt_Ymd_T, /* YYYY/MM-DD-hh:mm:ss */ gf_timefmt_bdT, /* ddd DD hh:mm:ss */ gf_timefmt_F_HMS, /* YYYY-MM-DD hhmmss */ + gf_timefmt_dirent, gf_timefmt_last } gf_timefmts; 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); |