summaryrefslogtreecommitdiffstats
path: root/xlators/system
diff options
context:
space:
mode:
authorGluster Ant <bugzilla-bot@gluster.org>2018-09-12 17:22:48 +0530
committerNigel Babu <nigelb@redhat.com>2018-09-12 17:22:48 +0530
commit45a71c0548b6fd2c757aa2e7b7671a1411948894 (patch)
tree2a5a9b73bae47ab53a41166fd041a06612587f48 /xlators/system
parentbe77dbbda692792335a8e9e7c02e0c281f003c40 (diff)
Land clang-format changes
Change-Id: I6f5d8140a06f3c1b2d196849299f8d483028d33b
Diffstat (limited to 'xlators/system')
-rw-r--r--xlators/system/posix-acl/src/posix-acl-mem-types.h11
-rw-r--r--xlators/system/posix-acl/src/posix-acl-messages.h4
-rw-r--r--xlators/system/posix-acl/src/posix-acl-xattr.h11
-rw-r--r--xlators/system/posix-acl/src/posix-acl.h26
4 files changed, 29 insertions, 23 deletions
diff --git a/xlators/system/posix-acl/src/posix-acl-mem-types.h b/xlators/system/posix-acl/src/posix-acl-mem-types.h
index 7eed2eb..19b6e9a 100644
--- a/xlators/system/posix-acl/src/posix-acl-mem-types.h
+++ b/xlators/system/posix-acl/src/posix-acl-mem-types.h
@@ -14,11 +14,10 @@
#include "mem-types.h"
typedef enum gf_posix_acl_mem_types_ {
- gf_posix_acl_mt_ctx_t = gf_common_mt_end + 1,
- gf_posix_acl_mt_posix_ace_t,
- gf_posix_acl_mt_char,
- gf_posix_acl_mt_conf_t,
- gf_posix_acl_mt_end
+ gf_posix_acl_mt_ctx_t = gf_common_mt_end + 1,
+ gf_posix_acl_mt_posix_ace_t,
+ gf_posix_acl_mt_char,
+ gf_posix_acl_mt_conf_t,
+ gf_posix_acl_mt_end
} gf_posix_acl_mem_types_t;
#endif
-
diff --git a/xlators/system/posix-acl/src/posix-acl-messages.h b/xlators/system/posix-acl/src/posix-acl-messages.h
index 782750e..f4f47ff 100644
--- a/xlators/system/posix-acl/src/posix-acl-messages.h
+++ b/xlators/system/posix-acl/src/posix-acl-messages.h
@@ -23,8 +23,6 @@
* glfs-message-id.h.
*/
-GLFS_MSGID(POSIX_ACL,
- POSIX_ACL_MSG_EACCES
-);
+GLFS_MSGID(POSIX_ACL, POSIX_ACL_MSG_EACCES);
#endif /* !_POSIX_ACL_MESSAGES_H_ */
diff --git a/xlators/system/posix-acl/src/posix-acl-xattr.h b/xlators/system/posix-acl/src/posix-acl-xattr.h
index 2933c20..bb63a10 100644
--- a/xlators/system/posix-acl/src/posix-acl-xattr.h
+++ b/xlators/system/posix-acl/src/posix-acl-xattr.h
@@ -16,11 +16,14 @@
#include "glusterfs.h"
#include "glusterfs-acl.h"
-struct posix_acl *posix_acl_from_xattr (xlator_t *this, const char *buf, int size);
+struct posix_acl *
+posix_acl_from_xattr(xlator_t *this, const char *buf, int size);
-int posix_acl_to_xattr (xlator_t *this, struct posix_acl *acl, char *buf, int size);
-
-int posix_acl_matches_xattr (xlator_t *this, struct posix_acl *acl, const char *buf, int size);
+int
+posix_acl_to_xattr(xlator_t *this, struct posix_acl *acl, char *buf, int size);
+int
+posix_acl_matches_xattr(xlator_t *this, struct posix_acl *acl, const char *buf,
+ int size);
#endif /* !_POSIX_ACL_XATTR_H */
diff --git a/xlators/system/posix-acl/src/posix-acl.h b/xlators/system/posix-acl/src/posix-acl.h
index c5e0196..e25fbb5 100644
--- a/xlators/system/posix-acl/src/posix-acl.h
+++ b/xlators/system/posix-acl/src/posix-acl.h
@@ -16,15 +16,21 @@
#include "byte-order.h"
#include "glusterfs-acl.h"
-struct posix_acl *posix_acl_new (xlator_t *this, int entry_count);
-struct posix_acl *posix_acl_ref (xlator_t *this, struct posix_acl *acl);
-void posix_acl_unref (xlator_t *this, struct posix_acl *acl);
-void posix_acl_destroy (xlator_t *this, struct posix_acl *acl);
-struct posix_acl_ctx *posix_acl_ctx_get (inode_t *inode, xlator_t *this);
-int posix_acl_get (inode_t *inode, xlator_t *this,
- struct posix_acl **acl_access_p,
- struct posix_acl **acl_default_p);
-int posix_acl_set (inode_t *inode, xlator_t *this, struct posix_acl *acl_access,
- struct posix_acl *acl_default);
+struct posix_acl *
+posix_acl_new(xlator_t *this, int entry_count);
+struct posix_acl *
+posix_acl_ref(xlator_t *this, struct posix_acl *acl);
+void
+posix_acl_unref(xlator_t *this, struct posix_acl *acl);
+void
+posix_acl_destroy(xlator_t *this, struct posix_acl *acl);
+struct posix_acl_ctx *
+posix_acl_ctx_get(inode_t *inode, xlator_t *this);
+int
+posix_acl_get(inode_t *inode, xlator_t *this, struct posix_acl **acl_access_p,
+ struct posix_acl **acl_default_p);
+int
+posix_acl_set(inode_t *inode, xlator_t *this, struct posix_acl *acl_access,
+ struct posix_acl *acl_default);
#endif /* !_POSIX_ACL_H */