summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-replace-brick.c
diff options
context:
space:
mode:
authorNandaja Varma <nandaja.varma@gmail.com>2015-07-09 11:37:16 +0530
committerAtin Mukherjee <amukherj@redhat.com>2015-07-18 05:08:04 -0700
commitb2673ae923f3e4651f4c642a9b88f5d200a25585 (patch)
treed756b502b6fd7f82feb67d53182f043d8aad02f0 /xlators/mgmt/glusterd/src/glusterd-replace-brick.c
parent0ad8bfb028d7916f7940bb48f0df616d164f74de (diff)
glusterd: Porting the left out gf_log_callingfns to new framework
Change-Id: I1b0ad54238895475ddbacc4fffacac8dc6e887fe BUG: 1235538 Signed-off-by: Nandaja Varma <nandaja.varma@gmail.com> Reviewed-on: http://review.gluster.org/11590 Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-replace-brick.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-replace-brick.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-replace-brick.c b/xlators/mgmt/glusterd/src/glusterd-replace-brick.c
index 9c8b2946fc7..4ba7d8d51e9 100644
--- a/xlators/mgmt/glusterd/src/glusterd-replace-brick.c
+++ b/xlators/mgmt/glusterd/src/glusterd-replace-brick.c
@@ -57,13 +57,15 @@ glusterd_handle_replicate_replace_brick (glusterd_volinfo_t *volinfo,
ret = sys_lsetxattr (brickinfo->path, GF_AFR_DIRTY, dirty,
sizeof (dirty), 0);
if (ret == -1) {
- gf_log (THIS->name, GF_LOG_ERROR, "Failed to set extended"
+ gf_msg (THIS->name, GF_LOG_ERROR, errno,
+ GD_MSG_SETXATTR_FAIL, "Failed to set extended"
" attribute %s : %s.", GF_AFR_DIRTY, strerror (errno));
goto out;
}
if (mkdtemp (tmpmount) == NULL) {
- gf_log (THIS->name, GF_LOG_ERROR,
+ gf_msg (THIS->name, GF_LOG_ERROR, errno,
+ GD_MSG_DIR_OP_FAILED,
"failed to create a temporary mount directory.");
ret = -1;
goto out;
@@ -94,7 +96,8 @@ glusterd_handle_replicate_replace_brick (glusterd_volinfo_t *volinfo,
brickinfo->brick_id, sizeof (brickinfo->brick_id),
0);
if (ret == -1)
- gf_log (THIS->name, GF_LOG_ERROR, "Failed to set extended"
+ gf_msg (THIS->name, GF_LOG_ERROR, errno,
+ GD_MSG_SETXATTR_FAIL, "Failed to set extended"
" attribute %s : %s", GF_AFR_REPLACE_BRICK,
strerror (errno));
gf_umount_lazy (THIS->name, tmpmount, 1);
@@ -103,7 +106,7 @@ lock:
out:
if (pid)
GF_FREE (pid);
- gf_log ("", GF_LOG_DEBUG, "Returning with ret");
+ gf_msg_debug ("glusterd", 0, "Returning with ret");
return ret;
}