Author: nwhitehorn
Date: Sun Dec 15 16:58:23 2013
New Revision: 259418
URL: http://svnweb.freebsd.org/changeset/base/259418

Log:
  Set max_lun to zero. This field is ignored unless we are manually probing
  LUNs anyway, and we certainly don't want to probe 2^32 values by hand in
  that case.
  
  MFC after:    2 weeks

Modified:
  head/sys/powerpc/pseries/phyp_vscsi.c

Modified: head/sys/powerpc/pseries/phyp_vscsi.c
==============================================================================
--- head/sys/powerpc/pseries/phyp_vscsi.c       Sun Dec 15 16:17:00 2013        
(r259417)
+++ head/sys/powerpc/pseries/phyp_vscsi.c       Sun Dec 15 16:58:23 2013        
(r259418)
@@ -426,7 +426,7 @@ vscsi_cam_action(struct cam_sim *sim, un
                cpi->target_sprt = 0;
                cpi->hba_eng_cnt = 0;
                cpi->max_target = 0;
-               cpi->max_lun = ~(lun_id_t)(0);
+               cpi->max_lun = 0;
                cpi->initiator_id = ~0;
                strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN);
                strncpy(cpi->hba_vid, "IBM", HBA_IDLEN);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to