nfs-ganesha 1.4
|
00001 #ifndef _NFS4_ACLS_H 00002 #define _NFS4_ACLS_H 00003 00004 /* Define the return value of ACL operation. */ 00005 00006 typedef int fsal_acl_status_t; 00007 00008 #define NFS_V4_ACL_SUCCESS 0 00009 #define NFS_V4_ACL_ERROR 1 00010 #define NFS_V4_ACL_EXISTS 2 00011 #define NFS_V4_ACL_INTERNAL_ERROR 3 00012 #define NFS_V4_ACL_UNAPPROPRIATED_KEY 4 00013 #define NFS_V4_ACL_HASH_SET_ERROR 5 00014 #define NFS_V4_ACL_INIT_ENTRY_FAILED 6 00015 #define NFS_V4_ACL_NOT_FOUND 7 00016 00017 fsal_ace_t *nfs4_ace_alloc(int nace); 00018 00019 void nfs4_ace_free(fsal_ace_t *pace); 00020 00021 void nfs4_acl_entry_inc_ref(fsal_acl_t *pacl); 00022 00023 fsal_acl_t *nfs4_acl_new_entry(fsal_acl_data_t *pacldata, fsal_acl_status_t *pstatus); 00024 00025 void nfs4_acl_release_entry(fsal_acl_t *pacl, fsal_acl_status_t *pstatus); 00026 00027 int nfs4_acls_init(); 00028 00029 #endif /* _NFS4_ACLS_H */ 00030