While adding NFS support to tmpfs, I found how NetBSD currently manages NFS exports from userland. The interface is, IMHO, scary. As NetBSD aims for clean code and design, it must be fixed.

See my mail to the tech-kern@ mailing list for more details on the issue and a preliminary patch.