Patrick Mansfield wrote: > James - > > Can you ack or comment? > > Allow REPORT LUN scanning even if LUN 0 reports a peripheral qualifier of > 3 (effectively no storage is available on LUN 0). > > Similar patch I previously posted: > > http://marc.theaimsgroup.com/?l=linux-scsi&m=110297733824960&w=2 > > There is also Hannes patch, it leaves LUN 0 available for use via user > space, for compatibility it likely requires that it stay visible in the > future: > > http://marc.theaimsgroup.com/?l=linux-scsi&m=111692497200507&w=2 > > Hannes' patch also causes a lot of extra vSCSI devices to show up on some > platforms :) > We definitely need something like this. The current scan algorithms is just plain broken for targets where LUN 0 has no device attached. It is perfectly valid for storage servers to have a LUN 0 with no device attached (say, for control purposes) and let the client figure out the current configuration via REPORT LUN. Without this patch Linux simply cannot handle such setups. James, do consider to include this patch into scsi-misc. > Signed-off-by: Patrick Mansfield <patmans@xxxxxxxxxx> Signed-off-by: Hannes Reinecke <hare@xxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke hare@xxxxxxx SuSE Linux Products GmbH S390 & zSeries Maxfeldstraße 5 +49 911 74053 688 90409 Nürnberg http://www.suse.de - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html