From owner-freebsd-geom@FreeBSD.ORG Tue Aug 18 07:38:37 2009 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 B7FBC1065697 for ; Tue, 18 Aug 2009 07:38:37 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from ftp.translate.ru (ftp.translate.ru [77.221.156.50]) by mx1.freebsd.org (Postfix) with ESMTP id 746B58FC72 for ; Tue, 18 Aug 2009 07:38:37 +0000 (UTC) Received: from desktop.home.serebryakov.spb.ru (85-142-52-164.well-com.net [85.142.52.164]) (Authenticated sender: lev@serebryakov.spb.ru) by ftp.translate.ru (Postfix) with ESMTPA id 30DB313DF46; Tue, 18 Aug 2009 11:38:36 +0400 (MSD) Date: Tue, 18 Aug 2009 11:38:33 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <852978746.20090818113833@serebryakov.spb.ru> To: Lev Serebryakov In-Reply-To: <1226785293.20090818025941@serebryakov.spb.ru> References: <1226785293.20090818025941@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-geom@freebsd.org Subject: Re: Difference between FreeBSD-7 and FreeBSD-8 in tasting? 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: Tue, 18 Aug 2009 07:38:37 -0000 Hello, Lev. You wrote 18 =E0=E2=E3=F3=F1=F2=E0 2009 =E3., 02:59:41: > I'm porting geom_raid5 to FreeBSD8, and have strange problem: when > module is loaded after system start (with kldload) it tastes its > consumers (configured early) and creates array. > When it is loaded on boot time (with /boot/loader.conf), it doesn't > see array components at all, as if taste is not called... > It works on FreeBSD7 flawless in both cases... > I've changed only two things: > (1) allow root_mount_hold() tocken to be NULL > (2) change working thread creation from kthread_create() to kproc_kth= read_add(). > What are other differences in GEOM between 7 and 8? I've found problem. geom_raid5 check cp->provider->sectorsize before g_access() call, and on boot it is zero before g_access() and 512 (which is proper value) after this call. --=20 // Black Lion AKA Lev Serebryakov