Difference between FreeBSD-7 and FreeBSD-8 in tasting?
lev at serebryakov.spb.ru
Tue Aug 18 07:38:37 UTC 2009
You wrote 18 августа 2009 г., 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_kthread_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.
// Black Lion AKA Lev Serebryakov <lev at serebryakov.spb.ru>
More information about the freebsd-geom