Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Sep 2012 21:52:55 +0300
From:      Mikolaj Golub <trociny@FreeBSD.org>
To:        "Andrey V. Elsukov" <bu7cher@yandex.ru>
Cc:        freebsd-stable@freebsd.org, Hartmut Brandt <harti@FreeBSD.org>, Miroslav Lachman <000.fbsd@quip.cz>
Subject:   Re: bsnmpd always died on HDD detach
Message-ID:  <20120916185254.GA3905@gmail.com>
In-Reply-To: <5055DA86.9040102@yandex.ru>
References:  <504D10A7.1070701@quip.cz> <20120915125003.GA91163@gmail.com> <5055DA86.9040102@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 16, 2012 at 05:56:22PM +0400, Andrey V. Elsukov wrote:
> On 15.09.2012 16:50, Mikolaj Golub wrote:
> > I am attaching the patch that fixes the issue for me.
> > 
> > I was wandering why the issue was not observed after md device
> > removal, as disk_OS_get_MD_disks() did the same things. It has turned
> > out that hostres just does not see md devices, so this function is
> > currently useless. hostres gets devices from devinfo(3), which does
> > not return md devices.
> > 
> > disk_OS_get_disks() calls kern.disks sysctl to get the list of disks,
> > and uses device_map differently, so it is not affected.
> 
> I also have a big patch to the hostres module, but it is not yet
> finished. Probably i should commit the part related to the disk
> subsystem. This part has been rewritten to be GEOM aware.

Wonderful! And as I understand it will solve this problem too? Then I
think no need in committing my patch, unless you are not planning to
merge to stable/[78] (where any fix for this problem is highly
desirable).

-- 
Mikolaj Golub



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120916185254.GA3905>