I just saw your note. By chance, I had found the same fixes to cfs.
There's another set of changes that are required on i386 and (at the
least) harmless for other ports: change the lseek() calls in cfs_fh.c
to cast the offset to type off_t.
--Steve Bellovin, http://www.research.att.com/~smb