diff options
| author | Rajesh Amaravathi <rajesh@redhat.com> | 2012-01-31 17:04:37 +0530 | 
|---|---|---|
| committer | Vijay Bellur <vijay@gluster.com> | 2012-02-18 00:03:00 -0800 | 
| commit | df12073c4cc8340eb85b5d25c2da84fc21ec1f38 (patch) | |
| tree | bea7be987249a13120faeefd61f92362a0ab61bc /cli/src/cli-rpc-ops.c | |
| parent | acb691f8908049e651fc12ff1cf01e9cf4ddde65 (diff) | |
cli/glusterd: volume status modification
* Method of getting mount details of brick has been
  changed from direct reading of /etc/mtab to using
  libc's <mntent.h>, providing a fairly portable
  version independent of different linux distributions.
  It is only supported on Linux though.
* Wrong fs type (rootfs for /) in fedora-based
  distributions has been fixed.
* Allows options (detail, mem, fd, et al) to "all" volumes.
* Use of the fnmatch's GNU extension flag,
  FNM_LEADING_DIR is restricted to Linux hosts only.
  In case of non-Linux hosts, partial match functionality
  is absent.
Change-Id: I102ce808c192ef635c2536a2167101be0aa0fc50
BUG: 786367
Signed-off-by: Rajesh Amaravathi <rajesh@redhat.com>
Reviewed-on: http://review.gluster.com/2705
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'cli/src/cli-rpc-ops.c')
| -rw-r--r-- | cli/src/cli-rpc-ops.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index 07a2f9fc7be..6ed380bffa8 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -4956,7 +4956,7 @@ gf_cli3_1_status_cbk (struct rpc_req *req, struct iovec *iov,          char                           *volname        = NULL;          dict_t                         *dict           = NULL;          gf_cli_rsp                      rsp            = {0,}; -        cli_volume_status_t                 status         = {0}; +        cli_volume_status_t             status         = {0};          if (req->rpc_status == -1)                  goto out; @@ -5044,10 +5044,10 @@ gf_cli3_1_status_cbk (struct rpc_req *req, struct iovec *iov,          if (ret)                  goto out; -        cli_out ("\nSTATUS OF VOLUME: %s", volname); +        cli_out ("\nStatus of volume: %s", volname);          if ((cmd & GF_CLI_STATUS_DETAIL) == 0) -                cli_out ("BRICK\t\t\t\t\t\t\tPORT\tONLINE\tPID"); +                cli_out ("Brick\t\t\t\t\t\t\tPort\tOnline\tPid");          for (i = 0; i < count; i++) {  | 
