summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2020-11-18 14:55:05 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-06-21 14:53:03 +0200
commit89ac9a8101ad4aff456116d2dcc9a56df3d9052d (patch)
tree32d9769e5de12b76dc2f00b0f4f5f745aad88b88 /include/linux
parent93584780eb4d8f58303c4d828b18bf7b136b917c (diff)
NFSD: Add an xdr_stream-based encoder for NFSv2/3 ACLs
[ Upstream commit 8edc0648880a151026fe625fa1b76772b5766f68 ] Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
-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 */