From fe98c2902fd13dac93e5add60d1f10b2cef8ae37 Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Mon, 12 Aug 2013 22:09:45 +0530 Subject: glusterd/cli: Geo-Replication "status detail" cmd Provides detailed status info in the following format MASTER SLAVE NODE HEALTH UPTIME FILES SYNCD FILES PENDING BYTES PENDING DELETES PENDING ----------------------------------------------------------------------------------- This patch introdues "status detail" command to show crawl related information in CLI. These values are "pulled" from gsyncd when "status detail" is executed. Change-Id: I1fdaf7180eacce054a864d34971dc160bd7301e1 BUG: 990420 Signed-off-by: Venky Shankar Reviewed-on: http://review.gluster.org/5590 Tested-by: Gluster Build System Reviewed-by: Avra Sengupta Tested-by: Avra Sengupta Reviewed-by: Anand Avati --- cli/src/cli.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'cli/src/cli.h') diff --git a/cli/src/cli.h b/cli/src/cli.h index 259f3bd39..9b3afff36 100644 --- a/cli/src/cli.h +++ b/cli/src/cli.h @@ -147,6 +147,18 @@ struct cli_local { #endif }; +struct gf_cli_gsync_detailed_status_ { + char *node; + char *master; + char *slave; + char *health; + char *uptime; + char *files_syncd; + char *files_pending; + char *bytes_pending; + char *deletes_pending; +}; + struct cli_volume_status { int port; int online; @@ -165,6 +177,8 @@ struct cli_volume_status { #endif }; +typedef struct gf_cli_gsync_detailed_status_ gf_cli_gsync_status_t; + typedef struct cli_volume_status cli_volume_status_t; typedef struct cli_local cli_local_t; -- cgit