Date: Tue, 18 Aug 2009 11:38:33 +0400 From: Lev Serebryakov <lev@serebryakov.spb.ru> To: Lev Serebryakov <lev@serebryakov.spb.ru> Cc: freebsd-geom@freebsd.org Subject: Re: Difference between FreeBSD-7 and FreeBSD-8 in tasting? Message-ID: <852978746.20090818113833@serebryakov.spb.ru> In-Reply-To: <1226785293.20090818025941@serebryakov.spb.ru> References: <1226785293.20090818025941@serebryakov.spb.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <lev@serebryakov.spb.ru>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?852978746.20090818113833>