Jos Backus wrote:
> On Tue, Feb 23, 1999 at 02:41:14AM +0300, Dmitrij Tejblum wrote:
> > Jos Backus wrote:
> > > This occurs almost immediately after copying a file to an msdos fs. I can
> > > provide more info if that is deemed useful.
> > 
> > I suspect your kernel compiled with INVARIANTS,
> 
> Yes, and with INVARIANTS_SUPPORT as well as per Matt's instructions.
> 
> > you load msdosfs module dynamically, and the module isn't compiled with
> > INVARIANTS.
> 
> This is after a successful world and subsequent kernel build.
> 
> > If so, don't do that.
> 
> I'm not aware that I do, really.
> 
> jos:/usr/src/sys/modules/msdos# grep INVARIANTS *
> jos:/usr/src/sys/modules/msdos# 
> jos:/usr/src/sys/msdosfs# grep INVARIANTS *
> jos:/usr/src/sys/msdosfs# 

Inline functions in vm/vm_zone.h depend on INVARIANTS. These functions 
used in msdosfs and in other parts of the kernel.

> How does one add INVARIANTS support to modules?

You could add -DINVARIANTS to CFLAGS in sys/module/msdosfs/Makefile. 
You better just link msdosfs statically, or remove INVARIANTS from your 
kernel. That is, INVARIANTS in kernel incompatible with dynamic loading.

Dima






To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to