summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server/src/nfs-generics.h
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2011-07-04 06:32:32 +0000
committerAnand Avati <avati@gluster.com>2011-07-12 06:59:40 -0700
commitf9e0638b7597f4b1a4245f63c94d3d6bd3158136 (patch)
tree2d32cc277dd2032e3420b7b16d21a3d68d909435 /xlators/nfs/server/src/nfs-generics.h
parent43d6d33d35618eb684975d6f0d1263e25ae6466c (diff)
nfs: Change NFS3 access op to use access fop
This change is needed so that we have a uniform dependence on posix-acl for permission checks as well as ACL checks. Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 3057 (acl permissions don't work on nfs mount) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3057
Diffstat (limited to 'xlators/nfs/server/src/nfs-generics.h')
-rw-r--r--xlators/nfs/server/src/nfs-generics.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/nfs/server/src/nfs-generics.h b/xlators/nfs/server/src/nfs-generics.h
index 91915f120ea..fa907b7c555 100644
--- a/xlators/nfs/server/src/nfs-generics.h
+++ b/xlators/nfs/server/src/nfs-generics.h
@@ -157,4 +157,8 @@ nfs_read_sync (xlator_t *xl, nfs_user_t *nfu, fd_t *fd, size_t size,
extern int
nfs_opendir (xlator_t *nfsx, xlator_t *fopxl, nfs_user_t *nfu, loc_t *pathloc,
fop_opendir_cbk_t cbk, void *local);
+
+extern int
+nfs_access (xlator_t *nfsx, xlator_t *xl, nfs_user_t *nfu, loc_t *pathloc,
+ int32_t accesstest, fop_access_cbk_t cbk, void *local);
#endif