Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Oct 2010 13:14:36 -0400
From:      Ryan Stone <rysto32@gmail.com>
To:        Scott Long <scottl@samsco.org>
Cc:        freebsd-scsi@freebsd.org
Subject:   Re: camcontrol rescan all fails if there is no bus 0
Message-ID:  <AANLkTinM=i7xmPw7ZTL=aR%2B-i%2BoUm2UrSSQyLRSHZap3@mail.gmail.com>
In-Reply-To: <9EC3B874-B089-4ED4-9A12-FA7A0E170A7B@samsco.org>
References:  <AANLkTiksEn2DP7Y=x=u99qcf28bBEspOWRnsWUfhaOPg@mail.gmail.com> <E4EB1292-C4F8-4385-8ACD-58BE792988F1@samsco.org> <20101026160457.GA61133@sandvine.com> <9EC3B874-B089-4ED4-9A12-FA7A0E170A7B@samsco.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 26, 2010 at 12:41 PM, Scott Long <scottl@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).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinM=i7xmPw7ZTL=aR%2B-i%2BoUm2UrSSQyLRSHZap3>