From b9c730f3960efd454c8363ee39dc144e4c0dc835 Mon Sep 17 00:00:00 2001 From: Nithya Balachandran Date: Thu, 27 Aug 2015 13:10:18 +0530 Subject: cluster/dht: Don't set posix acls on linkto files Posix acls on a linkto file change the file's permission bits and cause DHT to treat it as a non-linkto file.This happens on the migration failure of a file on which posix acls were set. The fix prevents posix acls from being set on a linkto file and copies them across only after a file has been successfully migrated. Change-Id: Iccf7ff6fba49fe05d691d9b83bf76a240848b212 BUG: 1247563 Signed-off-by: Nithya Balachandran Signed-off-by: N Balachandran Reviewed-on: http://review.gluster.org/12025 Tested-by: NetBSD Build System Reviewed-by: Raghavendra G Reviewed-by: Pranith Kumar Karampuri --- xlators/storage/posix/src/posix.h | 4 ++-- 1 file changed, 2 insertions(+), 2 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 cc7ed0402fe..27006ff3beb 100644 --- a/xlators/storage/posix/src/posix.h +++ b/xlators/storage/posix/src/posix.h @@ -202,9 +202,9 @@ int posix_pstat (xlator_t *this, uuid_t gfid, const char *real_path, dict_t *posix_xattr_fill (xlator_t *this, const char *path, loc_t *loc, fd_t *fd, int fdnum, dict_t *xattr, struct iatt *buf); int posix_handle_pair (xlator_t *this, const char *real_path, char *key, - data_t *value, int flags); + data_t *value, int flags, struct iatt *stbuf); int posix_fhandle_pair (xlator_t *this, int fd, char *key, data_t *value, - int flags); + int flags, struct iatt *stbuf); void posix_spawn_janitor_thread (xlator_t *this); int posix_get_file_contents (xlator_t *this, uuid_t pargfid, const char *name, char **contents); -- cgit