summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-10-01 06:59:11 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-01 07:24:15 -0700
commit0778d42be1a463f643994592073837b59d33bd76 (patch)
tree93bf97bb335150da0e55ebb094b42dac6b4c9b10 /libglusterfsclient
parent52193c0a79cb39b7456a57ff6470000dd39d6420 (diff)
libglusterfsclient: Remove redundant chmod code
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 146 (Add setattr FOP) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=146
Diffstat (limited to 'libglusterfsclient')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c
index ddc1fa61843..9cefe9107f6 100755
--- a/libglusterfsclient/src/libglusterfsclient.c
+++ b/libglusterfsclient/src/libglusterfsclient.c
@@ -5163,43 +5163,6 @@ out:
return op_ret;
}
-int
-libgf_client_chmod_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
- int32_t op_ret, int32_t op_errno, struct stat *buf)
-{
- libgf_client_local_t *local = frame->local;
-
- local->reply_stub = fop_chmod_cbk_stub (frame, NULL, op_ret, op_errno,
- buf);
-
- LIBGF_REPLY_NOTIFY (local);
- return 0;
-}
-
-int
-libgf_client_chmod (libglusterfs_client_ctx_t *ctx, loc_t * loc, mode_t mode)
-{
- int op_ret = -1;
- libgf_client_local_t *local = NULL;
- call_stub_t *stub = NULL;
-
- LIBGF_CLIENT_FOP (ctx, stub, chmod, local, loc, mode);
-
- op_ret = stub->args.chmod_cbk.op_ret;
- errno = stub->args.chmod_cbk.op_errno;
-
- gf_log (LIBGF_XL_NAME, GF_LOG_DEBUG, "path %s, status %d, errno %d",
- loc->path, op_ret, errno);
- if (op_ret == -1)
- goto out;
-
- libgf_transform_devnum (ctx, &stub->args.chmod_cbk.buf);
- libgf_update_iattr_cache (loc->inode, LIBGF_UPDATE_STAT,
- &stub->args.chmod_cbk.buf);
-out:
- call_stub_destroy (stub);
- return op_ret;
-}
int
glusterfs_glh_chmod (glusterfs_handle_t handle, const char *path, mode_t mode)