On Thu, Aug 28, 2008 at 02:22:35PM -0700, Dilip Kumar wrote: > I was writing some scripts to map the Unix access modes to the access > flags in the NFS ACCESS Reply. I have run these scripts on Linux and > Solaris machines and the results were not the same. If I have some C > program which opens this directory in a write mode exported by an NFS > server it succeeds, if the server is Solaris, but fails if the server > is Linux. If I have write access on the directory, I would expect to > see write bit set for that directory in the ACCESS reply. Programs > like mkdir or cd require execute and write access to complete their > operations, but a normal open with write mode should succeed in either > case. I was more concerned about the differences in the implementation > of ACCESS in two different servers. Behavior that's different from Solaris probably merits investigation, but on its own that's not justification for making a change. It sounds like this isn't a real problem for you, just a result you observed in some tests, so for now I'm not inclined to worry about it very much. If you want to pursue it, you're welcome to make a patch (it's probably just a matter of adjusting those accessmap arrays in fs/nfsd/vfs.c), and you may well be correct to do so, but the patch will need to come with a more persuasive argument. --b. -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html