From cbe617301a264d4193c507c06e77a8445cdf8f25 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Thu, 25 Feb 2010 15:37:56 +0000 Subject: trace: Print st_dev for struct stat Signed-off-by: Shehjar Tikoo Signed-off-by: Anand V. Avati BUG: 473 (Trace misreporting pre/post attributes for setattr.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=473 --- xlators/debug/trace/src/trace.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'xlators/debug/trace') 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) -- cgit