From owner-freebsd-geom@FreeBSD.ORG Wed Oct 5 07:51:45 2011 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E2FC106566C; Wed, 5 Oct 2011 07:51:45 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward7.mail.yandex.net (forward7.mail.yandex.net [IPv6:2a02:6b8:0:202::2]) by mx1.freebsd.org (Postfix) with ESMTP id AD4AE8FC17; Wed, 5 Oct 2011 07:51:44 +0000 (UTC) Received: from smtp6.mail.yandex.net (smtp6.mail.yandex.net [77.88.61.56]) by forward7.mail.yandex.net (Yandex) with ESMTP id E786A1C062A; Wed, 5 Oct 2011 11:51:42 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1317801103; bh=4CrI5UidBDIQdj/nHfz8M1EbembrrFQ/AFY1jWJSBow=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=ZMZSICkc1wYKjEa8Rrf5JdzlMhYbBG2iVQMBUBAr24qmbemlTY3vJLjXvnp6aIyOX TasOWQFbxxUGyuLTm+ANbT4yUhU7ws0ne7TeFPOU3aZLE8gGDbXA0pwNNWPCtBN6F+ ikEhuqaqSuPGtBa9iKpVxclaPXXpNXOgvrb5O7nc= Received: from smtp6.mail.yandex.net (localhost [127.0.0.1]) by smtp6.mail.yandex.net (Yandex) with ESMTP id BD3F216403A3; Wed, 5 Oct 2011 11:51:42 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1317801102; bh=4CrI5UidBDIQdj/nHfz8M1EbembrrFQ/AFY1jWJSBow=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=lQZwE4f8u/ZeV7yx+vxJy0qTrta4JV3DJOzlgAqTZ5OXsU6C9H8Le0/Je/yDg8xqu 2Eq/NHtAMLZPyzNmyAZMxjaTQAh6TrOt51WR3Y8iPFL2ClFWzjYfcWtfFeEEWBEAqe FvswhrGXxd5DWTPsiCbrY4VOdVutsIQhLkWb9mbE= Received: from mail.kirov.so-ups.ru (mail.kirov.so-ups.ru [178.74.170.1]) by smtp6.mail.yandex.net (nwsmtp/Yandex) with ESMTP id pguO8Ube-pgu0ZYvU; Wed, 5 Oct 2011 11:51:42 +0400 X-Yandex-Spam: 1 Message-ID: <4E8C0C88.7000702@yandex.ru> Date: Wed, 05 Oct 2011 11:51:36 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: lev@FreeBSD.org References: <1927112464.20111004220507@serebryakov.spb.ru> <4E8BE604.7090803@yandex.ru> <1822051193.20111005102710@serebryakov.spb.ru> <1239869336.20111005103945@serebryakov.spb.ru> In-Reply-To: <1239869336.20111005103945@serebryakov.spb.ru> X-Enigmail-Version: 1.3.2 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: current@freebsd.org, freebsd-geom@FreeBSD.org Subject: Re: RFC: Project geom-events X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2011 07:51:45 -0000 On 05.10.2011 10:39, Lev Serebryakov wrote: >> (1) Class and name of GEOM which is affected. >> (2) Name of provider which is affected. >> (3) Name of underlying provider which is lost (consumer from >> reporting GEOM's point of view). >> (4) Resulting state of affected provider (fixable, alive, dead). All except last could be get from the consumer in the orphan method. > And, I'm affraid, that geom_dev could not distinguish manual > operations with geom (performed from userland by administrator) and > real accidents. I don't want geoms to post DISCONNECTED or DESTROYED > events when administrator knows what he does -- and it could lead to > race conditions, when administrator rebuild array and forgot todisable > spare drives, for example. > Other example -- geom_label creates and destroys about 10 labels on > boot (on my test VM) and, if DESTROYED will be reported by very > generic mechanism, it will end up with 10 e-mails to administrator on > every boot -- I've got this, when put notifications in too generic > place for first try. Ok, good point. Can you explain how your script will distinguish which actions are performed by administrator? Since change made by administrator could trigger disappearing of several child geoms. -- WBR, Andrey V. Elsukov