summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctld/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ctld/parse.y')
-rw-r--r--usr.sbin/ctld/parse.y32
1 files changed, 16 insertions, 16 deletions
diff --git a/usr.sbin/ctld/parse.y b/usr.sbin/ctld/parse.y
index b242fd6..662ae2b 100644
--- a/usr.sbin/ctld/parse.y
+++ b/usr.sbin/ctld/parse.y
@@ -316,7 +316,7 @@ target_alias: ALIAS STR
{
if (target->t_alias != NULL) {
log_warnx("alias for target \"%s\" "
- "specified more than once", target->t_iqn);
+ "specified more than once", target->t_name);
return (1);
}
target->t_alias = $2;
@@ -328,17 +328,17 @@ target_auth_group: AUTH_GROUP STR
if (target->t_auth_group != NULL) {
if (target->t_auth_group->ag_name != NULL)
log_warnx("auth-group for target \"%s\" "
- "specified more than once", target->t_iqn);
+ "specified more than once", target->t_name);
else
log_warnx("cannot mix auth-group with explicit "
"authorisations for target \"%s\"",
- target->t_iqn);
+ target->t_name);
return (1);
}
target->t_auth_group = auth_group_find(conf, $2);
if (target->t_auth_group == NULL) {
log_warnx("unknown auth-group \"%s\" for target "
- "\"%s\"", $2, target->t_iqn);
+ "\"%s\"", $2, target->t_name);
return (1);
}
free($2);
@@ -353,7 +353,7 @@ target_chap: CHAP STR STR
if (target->t_auth_group->ag_name != NULL) {
log_warnx("cannot mix auth-group with explicit "
"authorisations for target \"%s\"",
- target->t_iqn);
+ target->t_name);
free($2);
free($3);
return (1);
@@ -383,7 +383,7 @@ target_chap_mutual: CHAP_MUTUAL STR STR STR STR
if (target->t_auth_group->ag_name != NULL) {
log_warnx("cannot mix auth-group with explicit "
"authorisations for target \"%s\"",
- target->t_iqn);
+ target->t_name);
free($2);
free($3);
free($4);
@@ -420,7 +420,7 @@ target_initiator_name: INITIATOR_NAME STR
if (target->t_auth_group->ag_name != NULL) {
log_warnx("cannot mix auth-group with "
"initiator-name for target \"%s\"",
- target->t_iqn);
+ target->t_name);
free($2);
return (1);
}
@@ -447,7 +447,7 @@ target_initiator_portal: INITIATOR_PORTAL STR
if (target->t_auth_group->ag_name != NULL) {
log_warnx("cannot mix auth-group with "
"initiator-portal for target \"%s\"",
- target->t_iqn);
+ target->t_name);
free($2);
return (1);
}
@@ -470,14 +470,14 @@ target_portal_group: PORTAL_GROUP STR
{
if (target->t_portal_group != NULL) {
log_warnx("portal-group for target \"%s\" "
- "specified more than once", target->t_iqn);
+ "specified more than once", target->t_name);
free($2);
return (1);
}
target->t_portal_group = portal_group_find(conf, $2);
if (target->t_portal_group == NULL) {
log_warnx("unknown portal-group \"%s\" for target "
- "\"%s\"", $2, target->t_iqn);
+ "\"%s\"", $2, target->t_name);
free($2);
return (1);
}
@@ -526,7 +526,7 @@ lun_backend: BACKEND STR
if (lun->l_backend != NULL) {
log_warnx("backend for lun %d, target \"%s\" "
"specified more than once",
- lun->l_lun, target->t_iqn);
+ lun->l_lun, target->t_name);
free($2);
return (1);
}
@@ -540,7 +540,7 @@ lun_blocksize: BLOCKSIZE NUM
if (lun->l_blocksize != 0) {
log_warnx("blocksize for lun %d, target \"%s\" "
"specified more than once",
- lun->l_lun, target->t_iqn);
+ lun->l_lun, target->t_name);
return (1);
}
lun_set_blocksize(lun, $2);
@@ -552,7 +552,7 @@ lun_device_id: DEVICE_ID STR
if (lun->l_device_id != NULL) {
log_warnx("device_id for lun %d, target \"%s\" "
"specified more than once",
- lun->l_lun, target->t_iqn);
+ lun->l_lun, target->t_name);
free($2);
return (1);
}
@@ -578,7 +578,7 @@ lun_path: PATH STR
if (lun->l_path != NULL) {
log_warnx("path for lun %d, target \"%s\" "
"specified more than once",
- lun->l_lun, target->t_iqn);
+ lun->l_lun, target->t_name);
free($2);
return (1);
}
@@ -592,7 +592,7 @@ lun_serial: SERIAL STR
if (lun->l_serial != NULL) {
log_warnx("serial for lun %d, target \"%s\" "
"specified more than once",
- lun->l_lun, target->t_iqn);
+ lun->l_lun, target->t_name);
free($2);
return (1);
}
@@ -606,7 +606,7 @@ lun_size: SIZE NUM
if (lun->l_size != 0) {
log_warnx("size for lun %d, target \"%s\" "
"specified more than once",
- lun->l_lun, target->t_iqn);
+ lun->l_lun, target->t_name);
return (1);
}
lun_set_size(lun, $2);
OpenPOWER on IntegriCloud