Module Name: src Committed By: kim Date: Sat Sep 19 07:30:32 UTC 2020
Modified Files: src/sys/dev/pci: vioscsi.c Log Message: Update the Proxmox comment with link to their bugzilla To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/sys/dev/pci/vioscsi.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/pci/vioscsi.c diff -u src/sys/dev/pci/vioscsi.c:1.23 src/sys/dev/pci/vioscsi.c:1.24 --- src/sys/dev/pci/vioscsi.c:1.23 Fri Sep 18 14:55:28 2020 +++ src/sys/dev/pci/vioscsi.c Sat Sep 19 07:30:32 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: vioscsi.c,v 1.23 2020/09/18 14:55:28 jakllsch Exp $ */ +/* $NetBSD: vioscsi.c,v 1.24 2020/09/19 07:30:32 kim Exp $ */ /* $OpenBSD: vioscsi.c,v 1.3 2015/03/14 03:38:49 jsg Exp $ */ /* @@ -18,7 +18,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: vioscsi.c,v 1.23 2020/09/18 14:55:28 jakllsch Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vioscsi.c,v 1.24 2020/09/19 07:30:32 kim Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -199,8 +199,16 @@ vioscsi_attach(device_t parent, device_t /* * XXX Remove this when scsipi is REPORT LUNS-aware. * scsipi(4) insists that LUNs must be contiguous starting from 0. - * This is not true on Linode (circa 2020) and Proxmox 6 hosts - * with more than one disk exported to guest. + * This is not true on Linode (circa 2020). + * + * Also if explicitly selecting the 'Virtio SCSI Single' + * controller (which is not the default SCSI controller) on + * Proxmox hosts, each disk will be on its own scsi bus at + * target 0 but unexpectedly on a LUN matching the drive number + * on the system (i.e. drive 0 will be bus 0, target 0, lun + * 0; drive 1 will be bus 1, target 0, lun 1, drive 2 will be + * bus 2, target 0, lun 2 -- which is where the gaps start + * happening). https://bugzilla.proxmox.com/show_bug.cgi?id=2985 */ chan->chan_defquirks = PQUIRK_FORCELUNS;