aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/acl.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/acl.h')
-rw-r--r--fs/nfsd/acl.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/fs/nfsd/acl.h b/fs/nfsd/acl.h
index 8b186a4955cc..8b68218e2c1c 100644
--- a/fs/nfsd/acl.h
+++ b/fs/nfsd/acl.h
@@ -35,7 +35,9 @@
35#ifndef LINUX_NFS4_ACL_H 35#ifndef LINUX_NFS4_ACL_H
36#define LINUX_NFS4_ACL_H 36#define LINUX_NFS4_ACL_H
37 37
38#include <linux/posix_acl.h> 38struct nfs4_acl;
39struct svc_fh;
40struct svc_rqst;
39 41
40/* Maximum ACL we'll accept from client; chosen (somewhat arbitrarily) to 42/* Maximum ACL we'll accept from client; chosen (somewhat arbitrarily) to
41 * fit in a page: */ 43 * fit in a page: */
@@ -45,13 +47,9 @@ struct nfs4_acl *nfs4_acl_new(int);
45int nfs4_acl_get_whotype(char *, u32); 47int nfs4_acl_get_whotype(char *, u32);
46int nfs4_acl_write_who(int who, char *p); 48int nfs4_acl_write_who(int who, char *p);
47 49
48#define NFS4_ACL_TYPE_DEFAULT 0x01 50int nfsd4_get_nfs4_acl(struct svc_rqst *rqstp, struct dentry *dentry,
49#define NFS4_ACL_DIR 0x02 51 struct nfs4_acl **acl);
50#define NFS4_ACL_OWNER 0x04 52__be32 nfsd4_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp,
51 53 struct nfs4_acl *acl);
52struct nfs4_acl *nfs4_acl_posix_to_nfsv4(struct posix_acl *,
53 struct posix_acl *, unsigned int flags);
54int nfs4_acl_nfsv4_to_posix(struct nfs4_acl *, struct posix_acl **,
55 struct posix_acl **, unsigned int flags);
56 54
57#endif /* LINUX_NFS4_ACL_H */ 55#endif /* LINUX_NFS4_ACL_H */