summaryrefslogtreecommitdiffstats
path: root/xlators/debug/trace/src
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-02-25 15:37:56 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-03-04 03:12:48 -0800
commitcbe617301a264d4193c507c06e77a8445cdf8f25 (patch)
treea531810b1be3710b96f3bcdd894cca70056a6f5f /xlators/debug/trace/src
parentdc3e568cfa5a37e531a18f2b3628b28fbcb41f1a (diff)
trace: Print st_dev for struct stat
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 473 (Trace misreporting pre/post attributes for setattr.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=473
Diffstat (limited to 'xlators/debug/trace/src')
-rw-r--r--xlators/debug/trace/src/trace.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/xlators/debug/trace/src/trace.c b/xlators/debug/trace/src/trace.c
index e559bf8b5..e28e4e966 100644
--- a/xlators/debug/trace/src/trace.c
+++ b/xlators/debug/trace/src/trace.c
@@ -76,11 +76,15 @@ trace_stat_to_str (struct stat *stbuf)
localtime (&stbuf->st_ctime));
asprint_ret_value = asprintf (&statstr,
- "st_ino=%"PRIu64", st_mode=%o, st_nlink=%"GF_PRI_NLINK", "
+ "st_ino=%"PRIu64", st_dev=%"PRIu64
+ ", st_mode=%o, st_nlink=%"GF_PRI_NLINK", "
"st_uid=%d, st_gid=%d, st_size=%"PRId64", st_blocks=%"PRId64
", st_atime=%s, st_mtime=%s, st_ctime=%s",
- stbuf->st_ino, stbuf->st_mode, stbuf->st_nlink, stbuf->st_uid,
- stbuf->st_gid, stbuf->st_size, stbuf->st_blocks, atime_buf,
+ stbuf->st_ino, stbuf->st_dev,
+ stbuf->st_mode, stbuf->st_nlink,
+ stbuf->st_uid,
+ stbuf->st_gid, stbuf->st_size,
+ stbuf->st_blocks, atime_buf,
mtime_buf, ctime_buf);
if (asprint_ret_value < 0)