diff options
| author | hari gowtham <hgowtham@redhat.com> | 2015-09-10 20:15:35 +0530 | 
|---|---|---|
| committer | Dan Lambright <dlambrig@redhat.com> | 2015-09-29 08:44:58 -0700 | 
| commit | bb61acbda8e92b84e8f0b827bdc369a838dd978c (patch) | |
| tree | 759ab5be5fb5bdb04fbf03f09e3c0503898dd683 /cli/src/cli.h | |
| parent | 50bf70fe5a538cbcffef058126a4d25155c19bf4 (diff) | |
Tier/cli: tier related information in volume info xml
        back port of : http://review.gluster.org/#/c/12158/
gluster v info didnt differentiate the hot bricks and cold bricks
and other few values
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput>
  <opRet>0</opRet>
  <opErrno>0</opErrno>
  <opErrstr/>
  <volInfo>
    <volumes>
      <volume>
        <name>rmbr</name>
        <id>72d223fc-96ba-4f4a-ac6e-0d0bc16ef127</id>
        <status>1</status>
        <statusStr>Started</statusStr>
        <brickCount>3</brickCount>
        <distCount>1</distCount>
        <stripeCount>1</stripeCount>
        <replicaCount>1</replicaCount>
        <disperseCount>0</disperseCount>
        <redundancyCount>0</redundancyCount>
        <type>5</type>
        <typeStr>Tier</typeStr>
        <transport>0</transport>
        <xlators/>
        <bricks>
          <hotBricks>
            <hotBrickType>Distribute</hotBrickType>
            <numberOfBricks>1</numberOfBricks>
            <brick uuid="81">v1:/hb1<name>v1:/hb1</name><hostUuid>81</hostUuid></brick>
          </hotBricks>
          <coldBricks>
            <coldBrickType>Distribute</coldBrickType>
            <numberOfBricks>2</numberOfBricks>
            <brick uuid="81">v1:/br1<name>v1:/br1</name><hostUuid>81</hostUuid></brick>
            <brick uuid="81">v1:/br2<name>v1:/br2</name><hostUuid>81</hostUuid></brick>
            <count>0</count>
          </coldBricks>
        </bricks>
      </volume>
    </volumes>
  </volInfo>
</cliOutput>
>Change-Id: I6e52541bb6d8a6a17e17bfcb42434beaac13db56
>BUG: 1261837
>Signed-off-by: hari gowtham <hgowtham@redhat.com>
>Reviewed-on: http://review.gluster.org/12158
>Tested-by: NetBSD Build System <jenkins@build.gluster.org>
>Tested-by: Gluster Build System <jenkins@build.gluster.com>
>Reviewed-by: Dan Lambright <dlambrig@redhat.com>
>Tested-by: Dan Lambright <dlambrig@redhat.com>
Signed-off-by: Hari Gowtham <hgowtham@redhat.com>
Change-Id: I6e504138973bcd3fa5ba93f1ccc812f1baacf6d9
BUG: 1258338
Reviewed-on: http://review.gluster.org/12251
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Dan Lambright <dlambrig@redhat.com>
Tested-by: Dan Lambright <dlambrig@redhat.com>
Diffstat (limited to 'cli/src/cli.h')
| -rw-r--r-- | cli/src/cli.h | 13 | 
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/src/cli.h b/cli/src/cli.h index a4867e6d9c2..926d7014927 100644 --- a/cli/src/cli.h +++ b/cli/src/cli.h @@ -47,6 +47,19 @@ enum argp_option_keys {  	ARGP_PORT_KEY = 'p',  }; +typedef enum { +        COLD_BRICK_COUNT, +        COLD_TYPE, +        COLD_DIST_COUNT, +        COLD_REPLICA_COUNT, +        COLD_DISPERSE_COUNT, +        COLD_REDUNDANCY_COUNT, +        HOT_BRICK_COUNT, +        HOT_TYPE, +        HOT_REPLICA_COUNT, +        MAX +} values; +  #define GLUSTER_MODE_SCRIPT    (1 << 0)  #define GLUSTER_MODE_ERR_FATAL (1 << 1)  #define GLUSTER_MODE_XML       (1 << 2)  | 
