"Fossies" - the Fresh Open Source Software Archive

Member "glusterfs-8.2/xlators/nfs/server/src/acl3.h" (16 Sep 2020, 1015 Bytes) of package /linux/misc/glusterfs-8.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "acl3.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (c) 2012 Red Hat, Inc. <http://www.redhat.com>
    3  * This file is part of GlusterFS.
    4  *
    5  * This file is licensed to you under your choice of the GNU Lesser
    6  * General Public License, version 3 or any later version (LGPLv3 or
    7  * later), or the GNU General Public License, version 2 (GPLv2), in all
    8  * cases as published by the Free Software Foundation.
    9  */
   10 
   11 #ifndef _ACL3_H
   12 #define _ACL3_H
   13 
   14 #include <glusterfs/glusterfs-acl.h>
   15 
   16 #define ACL3_NULL 0
   17 #define ACL3_GETACL 1
   18 #define ACL3_SETACL 2
   19 #define ACL3_PROC_COUNT 3
   20 
   21 #define GF_ACL3_PORT 38469
   22 #define GF_ACL GF_NFS "-ACL"
   23 
   24 /* Flags for the getacl/setacl mode */
   25 #define NFS_ACL 0x0001
   26 #define NFS_ACLCNT 0x0002
   27 #define NFS_DFACL 0x0004
   28 #define NFS_DFACLCNT 0x0008
   29 
   30 /*
   31  * NFSv3, identifies the default ACL by NFS_ACL_DEFAULT. Gluster
   32  * NFS needs to mask it OFF before sending it up to POSIX layer
   33  * or File system layer.
   34  */
   35 #define NFS_ACL_DEFAULT 0x1000
   36 
   37 #define NFS_ACL_MAX_ENTRIES 1024
   38 
   39 rpcsvc_program_t *
   40 acl3svc_init(xlator_t *nfsx);
   41 
   42 #endif