Date: Sun, 15 Dec 2013 16:58:23 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r259418 - head/sys/powerpc/pseries Message-ID: <201312151658.rBFGwNQ0095391@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312151658.rBFGwNQ0095391>