Improve help/usage strings for iscsi-ls and iscsi-inq

For help output, also print the syntax for the iscsi url required.
This commit is contained in:
Ronnie Sahlberg
2011-01-09 10:36:53 +11:00
parent b2c4bdcd43
commit 7b5ff1095c
4 changed files with 87 additions and 11 deletions

View File

@@ -29,11 +29,6 @@
#include "iscsi-private.h"
#include "slist.h"
#define ISCSI_URL_SYNTAX "\"iscsi://[<username>[%<password>]@]" \
"<host>[:<port>]/<target-iqn>/<lun>\""
#define ISCSI_PURL_SYNTAX "\"iscsi://[<username>[%<password>]@]" \
"<host>[:<port>]\""
struct iscsi_context *
iscsi_create_context(const char *initiator_name)
{
@@ -431,7 +426,7 @@ iscsi_parse_portal_url(struct iscsi_context *iscsi, const char *url)
iscsi_set_error(iscsi, "Invalid URL %s\niSCSI Portal URL must be of "
"the form: %s",
url,
ISCSI_PURL_SYNTAX);
ISCSI_PORTAL_URL_SYNTAX);
return NULL;
}