From owner-cvs-src-old@FreeBSD.ORG Fri Oct 9 09:42:47 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 970F5106568D for ; Fri, 9 Oct 2009 09:42:47 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 830A98FC22 for ; Fri, 9 Oct 2009 09:42:47 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n999glkW023077 for ; Fri, 9 Oct 2009 09:42:47 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n999gl2l023076 for cvs-src-old@freebsd.org; Fri, 9 Oct 2009 09:42:47 GMT (envelope-from pjd@repoman.freebsd.org) Message-Id: <200910090942.n999gl2l023076@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to pjd@repoman.freebsd.org using -f From: Pawel Jakub Dawidek Date: Fri, 9 Oct 2009 09:42:22 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/geom/concat g_concat.c src/sys/geom/label g_label.c src/sys/geom/part g_part.c src/sys/geom/shsec g_shsec.c src/sys/geom/stripe g_stripe.c src/sys/geom/uzip g_uzip.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Oct 2009 09:42:47 -0000 pjd 2009-10-09 09:42:22 UTC FreeBSD src repository Modified files: sys/geom/concat g_concat.c sys/geom/label g_label.c sys/geom/part g_part.c sys/geom/shsec g_shsec.c sys/geom/stripe g_stripe.c sys/geom/uzip g_uzip.c Log: SVN rev 197898 on 2009-10-09 09:42:22Z by pjd If provider is open for writing when we taste it, skip it for classes that depend on on-disk metadata. This was we won't attach to providers that are used by other classes. For example we don't want to configure partitions on da0 if it is part of gmirror, what we really want is partitions on mirror/foo. During regular work it works like this: if provider is open for writing a class receives the spoiled event from GEOM and detaches, once provider is closed the taste event is send again and class can rediscover its metadata if it is still there. This doesn't work that way when new class arrives, because GEOM gives all existing providers for it to taste, also those open for writing. Classes have to decided on their own if they want to deal with such providers (eg. geom_dev) or not (classes modified by this commit). Reported by: des, Oliver Lehmann Tested by: des, Oliver Lehmann Discussed with: phk, marcel Reviewed by: marcel MFC after: 3 days Revision Changes Path 1.32 +4 -0 src/sys/geom/concat/g_concat.c 1.25 +4 -0 src/sys/geom/label/g_label.c 1.41 +4 -0 src/sys/geom/part/g_part.c 1.7 +4 -0 src/sys/geom/shsec/g_shsec.c 1.35 +4 -0 src/sys/geom/stripe/g_stripe.c 1.13 +5 -0 src/sys/geom/uzip/g_uzip.c