svn commit: r227436 - stable/8/sbin/camcontrol
Ryan Stone
rstone at FreeBSD.org
Fri Nov 11 01:37:49 UTC 2011
Author: rstone
Date: Fri Nov 11 01:37:48 2011
New Revision: 227436
URL: http://svn.freebsd.org/changeset/base/227436
Log:
MFC 215507:
When doing a camcontrol rescan all or a camcontrol reset all, use the wildcard
path id for enumerating the available busses. Previously camcontrol was
implicitly passing 0 as the first path id, which meant that if bus 0 was not
present camcontrol would fail with EINVAL instead of rescanning/resetting any
busses that were present.
Modified:
stable/8/sbin/camcontrol/camcontrol.c
Directory Properties:
stable/8/sbin/camcontrol/ (props changed)
Modified: stable/8/sbin/camcontrol/camcontrol.c
==============================================================================
--- stable/8/sbin/camcontrol/camcontrol.c Fri Nov 11 01:35:07 2011 (r227435)
+++ stable/8/sbin/camcontrol/camcontrol.c Fri Nov 11 01:37:48 2011 (r227436)
@@ -1526,6 +1526,7 @@ rescan_or_reset_bus(int bus, int rescan)
bzero(&(&matchccb.ccb_h)[1],
sizeof(struct ccb_dev_match) - sizeof(struct ccb_hdr));
matchccb.ccb_h.func_code = XPT_DEV_MATCH;
+ matchccb.ccb_h.path_id = CAM_BUS_WILDCARD;
bufsize = sizeof(struct dev_match_result) * 20;
matchccb.cdm.match_buf_len = bufsize;
matchccb.cdm.matches=(struct dev_match_result *)malloc(bufsize);
More information about the svn-src-stable-8
mailing list