From 7c4ad6d3321cc440590a6132b7dc8d0d0a58ce3b Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Wed, 13 Jul 2011 00:37:25 +0000 Subject: storage/posix: set all keys present in 'params' dict while creating an entry so, there is no need to do a 'setxattr()' after entry creation, which could now fail due to ACL on server side. Signed-off-by: Amar Tumballi Signed-off-by: Anand Avati BUG: 3164 (set xattr keys while entry creation) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3164 --- xlators/storage/posix/src/posix.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'xlators/storage/posix/src/posix.h') diff --git a/xlators/storage/posix/src/posix.h b/xlators/storage/posix/src/posix.h index f57bc0d7b68..b49401810a7 100644 --- a/xlators/storage/posix/src/posix.h +++ b/xlators/storage/posix/src/posix.h @@ -134,16 +134,18 @@ int posix_fstat_with_gfid (xlator_t *this, int fd, struct iatt *stbuf_p); int posix_lstat_with_gfid (xlator_t *this, const char *path, struct iatt *buf); dict_t *posix_lookup_xattr_fill (xlator_t *this, const char *path, loc_t *loc, dict_t *xattr, struct iatt *buf); -int posix_handle_pair (xlator_t *this, char *real_path, +int posix_handle_pair (xlator_t *this, const char *real_path, data_pair_t *trav, int flags); int posix_fhandle_pair (xlator_t *this, int fd, data_pair_t *trav, int flags); void posix_spawn_janitor_thread (xlator_t *this); -int posix_get_file_contents (xlator_t *this, char *path, +int posix_get_file_contents (xlator_t *this, const char *path, const char *name, char **contents); -int posix_set_file_contents (xlator_t *this, char *path, +int posix_set_file_contents (xlator_t *this, const char *path, data_pair_t *trav, int flags); int posix_acl_xattr_set (xlator_t *this, const char *path, dict_t *xattr_req); int posix_gfid_heal (xlator_t *this, const char *path, dict_t *xattr_req); +int posix_entry_create_xattr_set (xlator_t *this, const char *path, + dict_t *dict); #endif /* _POSIX_H */ -- cgit