162306a36Sopenharmony_ci/* 262306a36Sopenharmony_ci * Common NFSv4 ACL handling definitions. 362306a36Sopenharmony_ci * 462306a36Sopenharmony_ci * Copyright (c) 2002 The Regents of the University of Michigan. 562306a36Sopenharmony_ci * All rights reserved. 662306a36Sopenharmony_ci * 762306a36Sopenharmony_ci * Marius Aamodt Eriksen <marius@umich.edu> 862306a36Sopenharmony_ci * 962306a36Sopenharmony_ci * Redistribution and use in source and binary forms, with or without 1062306a36Sopenharmony_ci * modification, are permitted provided that the following conditions 1162306a36Sopenharmony_ci * are met: 1262306a36Sopenharmony_ci * 1362306a36Sopenharmony_ci * 1. Redistributions of source code must retain the above copyright 1462306a36Sopenharmony_ci * notice, this list of conditions and the following disclaimer. 1562306a36Sopenharmony_ci * 2. Redistributions in binary form must reproduce the above copyright 1662306a36Sopenharmony_ci * notice, this list of conditions and the following disclaimer in the 1762306a36Sopenharmony_ci * documentation and/or other materials provided with the distribution. 1862306a36Sopenharmony_ci * 3. Neither the name of the University nor the names of its 1962306a36Sopenharmony_ci * contributors may be used to endorse or promote products derived 2062306a36Sopenharmony_ci * from this software without specific prior written permission. 2162306a36Sopenharmony_ci * 2262306a36Sopenharmony_ci * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED 2362306a36Sopenharmony_ci * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 2462306a36Sopenharmony_ci * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 2562306a36Sopenharmony_ci * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2662306a36Sopenharmony_ci * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2762306a36Sopenharmony_ci * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2862306a36Sopenharmony_ci * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 2962306a36Sopenharmony_ci * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 3062306a36Sopenharmony_ci * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 3162306a36Sopenharmony_ci * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 3262306a36Sopenharmony_ci * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3362306a36Sopenharmony_ci */ 3462306a36Sopenharmony_ci 3562306a36Sopenharmony_ci#ifndef LINUX_NFS4_ACL_H 3662306a36Sopenharmony_ci#define LINUX_NFS4_ACL_H 3762306a36Sopenharmony_ci 3862306a36Sopenharmony_cistruct nfs4_acl; 3962306a36Sopenharmony_cistruct svc_fh; 4062306a36Sopenharmony_cistruct svc_rqst; 4162306a36Sopenharmony_cistruct nfsd_attrs; 4262306a36Sopenharmony_cienum nfs_ftype4; 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_ciint nfs4_acl_bytes(int entries); 4562306a36Sopenharmony_ciint nfs4_acl_get_whotype(char *, u32); 4662306a36Sopenharmony_ci__be32 nfs4_acl_write_who(struct xdr_stream *xdr, int who); 4762306a36Sopenharmony_ci 4862306a36Sopenharmony_ciint nfsd4_get_nfs4_acl(struct svc_rqst *rqstp, struct dentry *dentry, 4962306a36Sopenharmony_ci struct nfs4_acl **acl); 5062306a36Sopenharmony_ci__be32 nfsd4_acl_to_attr(enum nfs_ftype4 type, struct nfs4_acl *acl, 5162306a36Sopenharmony_ci struct nfsd_attrs *attr); 5262306a36Sopenharmony_ci 5362306a36Sopenharmony_ci#endif /* LINUX_NFS4_ACL_H */ 54