diff options
| author | Amar Tumballi <amar@gluster.com> | 2011-03-16 09:43:04 +0000 | 
|---|---|---|
| committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-17 11:59:00 -0700 | 
| commit | d643c1093a89398de6cbe333aeea5cf91a56b3ad (patch) | |
| tree | 6eda56eea6f8747a3c76ff89aa3977d853e28078 /xlators/cluster/dht/src/dht-diskusage.c | |
| parent | 7df49c62422d33d19eaebeddd3fcdacccc9c7bce (diff) | |
cluster/dht: log enhancements
Signed-off-by: Shishir Gowda <shishirng@gluster.com>
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 2346 (Log message enhancements in GlusterFS - phase 1)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2346
Diffstat (limited to 'xlators/cluster/dht/src/dht-diskusage.c')
| -rw-r--r-- | xlators/cluster/dht/src/dht-diskusage.c | 13 | 
1 files changed, 4 insertions, 9 deletions
diff --git a/xlators/cluster/dht/src/dht-diskusage.c b/xlators/cluster/dht/src/dht-diskusage.c index e526d1aec0c..75953781ef7 100644 --- a/xlators/cluster/dht/src/dht-diskusage.c +++ b/xlators/cluster/dht/src/dht-diskusage.c @@ -47,8 +47,11 @@ dht_du_info_cbk (call_frame_t *frame, void *cookie, xlator_t *this,          conf = this->private;          prev = cookie; -        if (op_ret == -1) +        if (op_ret == -1) { +                gf_log (this->name, GF_LOG_DEBUG, +                        "failed to get disk info from %s", prev->this->name);                  goto out; +        }          if (statvfs && statvfs->f_blocks) {                  percent = (statvfs->f_bfree * 100) / statvfs->f_blocks; @@ -92,15 +95,11 @@ dht_get_du_info_for_subvol (xlator_t *this, int subvol_idx)          statfs_frame = create_frame (this, pool);          if (!statfs_frame) { -                gf_log (this->name, GF_LOG_ERROR, -                        "Out of memory");                  goto err;          }          statfs_local = dht_local_init (statfs_frame);          if (!statfs_local) { -                gf_log (this->name, GF_LOG_ERROR, -                        "Out of memory");                  goto err;          } @@ -139,15 +138,11 @@ dht_get_du_info (call_frame_t *frame, xlator_t *this, loc_t *loc)                  statfs_frame = copy_frame (frame);                  if (!statfs_frame) { -                        gf_log (this->name, GF_LOG_ERROR, -                                "Out of memory");                          goto err;                  }                  statfs_local = dht_local_init (statfs_frame);                  if (!statfs_local) { -                        gf_log (this->name, GF_LOG_ERROR, -                                "Out of memory");                          goto err;                  }  | 
