diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2009-10-01 06:59:12 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-01 07:24:19 -0700 |
commit | 3dc513b108df276b974c0ddc47f7ac9bff907448 (patch) | |
tree | 12b1c3a0a88f3c20bbf2e31d587371888d7e24d9 | |
parent | 0778d42be1a463f643994592073837b59d33bd76 (diff) |
libglusterfsclient: Remove redundant chown 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
-rwxr-xr-x | libglusterfsclient/src/libglusterfsclient.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c index 9cefe9107f6..2b01b4b5662 100755 --- a/libglusterfsclient/src/libglusterfsclient.c +++ b/libglusterfsclient/src/libglusterfsclient.c @@ -5231,44 +5231,6 @@ out: return op_ret; } -int -libgf_client_chown_cbk (call_frame_t *frame, void *cookie, xlator_t *this, - int32_t op_ret, int32_t op_errno, struct stat *sbuf) -{ - libgf_client_local_t *local = frame->local; - - local->reply_stub = fop_chown_cbk_stub (frame, NULL, op_ret, op_errno, - sbuf); - - LIBGF_REPLY_NOTIFY (local); - return 0; -} - -int -libgf_client_chown (libglusterfs_client_ctx_t *ctx, loc_t *loc, uid_t uid, - gid_t gid) -{ - call_stub_t *stub = NULL; - libgf_client_local_t *local = NULL; - int32_t op_ret = -1; - - LIBGF_CLIENT_FOP (ctx, stub, chown, local, loc, uid, gid); - - op_ret = stub->args.chown_cbk.op_ret; - errno = stub->args.chown_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.chown_cbk.buf); - libgf_update_iattr_cache (loc->inode, LIBGF_UPDATE_STAT, - &stub->args.chown_cbk.buf); -out: - call_stub_destroy (stub); - return op_ret; -} #define LIBGF_DO_CHOWN 1 #define LIBGF_DO_LCHOWN 2 |