path: root/xlators/mgmt/glusterd/src/glusterd-rebalance.c
diff options
authorhari gowtham <>2017-07-25 18:07:05 +0530
committerAtin Mukherjee <>2017-08-16 15:38:49 +0000
commitdef09c4fbb2805618715c5a125ddf482d7e53de3 (patch)
tree24841f29b93959b1090a6ad58f248323266e7af7 /xlators/mgmt/glusterd/src/glusterd-rebalance.c
parent468ca877807625817b72921d1e9585036687b640 (diff)
Infra to indentify process
Problem: currently we can't identify which process is running and how many instances of it are available. Fix: name the process when its spawned and send it to the server and save it in the client_t The processes that abide by this change from this patch are: 1) fuse mount, 2) rebalance, 3) selfheal, 4) tier, 5) quota, 6) snapshot, 7) brick. 8) gfapi (by default. gfapi.<processname> if processname is found) Note: fuse gets a process name as native-fuse-client by default. If the user gives a name for the fuse and spawns it, it will be of this type --process-name native-fuse-client.<name_specified>. This can be made use by the process like aux mount done by quota, geo-rep, etc by adding another option in the aux mount " -o process-name=gsync_mount" Updates: #178 Signed-off-by: hari gowtham <> Change-Id: Ie4d02257216839338043737691753bab9a974d5e Reviewed-on: Smoke: Gluster Build System <> Tested-by: hari gowtham <> Reviewed-by: Amar Tumballi <> CentOS-regression: Gluster Build System <> Reviewed-by: Atin Mukherjee <> Reviewed-by: Aravinda VK <> Reviewed-by: Niels de Vos <>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-rebalance.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-rebalance.c b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
index 4c24b99..70b391e 100644
--- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c
+++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
@@ -289,6 +289,7 @@ glusterd_handle_defrag_start (glusterd_volinfo_t *volinfo, char *op_errstr,
"--xlator-option", "*replicate*.entry-self-heal=off",
"--xlator-option", "*dht.readdir-optimize=on",
+ "--process-name", "rebalance",
if (volinfo->type == GF_CLUSTER_TYPE_TIER) {