USERNAME PASSWORD

When generating an error after failing to parse a iscsi url
add username/password to the url syntax that is printed in the error message
This commit is contained in:
Ronnie Sahlberg
2010-12-25 12:00:09 +11:00
parent ef7ba259b1
commit 60718652a4

View File

@@ -234,7 +234,7 @@ iscsi_parse_full_url(struct iscsi_context *iscsi, const char *url)
char *tmp;
if (strncmp(url, "iscsi://", 8)) {
iscsi_set_error(iscsi, "Invalid URL %s\niSCSI URL must be of the form \"iscsi://<host>[:<port>]/<target-iqn>/<lun>\"\n", url);
iscsi_set_error(iscsi, "Invalid URL %s\niSCSI URL must be of the form \"iscsi://[<username>[%<password>]@]<host>[:<port>]/<target-iqn>/<lun>\"\n", url);
return NULL;
}