Print this page
3751 ALUA mode: "/usr/demo/comstar/bin/aluaadm enable 1" sets "ALUA Node" = 0
Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/stmfproxy/aluaadm/aluaadm.c
          +++ new/usr/src/cmd/stmfproxy/aluaadm/aluaadm.c
↓ open down ↓ 163 lines elided ↑ open up ↑
 164  164   *
 165  165   * Purpose: enable alua mode
 166  166   *
 167  167   */
 168  168  /*ARGSUSED*/
 169  169  static int
 170  170  enableAluaFunc(int operandLen, char *operands[], cmdOptions_t *options,
 171  171      void *args)
 172  172  {
 173  173          uint8_t node_id = 0;
 174      -        if (operands[0][1] == '1') {
      174 +        if (operands[0][0] == '1') {
 175  175                  node_id = 1;
 176  176          }
 177  177          return (stmfSetAluaState(B_TRUE, node_id));
 178  178  }
 179  179  
 180  180  
 181  181  /*
 182  182   * input:
 183  183   *  execFullName - exec name of program (argv[0])
 184  184   *
↓ open down ↓ 56 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX