mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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:
parent
d4301de786
commit
df7d3f0a1f
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue