diff options
author | mav <mav@FreeBSD.org> | 2010-02-23 18:42:07 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2010-02-23 18:42:07 +0000 |
commit | c847086ff14f9a0ff83034228504736d98f1fed9 (patch) | |
tree | 45685a26c29a1524f029e5b7bb76ac70602dc89b /sys/cam/cam_xpt.c | |
parent | 8e4f336600397f4e4c410342e5e32988925b8dcc (diff) | |
download | FreeBSD-src-c847086ff14f9a0ff83034228504736d98f1fed9.zip FreeBSD-src-c847086ff14f9a0ff83034228504736d98f1fed9.tar.gz |
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.
Diffstat (limited to 'sys/cam/cam_xpt.c')
-rw-r--r-- | sys/cam/cam_xpt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index 02e2447..b869c4b 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -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; |