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.h | |
| 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.h')
| -rw-r--r-- | cli/src/cli.h | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/src/cli.h b/cli/src/cli.h index 25b17da4968..74e1423f5db 100644 --- a/cli/src/cli.h +++ b/cli/src/cli.h @@ -132,12 +132,14 @@ struct cli_volume_status {          uint64_t       free_inodes;          char          *brick;          char          *pid_str; -        char          *fs_name;          char          *free;          char          *total; +#ifdef GF_LINUX_HOST_OS +        char          *fs_name;          char          *mount_options;          char          *device;          char          *inode_size; +#endif  };  typedef struct cli_volume_status cli_volume_status_t;  | 
