From 91cd0eae2cc1d96cbafa6457835f146503355238 Mon Sep 17 00:00:00 2001 From: Kaushal M Date: Wed, 4 Sep 2013 11:50:40 +0530 Subject: cli,glusterd: Task parameters in xml output This patch introduces task parameters for the asynchronus task shown in volume status. The parameters are only given for xml output. The parameters shown currently are, - source and destination bricks for replace-brick tasks ...... Replace brick 3d1a1005-9d2e-4ae0-bd62-577bc1d333a3 1 archm:/export/test4 archm:/export/test-replace1 ...... - list of bricks being removed for remove-brick tasks ...... Remove brick 901c20ca-0da2-41de-8669-5f0caca6b846 1 archm:/export/test2 archm:/export/test3 ...... The changes for non-xml output will be done in a subsequent patch. Change-Id: I322afe2f83ed8adeddb99f7962c25911204dc204 BUG: 916577 Signed-off-by: Kaushal M Reviewed-on: http://review.gluster.org/5771 Reviewed-by: Vijay Bellur Tested-by: Vijay Bellur --- xlators/mgmt/glusterd/src/glusterd.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd.h') diff --git a/xlators/mgmt/glusterd/src/glusterd.h b/xlators/mgmt/glusterd/src/glusterd.h index 18367d7c9..227efdd6b 100644 --- a/xlators/mgmt/glusterd/src/glusterd.h +++ b/xlators/mgmt/glusterd/src/glusterd.h @@ -247,6 +247,8 @@ struct glusterd_rebalance_ { uuid_t rebalance_id; double rebalance_time; glusterd_op_t op; + dict_t *dict; /* Dict to store misc information + * like list of bricks being removed */ }; typedef struct glusterd_rebalance_ glusterd_rebalance_t; -- cgit