diff options
author | trasz <trasz@FreeBSD.org> | 2014-05-07 07:28:23 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2014-05-07 07:28:23 +0000 |
commit | 7420d3ad268a728f49008826fe586a7d613617bf (patch) | |
tree | 55fcc3e7581a2ad901601344249e83a19597a2a9 /usr.sbin/ctld/ctld.c | |
parent | 69dfd86371c12b769288cfc9c565967ecd862a58 (diff) | |
download | FreeBSD-src-7420d3ad268a728f49008826fe586a7d613617bf.zip FreeBSD-src-7420d3ad268a728f49008826fe586a7d613617bf.tar.gz |
MFC r264500:
Stop treating LUN 0 as mandatory. There is no reason to do that.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/ctld/ctld.c')
-rw-r--r-- | usr.sbin/ctld/ctld.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/usr.sbin/ctld/ctld.c b/usr.sbin/ctld/ctld.c index 56092db..1090a52 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); } } |