From 728fcd41eb39f66744d84b979dd8195fd47313ed Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 24 Feb 2015 19:42:49 +0100 Subject: gfapi: add glfs_h_acl_set() and glfs_h_acl_get() These two functions add support for POSIX ACLs through the GFAPI-handle interface. The initial infrastructure for POSIX ACLs based on libacl has been added with the required changes to the POSIX xlator: - http://review.gluster.org/9627 NetBSD does not support POSIX ACLs, so using any of the functions should return ENOTSUP. URL: http://www.gluster.org/community/documentation/index.php/Features/Improved_POSIX_ACLs Change-Id: Ie74f3f963c3f9d576cb2f2a1e6d97e3cd4b01eda BUG: 1185654 Signed-off-by: Niels de Vos Reviewed-on: http://review.gluster.org/9736 Reviewed-by: Kaleb KEITHLEY Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- api/src/glfs-handles.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'api/src/glfs-handles.h') diff --git a/api/src/glfs-handles.h b/api/src/glfs-handles.h index c88f134b001..a939aa0df54 100644 --- a/api/src/glfs-handles.h +++ b/api/src/glfs-handles.h @@ -271,6 +271,16 @@ int glfs_h_poll_upcall (struct glfs *fs, struct callback_arg *cbk) __THROW GFAPI_PUBLIC(glfs_h_poll_upcall, 3.7.0); +int +glfs_h_acl_set (struct glfs *fs, struct glfs_object *object, + const acl_type_t type, const acl_t acl) __THROW; + GFAPI_PUBLIC(glfs_h_acl_set, 3.7.0); + +acl_t +glfs_h_acl_get (struct glfs *fs, struct glfs_object *object, + const acl_type_t type) __THROW; + GFAPI_PUBLIC(glfs_h_acl_get, 3.7.0); + __END_DECLS #endif /* !_GLFS_HANDLES_H */ -- cgit