From cb533fc296e37ffbd7937a8550611d557b89ae0b Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Wed, 21 Aug 2013 18:54:05 +0530 Subject: core: remove GLUSTERFS_CREATE_MODE_KEY usage Change-Id: I23b8cb7223b91a55af1cd4214f61bbe0e87351f6 BUG: 952029 Signed-off-by: Amar Tumballi Reviewed-on: http://review.gluster.org/5683 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/storage/posix/src/posix.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'xlators/storage/posix/src/posix.c') diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index fc7c259e9..3c7816cfb 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -842,7 +842,6 @@ posix_mknod (call_frame_t *frame, xlator_t *this, struct iatt preparent = {0,}; struct iatt postparent = {0,}; void * uuid_req = NULL; - mode_t st_mode = 0; DECLARE_OLD_FS_ID_VAR; @@ -918,19 +917,6 @@ real_op: strerror (op_errno)); goto out; } - } else { - op_ret = dict_get_uint32 (xdata, GLUSTERFS_CREATE_MODE_KEY, - &st_mode); - - if (op_ret >= 0) { - op_ret = chmod (real_path, st_mode); - if (op_ret < 0) { - gf_log (this->name, GF_LOG_WARNING, - "chmod failed (%s)", strerror (errno)); - } - - dict_del (xdata, GLUSTERFS_CREATE_MODE_KEY); - } } op_ret = posix_gfid_set (this, real_path, loc, xdata); -- cgit