summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient/src
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfsclient/src')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c
index dd75115be3d..b4e62e55ced 100755
--- a/libglusterfsclient/src/libglusterfsclient.c
+++ b/libglusterfsclient/src/libglusterfsclient.c
@@ -5208,10 +5208,14 @@ glusterfs_glh_chmod (glusterfs_handle_t handle, const char *path, mode_t mode)
libglusterfs_client_ctx_t *ctx = handle;
loc_t loc = {0, };
char *name = NULL;
+ struct stat stbuf = {0,};
+ int32_t valid = 0;
GF_VALIDATE_OR_GOTO (LIBGF_XL_NAME, ctx, out);
GF_VALIDATE_ABSOLUTE_PATH_OR_GOTO (LIBGF_XL_NAME, path, out);
+ stbuf.st_mode = mode;
+ valid |= GF_SET_ATTR_MODE;
loc.path = libgf_resolve_path_light ((char *)path);
if (!loc.path) {
gf_log (LIBGF_XL_NAME, GF_LOG_ERROR, "Path compaction failed");
@@ -5230,7 +5234,7 @@ glusterfs_glh_chmod (glusterfs_handle_t handle, const char *path, mode_t mode)
goto out;
}
- op_ret = libgf_client_chmod (ctx, &loc, mode);
+ op_ret = libgf_client_setattr (ctx, &loc, &stbuf, valid);
out:
if (name)
* tests: run nfs tests only if --enable-gnfs is providedAmar Tumballi2019-01-241-0/+2 * libglusterfs/common-utils.c: Fix buffer size for checksum computationVarsha Rao2019-01-111-0/+35 * cluster/afr: Disable client side heals in AFR by default.Sunil Kumar Acharya2019-01-101-0/+3 * glusterd: coverity fixesAtin Mukherjee2018-11-031-0/+3 * tiering: remove the translator from build and glusterdAmar Tumballi2018-11-021-78/+0 * glusterd: set fsid while performing replace brickSanju Rakonde2018-11-021-0/+58 * tests: brick-mux-fd-cleanup.t should be under core directoryAtin Mukherjee2018-10-311-78/+0 * stripe: remove the translator from build and glusterdAmar Tumballi2018-10-312-9/+2 * glusterd: ensure volinfo->caps is set to correct value.Sanju Rakonde2018-10-251-0/+9 * tests: correction in tests/bugs/glusterd/optimized-basic-testcases-in-cluster.tSanju Rakonde2018-10-251-9/+18 * core: glusterfsd keeping fd open in index xlatorMohit Agrawal2018-10-121-0/+78 * tests: fix test case failureSanju Rakonde2018-09-201-1/+1 * Land part 2 of clang-format changesGluster Ant2018-09-121-7/+7 * glusterd: avoid using glusterd's working directory as a brickSanju Rakonde2018-09-081-0/+9 * tests: fix brick check ordersAtin Mukherjee2018-08-134-33/+51 * tests: Fix cleanup routine for some mux testsShyamsundarR2018-08-131-3/+2 * glusterd: Compare volume_id before start/attach a brickMohit Agrawal2018-08-101-0/+93 * glusterd: Bricks of a normal volumes should not attach to gluster_shared_stor...Sanju Rakonde2018-08-032-33/+51 * glusterd: Introduce daemon-log-level cluster wide optionAtin Mukherjee2018-07-031-0/+93 * glusterd: handling brick termination in brick-muxSanju Rakonde2018-05-071-0/+33 * gluster: Sometimes Brick process is crashed at the time of stopping brickMohit Agrawal2018-04-191-1/+1 * glusterd: mark port_registered to true for all running bricks with brick muxAtin Mukherjee2018-04-051-2/+13 * Revert "glusterd: handling brick termination in brick-mux"Sanju Rakonde2018-03-291-32/+0 * glusterd: handling brick termination in brick-muxSanju Rakonde2018-03-281-0/+32 * glusterd: optimization of test casesSanju Rakonde2018-02-1093-2696/+1575 * tests: fix for bug-1260185-donot-allow-detach-commit-unnecessarily.t failurehari gowtham2017-11-301-49/+0 * tests: mark currently failing regression tests as known issuesAmar Tumballi2017-11-281-0/+6 * tests: fix bug-1483058-replace-brick-quorum-validation.t spurious failureAtin Mukherjee2017-11-121-1/+8 * tests: fix spurious failure in bug-1345727-bricks-stop-on-no-quorum-validation.tAtin Mukherjee2017-11-071-0/+1 * glusterd: delete source brick only once in reset-brick commit forceAtin Mukherjee2017-10-311-0/+24 * tests: Update tier CLI in .t filesN Balachandran2017-10-301-1/+1 * glusterd:Marking all the brick status as stopped when a process goes down in ...Sanju Rakonde2017-10-121-0/+27 * glusterd: disallow replace brick for dist only volumesAtin Mukherjee2017-09-194-17/+17 * glusterd: glusterd fails to start if peers file has blank lineGaurav Yadav2017-08-241-0/+29 * glusterd: replace-brick executing successfully when quorum does not metGaurav Yadav2017-08-221-0/+51 * glusterd: disallow volume specific options to be set with all as volume nameAtin Mukherjee2017-08-181-0/+25