__u16 ctrlist[2048];
const char *namespace_id = "namespace to attach";
- const char *cont = "comma-sep controller id list";
+ const char *cont = "optional comma-sep controller id list";
struct config {
char *cntlist;
}
num = argconfig_parse_comma_sep_array(cfg.cntlist, list, 2047);
- if (num < 1) {
+ if (!num) {
+ fprintf(stderr, "warning: empty controller-id list will result in no actual change in namespace attachment\n");
+ }
+
+ if (num == -1) {
fprintf(stderr, "%s: controller id list is required\n",
cmd->name);
err = -EINVAL;