diff options
author | Krishna Srinivas <ksriniva@redhat.com> | 2012-09-12 12:36:49 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-11-13 23:24:46 -0800 |
commit | 1c4cb5237701bb138f9cce29036773086253f839 (patch) | |
tree | cafdfacc71618962a235a1c25921a72764490c37 /xlators/nfs/server/src/nfs3.h | |
parent | ca666417f3e6f500ec75cb7389497e2f5c4bc6e6 (diff) |
ACLv3 - Access Control Lists V3
Change-Id: I43e544d6cdeac5e3880141477461e7c22cbf6e91
BUG: 847622
Signed-off-by: Krishna Srinivas <ksriniva@redhat.com>
Reviewed-on: http://review.gluster.org/4045
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/nfs/server/src/nfs3.h')
-rw-r--r-- | xlators/nfs/server/src/nfs3.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/xlators/nfs/server/src/nfs3.h b/xlators/nfs/server/src/nfs3.h index 78eb01b60b9..111542bc6ca 100644 --- a/xlators/nfs/server/src/nfs3.h +++ b/xlators/nfs/server/src/nfs3.h @@ -35,7 +35,8 @@ #include "xdr-nfs3.h" #include "mem-pool.h" #include "nlm4.h" - +#include "acl3-xdr.h" +#include "acl3.h" #include <sys/statvfs.h> #define GF_NFS3 GF_NFS"-nfsv3" @@ -155,6 +156,10 @@ typedef union args_ { nlm4_shareargs nlm4_shareargs; nlm4_shareres nlm4_shareres; nlm4_freeallargs nlm4_freeallargs; + getaclargs getaclargs; + setaclargs setaclargs; + getaclreply getaclreply; + setaclreply setaclreply; } args; @@ -234,6 +239,14 @@ struct nfs3_local { int monitor; rpc_transport_t *trans; call_frame_t *frame; + + /* ACL */ + aclentry aclentry[NFS_ACL_MAX_ENTRIES]; + aclentry daclentry[NFS_ACL_MAX_ENTRIES]; + int aclcount; + char aclxattr[NFS_ACL_MAX_ENTRIES*8 + 4]; + int daclcount; + char daclxattr[NFS_ACL_MAX_ENTRIES*8 + 4]; }; #define nfs3_is_revalidate_lookup(cst) ((cst)->lookuptype == GF_NFS3_REVALIDATE) |