12a457
From 767c5197477639c9a185fbd208a00a43c03e3ef9 Mon Sep 17 00:00:00 2001
12a457
From: Krutika Dhananjay <kdhananj@redhat.com>
12a457
Date: Thu, 24 Mar 2016 20:43:05 +0530
12a457
Subject: [PATCH 43/80] debug/trace: Print {acm}times as integers
12a457
12a457
        Backport of: http://review.gluster.org/#/c/13826/
12a457
        release-3.7 patch: http://review.gluster.org/13844
12a457
12a457
This helps in debugging issues with mtime, ctime etc.
12a457
12a457
Change-Id: I075e89ad245c246f5d42aa185a19c5885797cb66
12a457
BUG: 1298724
12a457
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
12a457
Reviewed-on: https://code.engineering.redhat.com/gerrit/71398
12a457
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
12a457
Tested-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
12a457
---
12a457
 xlators/debug/trace/src/trace.c |   26 +++++++++++++-------------
12a457
 1 files changed, 13 insertions(+), 13 deletions(-)
12a457
12a457
diff --git a/xlators/debug/trace/src/trace.c b/xlators/debug/trace/src/trace.c
12a457
index 5bbd07a..c809254 100644
12a457
--- a/xlators/debug/trace/src/trace.c
12a457
+++ b/xlators/debug/trace/src/trace.c
12a457
@@ -38,19 +38,19 @@ trace_stat_to_str(struct iatt *buf, char *str, size_t len)
12a457
         gf_time_fmt (ctime_buf, sizeof ctime_buf, buf->ia_ctime,
12a457
                      gf_timefmt_dirent);
12a457
 
12a457
-        snprintf (str, len,
12a457
-                  "gfid=%s ino=%"PRIu64", mode=%o, "
12a457
-                  "nlink=%"GF_PRI_NLINK", uid=%u, "
12a457
-                  "gid=%u, size=%"PRIu64", "
12a457
-                  "blocks=%"PRIu64", atime=%s, "
12a457
-                  "mtime=%s, ctime=%s",
12a457
-                  uuid_utoa (buf->ia_gfid),
12a457
-                  buf->ia_ino,
12a457
-                  st_mode_from_ia (buf->ia_prot, buf->ia_type),
12a457
-                  buf->ia_nlink, buf->ia_uid,
12a457
-                  buf->ia_gid, buf->ia_size,
12a457
-                  buf->ia_blocks, atime_buf,
12a457
-                  mtime_buf, ctime_buf);
12a457
+        snprintf (str, len, "gfid=%s ino=%"PRIu64", mode=%o, "
12a457
+                  "nlink=%"GF_PRI_NLINK", uid=%u, gid=%u, size=%"PRIu64", "
12a457
+                  "blocks=%"PRIu64", atime=%s mtime=%s ctime=%s "
12a457
+                  "atime_sec=%"PRIu32", atime_nsec=%"PRIu32","
12a457
+                  " mtime_sec=%"PRIu32", mtime_nsec=%"PRIu32", "
12a457
+                  "ctime_sec=%"PRIu32", ctime_nsec=%"PRIu32"",
12a457
+                  uuid_utoa (buf->ia_gfid), buf->ia_ino,
12a457
+                  st_mode_from_ia (buf->ia_prot, buf->ia_type), buf->ia_nlink,
12a457
+                  buf->ia_uid, buf->ia_gid, buf->ia_size, buf->ia_blocks,
12a457
+                  atime_buf, mtime_buf, ctime_buf,
12a457
+                  buf->ia_atime, buf->ia_atime_nsec,
12a457
+                  buf->ia_mtime, buf->ia_mtime_nsec,
12a457
+                  buf->ia_ctime, buf->ia_ctime_nsec);
12a457
 }
12a457
 
12a457
 
12a457
-- 
12a457
1.7.1
12a457