camcontrol rescan all fails if there is no bus 0
Ryan Stone
rysto32 at gmail.com
Tue Oct 26 17:14:38 UTC 2010
On Tue, Oct 26, 2010 at 12:41 PM, Scott Long <scottl at samsco.org> wrote:
> Ok, I guess I need to see if CAM_XPT_PATH_ID can get returned from the devmatch.
There is some really awful code to deal with that later on:
/*
* We don't want to rescan or reset the xpt bus.
* See above.
*/
if ((int)bus_result->path_id == -1)
continue;
That should be changed to use the real constants.
> What happens with this patch if you run it with no real buses registered (i.e. cam module present, but no SIMs present)?
If there are no CAM devices(i.e. "camcontrol devlist" prints nothing)
as near as I can tell with my patch a "camcontrol rescan all" does
nothing(camcontrol prints "Rescanning bus X" for each bus that it
rescans, and camcontrol rescan all prints nothing if there are no
buses at all).
More information about the freebsd-scsi
mailing list