summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Griffiths-Todd <Paul.Griffiths-Todd@high-availability.com>2013-04-25 21:56:34 +0200
committerGordon Ross <gwr@nexenta.com>2013-05-27 23:03:27 -0400
commit293058931b0d2be50da82ce72d3249df01389444 (patch)
treea7b70c657b8b8461d93d846ad05a4c02987df766
parente1c99a74dc27ba07cba2cd8181f462ea9a5b0dba (diff)
downloadillumos-joyent-293058931b0d2be50da82ce72d3249df01389444.tar.gz
3751 ALUA mode: "/usr/demo/comstar/bin/aluaadm enable 1" sets "ALUA Node" = 0
Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com> Reviewed by: SaÊío Kiselkov <skiselkov.ml@gmail.com> Reviewed by: Garrett D'Amore <garrett.damore@gmail.com> Approved by: Gordon Ross <gwr@nexenta.com>
-rw-r--r--usr/src/cmd/stmfproxy/aluaadm/aluaadm.c2
-rw-r--r--usr/src/man/man1m/stmfadm.1m2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/stmfproxy/aluaadm/aluaadm.c b/usr/src/cmd/stmfproxy/aluaadm/aluaadm.c
index 5fa1504793..3a8a21705f 100644
--- a/usr/src/cmd/stmfproxy/aluaadm/aluaadm.c
+++ b/usr/src/cmd/stmfproxy/aluaadm/aluaadm.c
@@ -171,7 +171,7 @@ enableAluaFunc(int operandLen, char *operands[], cmdOptions_t *options,
void *args)
{
uint8_t node_id = 0;
- if (operands[0][1] == '1') {
+ if (operands[0][0] == '1') {
node_id = 1;
}
return (stmfSetAluaState(B_TRUE, node_id));
diff --git a/usr/src/man/man1m/stmfadm.1m b/usr/src/man/man1m/stmfadm.1m
index 3fe7cd31ed..8e9f5d3b79 100644
--- a/usr/src/man/man1m/stmfadm.1m
+++ b/usr/src/man/man1m/stmfadm.1m
@@ -926,7 +926,7 @@ Offline a logical unit currently registered with the STMF.
.ad
.sp .6
.RS 4n
-Online the specified target.
+Offline the specified target.
.RE
.sp