Unionfs: fix readonly nfs2/3 permission handling
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 22 Sep 2009 21:27:23 +0000 (17:27 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 24 Nov 2013 08:06:35 +0000 (03:06 -0500)
commit56ed1ca26329f3b5ed8200bab9f3d6f5396b814f
treece0f1eceaf2de56bcde4a56f8d53b1871bca64f7
parent06b0040a1ab2784e554c4b6315643c7b3ed789c4
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