Improve error message on duplicate iSCSI port.

MFC after:	2 weeks
This commit is contained in:
Alexander Motin 2017-01-17 14:13:14 +00:00
parent ce3a6cf06a
commit a8d32bff70

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;