From 2d919eab43dfbcfbaa2617b161f3f4bdd1381e96 Mon Sep 17 00:00:00 2001 From: Gaurav Kumar Garg Date: Thu, 9 Apr 2015 15:36:20 +0530 Subject: glusterd: gluster volume status should show status of bitrot and scrubber daemon Command gluster volume status should show the status of bitrot and scrubber daemon and its pid information. Along with displaying bitrot and scrubber daemon information in gluster volume status command there should be command to show its individual status separately. Command to show individual status of bitrot and scrubber daemon will following. command to show only bitd daemon information will be gluster volume status bitd command to show only scrubber daemon information gluster volume status scrub Change-Id: Id86aae1156c8c599347c98e2a538f294d37376e4 BUG: 1218123 Signed-off-by: Gaurav Kumar Garg Reviewed-on: http://review.gluster.org/10175 Reviewed-by: Kaushal M Tested-by: Kaushal M (cherry picked from commit da1416051d19d612d131acfde8589bc8658979b5) Reviewed-on: http://review.gluster.org/10519 Tested-by: Gluster Build System --- rpc/xdr/src/cli1-xdr.x | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'rpc') diff --git a/rpc/xdr/src/cli1-xdr.x b/rpc/xdr/src/cli1-xdr.x index 189df0e0ccc..74d12cc2c7d 100644 --- a/rpc/xdr/src/cli1-xdr.x +++ b/rpc/xdr/src/cli1-xdr.x @@ -142,22 +142,24 @@ enum gf1_cli_top_op { /* The unconventional hex numbers help us perform bit-wise operations which reduces complexity */ enum gf_cli_status_type { - GF_CLI_STATUS_NONE = 0x0000, - GF_CLI_STATUS_MEM = 0x0001, /*00000000000001*/ - GF_CLI_STATUS_CLIENTS = 0x0002, /*00000000000010*/ - GF_CLI_STATUS_INODE = 0x0004, /*00000000000100*/ - GF_CLI_STATUS_FD = 0x0008, /*00000000001000*/ - GF_CLI_STATUS_CALLPOOL = 0x0010, /*00000000010000*/ - GF_CLI_STATUS_DETAIL = 0x0020, /*00000000100000*/ - GF_CLI_STATUS_TASKS = 0x0040, /*0000001000000*/ - GF_CLI_STATUS_MASK = 0x00FF, /*00000011111111 Used to get the op*/ - GF_CLI_STATUS_VOL = 0x0100, /*00000100000000*/ - GF_CLI_STATUS_ALL = 0x0200, /*00001000000000*/ - GF_CLI_STATUS_BRICK = 0x0400, /*00010000000000*/ - GF_CLI_STATUS_NFS = 0x0800, /*00100000000000*/ - GF_CLI_STATUS_SHD = 0x1000, /*01000000000000*/ - GF_CLI_STATUS_QUOTAD = 0x2000, /*10000000000000*/ - GF_CLI_STATUS_SNAPD = 0x4000 /*100000000000000*/ + GF_CLI_STATUS_NONE = 0x000000, + GF_CLI_STATUS_MEM = 0x000001, /*000000000000001*/ + GF_CLI_STATUS_CLIENTS = 0x000002, /*000000000000010*/ + GF_CLI_STATUS_INODE = 0x000004, /*000000000000100*/ + GF_CLI_STATUS_FD = 0x000008, /*000000000001000*/ + GF_CLI_STATUS_CALLPOOL = 0x000010, /*000000000010000*/ + GF_CLI_STATUS_DETAIL = 0x000020, /*000000000100000*/ + GF_CLI_STATUS_TASKS = 0x000040, /*00000001000000*/ + GF_CLI_STATUS_MASK = 0x0000FF, /*000000011111111 Used to get the op*/ + GF_CLI_STATUS_VOL = 0x000100, /*00000000100000000*/ + GF_CLI_STATUS_ALL = 0x000200, /*00000001000000000*/ + GF_CLI_STATUS_BRICK = 0x000400, /*00000010000000000*/ + GF_CLI_STATUS_NFS = 0x000800, /*00000100000000000*/ + GF_CLI_STATUS_SHD = 0x001000, /*00001000000000000*/ + GF_CLI_STATUS_QUOTAD = 0x002000, /*00010000000000000*/ + GF_CLI_STATUS_SNAPD = 0x004000, /*00100000000000000*/ + GF_CLI_STATUS_BITD = 0x008000, /*01000000000000000*/ + GF_CLI_STATUS_SCRUB = 0x010000 /*10000000000000000*/ }; /* Identifiers for snapshot clis */ -- cgit