[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Advice for hacking on ufs/ffs



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.
------------------------------------------------------------------------
_______________________________________________
freebsd-fs_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-fs
To unsubscribe, send any mail to "freebsd-fs-unsubscribe_(_at_)_freebsd_(_dot_)_org"


Visit your host, monkey.org