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
This commit is contained in:
nwhitehorn 2013-12-15 16:58:23 +00:00
parent a29cf84895
commit a00a0d2a1e

View File

@ -426,7 +426,7 @@ vscsi_cam_action(struct cam_sim *sim, union ccb *ccb)
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);