Advice for hacking on ufs/ffs

Eric Anderson anderson at centtech.com
Wed Aug 2 03:44:42 UTC 2006


On 08/01/06 15:54, Shane Adams wrote:
> I think I found a bug in the ffs code, specifically in ffs_uninit and the uma_zcreates in ffs_vfsops.c
> 
> You need to explicitly call zdestroy on uma_inode1, uma_ufs1 and uma_ufs2 in ffs_uninit otherwise if UFS/FFS (as a kernel module) is unloaded, you get a panic if you call sysctl -a after the kldunload.
> 
> Now I'm new to freebsd, and on my system UFS/FFS is statically compiled, but I was screwing around and discovered this.  Not sure how to report this or the patch (that fixed the problem on my system).


Usually, people will post a patch somewhere for review, and/or submit a 
PR.

Eric

-- 
------------------------------------------------------------------------
Eric Anderson        Sr. Systems Administrator        Centaur Technology
Anything that works is better than anything that doesn't.
------------------------------------------------------------------------


More information about the freebsd-fs mailing list