Module Name: src
Committed By: mlelstv
Date: Fri Nov 22 06:52:57 UTC 2024
Modified Files:
src/sys/dev/scsipi: scsiconf.c
Log Message:
The code tried to limit number of LUNs per target to 3, but would
only default to a single LUN when that limit is exceeded.
With the limit removed, more LUNs will be attached (up to the limit
imposed by the host adapter driver).
To generate a diff of this commit:
cvs rdiff -u -r1.305 -r1.306 src/sys/dev/scsipi/scsiconf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/scsipi/scsiconf.c
diff -u src/sys/dev/scsipi/scsiconf.c:1.305 src/sys/dev/scsipi/scsiconf.c:1.306
--- src/sys/dev/scsipi/scsiconf.c:1.305 Sun Sep 29 12:36:40 2024
+++ src/sys/dev/scsipi/scsiconf.c Fri Nov 22 06:52:57 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: scsiconf.c,v 1.305 2024/09/29 12:36:40 nat Exp $ */
+/* $NetBSD: scsiconf.c,v 1.306 2024/11/22 06:52:57 mlelstv Exp $ */
/*-
* Copyright (c) 1998, 1999, 2004 The NetBSD Foundation, Inc.
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: scsiconf.c,v 1.305 2024/09/29 12:36:40 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scsiconf.c,v 1.306 2024/11/22 06:52:57 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -379,8 +379,7 @@ again:
if (error)
goto end;
- if (sizeof(*rlr) + _4btol(rlr->length) > rlrlen &&
- sizeof(*rlr) + _4btol(rlr->length) <= 32) {
+ if (sizeof(*rlr) + _4btol(rlr->length) > rlrlen) {
const size_t old_rlrlen = rlrlen;
rlrlen = sizeof(*rlr) + uimin(_4btol(rlr->length),
16383 * sizeof(*lunp));