Unionfs: fix readonly nfs2/3 permission handling
authorErez Zadok <ezk@cs.sunysb.edu>
Mon, 3 Aug 2009 21:22:22 +0000 (17:22 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Mon, 3 Aug 2009 21:22:22 +0000 (17:22 -0400)
commit081fd14d7db5eae7190cbfc9d60396fdf09895c4
tree05900e9ebba610897d8da444179ffb605f16db30
parentda02154dfef778b23c5cf6f8090805ef7f839897
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