> I know it's been a while, but that got me farther. The > odd thing is that I had already played with the magic > define, but it seems that __sun__ wasn't getting set.
Bug in 9c. Fixed and pushed. > - There's also a discrepancy between the V1 inode > defined in ffs.h and the one defined in the Solaris > header files. It ends up messing up the UID and > GID fields. Please compare against the BSD sources if you get a chance -- I hope I just misread the data structure. > the inodes and the directory entries. It basically > looks at the magic number and if it would be correct > swapped, we take that as good enough and set a flag > to swap everything. Great, thanks. > - Because I'm introducing venti into a UNIX environment > instead of putting a UNIX machine in a Plan 9 environment, > I need to at least have the option of traditional > superuser behavior. So I added an insecure (-i) flag > to vnfs. It turns off the mapping from UID/GID 0 to > -1. Then in ffs.c, I allowed the traditional uid 0 > gets all access. It's interesting you view that as Plan 9-specific. I was just mimicking the usual Unix NFS behavior. Russ
