From owner-freebsd-stable@FreeBSD.ORG Sun Sep 16 13:56:27 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4AF69106564A; Sun, 16 Sep 2012 13:56:27 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward19.mail.yandex.net (forward19.mail.yandex.net [IPv6:2a02:6b8:0:1402::4]) by mx1.freebsd.org (Postfix) with ESMTP id B2F858FC17; Sun, 16 Sep 2012 13:56:26 +0000 (UTC) Received: from smtp16.mail.yandex.net (smtp16.mail.yandex.net [95.108.252.16]) by forward19.mail.yandex.net (Yandex) with ESMTP id EA7D811207CE; Sun, 16 Sep 2012 17:56:24 +0400 (MSK) Received: from smtp16.mail.yandex.net (localhost [127.0.0.1]) by smtp16.mail.yandex.net (Yandex) with ESMTP id A27576A06C9; Sun, 16 Sep 2012 17:56:24 +0400 (MSK) Received: from dynamic-178-141-6-15.kirov.comstar-r.ru (dynamic-178-141-6-15.kirov.comstar-r.ru [178.141.6.15]) by smtp16.mail.yandex.net (nwsmtp/Yandex) with ESMTP id uOba3MHQ-uObOYAo9; Sun, 16 Sep 2012 17:56:24 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1347803784; bh=mZhoO3NrJNWng5DhvtMMrx6bCzBezJHeK+ETyxldGiE=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:X-Enigmail-Version:Content-Type: Content-Transfer-Encoding; b=MHjyccE0ksg0SUbaWU7oiV/3xgbgPpLxIo0qxNRf/xgR+A8e8XdkJZuyGGsHNHR6T gQhplwS7FdJFAcT+7CummgZg4myt9AVy4R307lkfk+7iPrZjUqZSJ5xSoXWsoA53U8 MRoH8GBLLVAlEZhe8AqhaI/m87hEzRwkwPugPD9I= Message-ID: <5055DA86.9040102@yandex.ru> Date: Sun, 16 Sep 2012 17:56:22 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120406 Thunderbird/10.0.3 MIME-Version: 1.0 To: Mikolaj Golub References: <504D10A7.1070701@quip.cz> <20120915125003.GA91163@gmail.com> In-Reply-To: <20120915125003.GA91163@gmail.com> X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, Hartmut Brandt , Miroslav Lachman <000.fbsd@quip.cz> Subject: Re: bsnmpd always died on HDD detach X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Sep 2012 13:56:27 -0000 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. -- WBR, Andrey V. Elsukov