Unionfs: fix readonly nfs2/3 permission handling
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 22 Sep 2009 21:44:09 +0000 (17:44 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 22 Sep 2009 21:44:09 +0000 (17:44 -0400)
commitdb5f65c7e045c0ef960c14a6fb3feb973b7ff001
tree8ec73534a18040ff9aec3edbde9b15c9c0f79dae
parent9e2d8b4128d45062d394cac6f88e3a1951cedc6e
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/compat.h
fs/unionfs/inode.c