You mean something for smb (samba)? I dunno, but if you show me the code, I'll look.

For NFS, it should mostly just be a matter of configuring knfsd in the kernel config before compiling.

Cheers