Commit 98a2ec3e authored by Paul Luse's avatar Paul Luse Committed by Jim Harris
Browse files

blobcli: minor fixes



- fixed issue with token parsing where only a space was desired
and some other junk ended up in there that would cause issues
with parsing filenames because of the .
- made s few fatal error exits consistent

Change-Id: Ib7fa07416881df42db88db7d94542963e492ca9b
Signed-off-by: default avatarPaul Luse <paul.e.luse@intel.com>
Reviewed-on: https://review.gerrithub.io/382911


Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
parent cf0d7736
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -851,7 +851,7 @@ load_bs_cb(void *arg1, struct spdk_blob_store *bs, int bserrno)

	default:
		/* should never get here */
		spdk_app_stop(-1);
		exit(-1);
		break;
	}
}
@@ -1291,7 +1291,7 @@ cli_shell(void *arg1, void *arg2)
		cli_context->argv[cli_context->argc] = strdup(tok);
		tok_len = strlen(tok);
		cli_context->argc++;
		tok = strtok(NULL, " ,.-");
		tok = strtok(NULL, " ");
	}

	/* replace newline on last arg with null */
@@ -1375,7 +1375,7 @@ cli_start(void *arg1, void *arg2)
		break;
	default:
		/* should never get here */
		spdk_app_stop(-1);
		exit(-1);
		break;
	}
}
@@ -1432,7 +1432,7 @@ main(int argc, char **argv)
		printf("To create a config file named 'blobcli.conf' for your NVMe device:\n");
		printf("   <path to spdk>/scripts/gen_nvme.sh > blobcli.conf\n");
		printf("and then re-run the cli tool.\n");
		exit(1);
		exit(-1);
	}

	/*