We under-report the number of enabled namespaces when those namespaces
are claimed by another interface. This is due to the fact that
ndctl_namespace_enable() returns a postive number when the enable
successfully triggers a different device to go active.
Reported-by: Linda Knippers <linda.knippers(a)hpe.com>
Tested-by: Linda Knippers <linda.knippers(a)hpe.com>
Signed-off-by: Dan Williams <dan.j.williams(a)intel.com>
---
builtin-xaction-namespace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin-xaction-namespace.c b/builtin-xaction-namespace.c
index f4645d866e0f..28999b3f8311 100644
--- a/builtin-xaction-namespace.c
+++ b/builtin-xaction-namespace.c
@@ -621,7 +621,7 @@ static int do_xaction_namespace(const char *namespace,
case ACTION_CREATE:
return namespace_reconfig(region, ndns);
}
- if (rc == 0)
+ if (rc >= 0)
success++;
}
}
Show replies by date