aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_frontend_iscsi.c
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2017-01-17 14:13:14 +0000
committerAlexander Motin <mav@FreeBSD.org>2017-01-17 14:13:14 +0000
commita8d32bff7066aa9beeaa65487653ad51f7127760 (patch)
tree3a78e930612b59a5180e1cadf2a5b358caa04dbe /sys/cam/ctl/ctl_frontend_iscsi.c
parentce3a6cf06aa38ee418199bfa0e9e29e5b173892c (diff)
downloadsrc-a8d32bff7066aa9beeaa65487653ad51f7127760.tar.gz
src-a8d32bff7066aa9beeaa65487653ad51f7127760.zip
Improve error message on duplicate iSCSI port.
MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=312343
Diffstat (limited to 'sys/cam/ctl/ctl_frontend_iscsi.c')
-rw-r--r--sys/cam/ctl/ctl_frontend_iscsi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/cam/ctl/ctl_frontend_iscsi.c b/sys/cam/ctl/ctl_frontend_iscsi.c
index 1171eb0876d6..c3ffbf29915b 100644
--- a/sys/cam/ctl/ctl_frontend_iscsi.c
+++ b/sys/cam/ctl/ctl_frontend_iscsi.c
@@ -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;