Improve error message on duplicate iSCSI port.

MFC after:	2 weeks
This commit is contained in:
mav 2017-01-17 14:13:14 +00:00
parent 1808279ef3
commit 75e035832e

View File

@ -2084,7 +2084,8 @@ cfiscsi_ioctl_port_create(struct ctl_req *req)
if (ct->ct_state == CFISCSI_TARGET_STATE_ACTIVE) {
req->status = CTL_LUN_ERROR;
snprintf(req->error_str, sizeof(req->error_str),
"target \"%s\" already exists", target);
"target \"%s\" for portal group tag %u already exists",
target, tag);
cfiscsi_target_release(ct);
ctl_free_opts(&opts);
return;