cvs commit: src/sys/cam cam_xpt.c

Matt Jacob mjacob at FreeBSD.org
Sun Jul 3 01:08:20 GMT 2005


mjacob      2005-01-22 22:46:45 UTC

  FreeBSD src repository

  Modified files:
    sys/cam              cam_xpt.c 
  Log:
  This is a somewhat imperfect means to try and bring FreeBSD forward in
  its ability to automatically scan and attach luns for modern storage
  which has luns in the 0..1000 range, not 0..7.
  
  The correct thing would be to do REPORT LUNS for devices whose LUN0
  version shows a version >= SCSI3, but lacking that we should be able
  to search higher than LUN 7 if we're >= SCSI3 with no ill effects.
  
  This change keeps all of the QUIRK_HILUNS quirks, obeys the QUIRK_NOLUNS,
  and introduces a QUIRK_NOHILUNS which will keep searches above LUN 7
  happening for devices that report >= SCSI3 compliance. I doubt the latter
  will be needed, but you never know.
  
  This allowed me to randomly scan and attach  > 500 disks at a time in
  a situation where quirking for QUIRK_HILUNS wasn't practical (the
  vendor id and product id changes of the virtualization changes
  constantly).
  
  Reviewed by:    ken at freebsd.org, scottl at freebsd.org, gibbs at freebsd.org
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.147     +13 -3     src/sys/cam/cam_xpt.c



More information about the cvs-src mailing list