summaryrefslogtreecommitdiff
path: root/include/linux/nfsacl.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2020-11-18 14:55:05 -0500
committerChuck Lever <chuck.lever@oracle.com>2021-03-22 10:19:00 -0400
commit8edc0648880a151026fe625fa1b76772b5766f68 (patch)
treeb76457d114370eea463d5498c2a652350b0f9f07 /include/linux/nfsacl.h
parent8a2cf9f5709cc20a1114a7d22655928314fc86f8 (diff)
NFSD: Add an xdr_stream-based encoder for NFSv2/3 ACLs
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'include/linux/nfsacl.h')
-rw-r--r--include/linux/nfsacl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/nfsacl.h b/include/linux/nfsacl.h
index 0ba99c513649..8e76a79cdc6a 100644
--- a/include/linux/nfsacl.h
+++ b/include/linux/nfsacl.h
@@ -41,5 +41,8 @@ nfsacl_decode(struct xdr_buf *buf, unsigned int base, unsigned int *aclcnt,
extern bool
nfs_stream_decode_acl(struct xdr_stream *xdr, unsigned int *aclcnt,
struct posix_acl **pacl);
+extern bool
+nfs_stream_encode_acl(struct xdr_stream *xdr, struct inode *inode,
+ struct posix_acl *acl, int encode_entries, int typeflag);
#endif /* __LINUX_NFSACL_H */