Unionfs: fix readonly nfs2/3 permission handling
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 22 Sep 2009 21:34:23 +0000 (17:34 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 22 Sep 2009 21:34:23 +0000 (17:34 -0400)
commit5c15c6f7b42197266ac8278ac6294d6a0b62fbba
tree5d9e2831c78036ee8d23be51c8bd9bccddf6cad7
parent63194fd54ec236f8b0183546cbb78ec8a2da06f0
Unionfs: fix readonly nfs2/3 permission handling

In unionfs_permission: NFSv2/3 return EACCES on readonly-exported, locally
readonly-mounted file systems, instead of EROFS like other file systems do.
So we have no choice here but to intercept this and ignore it for NFS
branches marked readonly.  Specifically, we avoid using NFS's own "broken"
->permission method, and rely on generic_permission() to do basic checking
for us.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/inode.c