true. This enables the discovery and probing of other LUNs the
target has to offer.
Add uk* to amd64 RAMDISK_CD so such devices are configured.
Allows bsd.rd as well as bsd[.mp] to boot on Oracle Cloud amd64
instances.
Issue reported by Ryan Kavanagh and Scott Nicholas via bugs@.
Original diff and much subsequent testing by Scott. Thanks!
ok dlg@ jmatthew@
-# $OpenBSD: RAMDISK_CD,v 1.199 2022/03/08 15:08:01 hastings Exp $
+# $OpenBSD: RAMDISK_CD,v 1.200 2022/04/06 13:23:58 krw Exp $
machine amd64
maxusers 4
sd* at scsibus? # SCSI disk drives
st* at scsibus? # SCSI tape drives
cd* at scsibus? # SCSI CD-ROM drives
+uk* at scsibus? # Unknown SCSI devices
pciide* at pci? flags 0x0000
wdc0 at isa? disable port 0x1f0 irq 14 flags 0x00
-/* $OpenBSD: scsiconf.c,v 1.251 2022/04/02 17:25:10 krw Exp $ */
+/* $OpenBSD: scsiconf.c,v 1.252 2022/04/06 13:23:58 krw Exp $ */
/* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */
/*
switch (inqbuf->device & SID_QUAL) {
case SID_QUAL_RSVD:
case SID_QUAL_BAD_LU:
+ goto bad;
case SID_QUAL_LU_OFFLINE:
+ if (lun == 0 && (inqbuf->device & SID_TYPE) == T_NODEVICE)
+ break;
goto bad;
case SID_QUAL_LU_OK:
- break;
default:
+ if ((inqbuf->device & SID_TYPE) == T_NODEVICE)
+ goto bad;
break;
}
- if ((inqbuf->device & SID_TYPE) == T_NODEVICE)
- goto bad;
-
scsi_devid(link);
link0 = scsi_get_link(sb, target, 0);