From 1c4cb5237701bb138f9cce29036773086253f839 Mon Sep 17 00:00:00 2001 From: Krishna Srinivas Date: Wed, 12 Sep 2012 12:36:49 +0530 Subject: ACLv3 - Access Control Lists V3 Change-Id: I43e544d6cdeac5e3880141477461e7c22cbf6e91 BUG: 847622 Signed-off-by: Krishna Srinivas Reviewed-on: http://review.gluster.org/4045 Reviewed-by: Kaleb KEITHLEY Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/nfs/server/src/nfs3.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'xlators/nfs/server/src/nfs3.h') 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 #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) -- cgit