Unionfs: fix readonly nfs2/3 permission handling
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 22 Sep 2009 21:35:15 +0000 (17:35 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 22 Nov 2013 23:56:15 +0000 (18:56 -0500)
commit32b3f8330fe050397a5002022322c62228e30406
tree225d3129df9b5f0e513becc94b3c034223cf494b
parentecc59ef366a531de7bf37a6651bf097fba0775fc
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