aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2014-04-15 14:55:56 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2014-04-15 14:55:56 +0000
commit19b59f13d830b2081fbbe2c37a3af864ebe07cb4 (patch)
tree87b1bb87ef2107f109da8e58d3989b2523c8c97a /usr.sbin
parent87bc328d6333dbf53b3ff295b967aaece440567a (diff)
downloadsrc-19b59f13d830b2081fbbe2c37a3af864ebe07cb4.tar.gz
src-19b59f13d830b2081fbbe2c37a3af864ebe07cb4.zip
Stop treating LUN 0 as mandatory. There is no reason to do that.
Suggested by: mav@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=264500
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ctld/ctld.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/usr.sbin/ctld/ctld.c b/usr.sbin/ctld/ctld.c
index 56092db908f5..1090a52d02fd 100644
--- a/usr.sbin/ctld/ctld.c
+++ b/usr.sbin/ctld/ctld.c
@@ -1099,7 +1099,7 @@ conf_verify(struct conf *conf)
struct portal_group *pg;
struct target *targ;
struct lun *lun;
- bool found_lun0;
+ bool found_lun;
int error;
if (conf->conf_pidfile_path == NULL)
@@ -1116,17 +1116,16 @@ conf_verify(struct conf *conf)
"default");
assert(targ->t_portal_group != NULL);
}
- found_lun0 = false;
+ found_lun = false;
TAILQ_FOREACH(lun, &targ->t_luns, l_next) {
error = conf_verify_lun(lun);
if (error != 0)
return (error);
- if (lun->l_lun == 0)
- found_lun0 = true;
+ found_lun = true;
}
- if (!found_lun0) {
- log_warnx("mandatory LUN 0 not configured "
- "for target \"%s\"", targ->t_name);
+ if (!found_lun) {
+ log_warnx("no LUNs defined for target \"%s\"",
+ targ->t_name);
return (1);
}
}