diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-11-20 07:34:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-11-20 07:34:52 +0000 |
commit | 7305a2374355204e00312e8fc9ad302c266d58fe (patch) | |
tree | 474a5ea1cc6fc54c009b232560c400a305f2d42d /sys/scsi/scsiconf.c | |
parent | 93b1293e197234e716c04d7a400ff5dbd5864cd4 (diff) |
limit luns on usb
Diffstat (limited to 'sys/scsi/scsiconf.c')
-rw-r--r-- | sys/scsi/scsiconf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c index 3f002877821..aa8433ead5b 100644 --- a/sys/scsi/scsiconf.c +++ b/sys/scsi/scsiconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.c,v 1.52 2000/04/18 05:53:17 csapuntz Exp $ */ +/* $OpenBSD: scsiconf.c,v 1.53 2000/11/20 07:34:51 deraadt Exp $ */ /* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */ /* @@ -292,7 +292,7 @@ scsi_probe_bus(bus, target, lun) } if (lun == -1) { - maxlun = 7; + maxlun = scsi->adapter_link->maxlun; minlun = 0; } else { if (lun < 0 || lun > 7) @@ -810,6 +810,7 @@ scsi_probedev(scsi, target, lun) (sc_link->quirks & SDEV_FORCELUNS) == 0) sc_link->quirks |= SDEV_NOLUNS; sc_link->scsi_version = inqbuf.version; + sc_link->maxlun = 7; if ((sc_link->quirks & SDEV_NOLUNS) == 0) scsi->moreluns |= (1 << target); |