Improve error message on duplicate iSCSI port.
MFC after: 2 weeks
This commit is contained in:
parent
ce3a6cf06a
commit
a8d32bff70
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=312343
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user