From owner-freebsd-stable@FreeBSD.ORG Sun Sep 16 18:53:01 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 517CD10657A6; Sun, 16 Sep 2012 18:53:01 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id AD1FF8FC0C; Sun, 16 Sep 2012 18:53:00 +0000 (UTC) Received: by wibhi8 with SMTP id hi8so1298785wib.13 for ; Sun, 16 Sep 2012 11:52:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=vpq4/k9nm/sU23sCqzVIh9dseENkUl5oDMDHwUvJACE=; b=Z4bGFC3+tOW1lpCcXvBT9Fxhho+nBy9LlxzVAqtv9oeWRP0limIZbcZVUVEjveR7DB rpF/bC0TBjLiOW+bps1YttUai7PFuSMLhR3WuKtabDEwqX0DKfpvWFrnSdyiDuR43QAT +b+3pWtzia5Ty1U/A3jadTx5Z/EdbvsxKZOjLtRdTrh485GDtWLNbZIr2N2NQs6EhNIB J1v0wI7YSWLuE9He0S/ND4zyXF9Tol20WkpwM6iJlKmCiOl+2+nXnOQ54QjLF5OKZ2Bt VGDbfOibvXxk2MTY7b28pN/7cSd9UdAvga+deUD7WRim3fNI4Rm7A3u4T5yuTl5tn0YM 1F3Q== Received: by 10.180.81.38 with SMTP id w6mr11160333wix.10.1347821579418; Sun, 16 Sep 2012 11:52:59 -0700 (PDT) Received: from localhost ([95.69.174.83]) by mx.google.com with ESMTPS id k2sm19354349wiz.7.2012.09.16.11.52.57 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 16 Sep 2012 11:52:58 -0700 (PDT) Sender: Mikolaj Golub Date: Sun, 16 Sep 2012 21:52:55 +0300 From: Mikolaj Golub To: "Andrey V. Elsukov" Message-ID: <20120916185254.GA3905@gmail.com> References: <504D10A7.1070701@quip.cz> <20120915125003.GA91163@gmail.com> <5055DA86.9040102@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5055DA86.9040102@yandex.ru> User-Agent: Mutt/1.5.21 (2010-09-15) 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 18:53:01 -0000 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