Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Feb 1999 12:09:03 +0300
From:      Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
To:        Jos Backus <Jos.Backus@nl.origin-it.com>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: panic: zone: entry not free 
Message-ID:  <199902230909.MAA01169@tejblum.dnttm.rssi.ru>
In-Reply-To: Your message of "Tue, 23 Feb 1999 09:41:20 %2B0100." <19990223094120.A97001@hal.mpn.cp.philips.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902230909.MAA01169>