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:
parent
5261b668c1
commit
411cadae7b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204253
@ -866,7 +866,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;
|
||||
|
Loading…
Reference in New Issue
Block a user