MFC r204253:

Make xpt_rescan() more correct, as it was before r197208: do not use
XPT_SCAN_LUN for wildcard LUN, fall back to XPT_SCAN_BUS.
This commit is contained in:
Alexander Motin 2010-03-01 19:32:34 +00:00
parent d4301de786
commit df7d3f0a1f

View file

@ -861,7 +861,8 @@ xpt_rescan(union ccb *ccb)
struct ccb_hdr *hdr;
/* Prepare request */
if(ccb->ccb_h.path->target->target_id == CAM_TARGET_WILDCARD)
if (ccb->ccb_h.path->target->target_id == CAM_TARGET_WILDCARD ||
ccb->ccb_h.path->device->lun_id == CAM_LUN_WILDCARD)
ccb->ccb_h.func_code = XPT_SCAN_BUS;
else
ccb->ccb_h.func_code = XPT_SCAN_LUN;