summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-10-01 06:59:16 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-01 07:24:33 -0700
commitb441730b5b54fcd9355bef42bd0f45a4147212e4 (patch)
tree7f3eae0861dd857a3532aadb3621952468027904 /libglusterfsclient
parent23d896068f98538954772dcd90a112b6cac17d63 (diff)
libglusterfsclient: Remove redundant fchown and fchmod
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.c78
1 files changed, 0 insertions, 78 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c
index 0aeb958..97bcdbc 100755
--- a/libglusterfsclient/src/libglusterfsclient.c
+++ b/libglusterfsclient/src/libglusterfsclient.c
@@ -5514,45 +5514,6 @@ out:
int
-libgf_client_fchmod_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_fchmod_cbk_stub (frame, NULL, op_ret, op_errno,
- buf);
- LIBGF_REPLY_NOTIFY (local);
-
- return 0;
-}
-
-int
-libgf_client_fchmod (libglusterfs_client_ctx_t *ctx, fd_t *fd, mode_t mode)
-{
- int op_ret = -1;
- libgf_client_local_t *local = NULL;
- call_stub_t *stub = NULL;
-
- LIBGF_CLIENT_FOP (ctx, stub, fchmod, local, fd, mode);
-
- op_ret = stub->args.fchmod_cbk.op_ret;
- errno = stub->args.fchmod_cbk.op_errno;
-
- gf_log (LIBGF_XL_NAME, GF_LOG_DEBUG, "status %d, errno %d", op_ret,
- errno);
- if (op_ret == -1)
- goto out;
-
- libgf_transform_devnum (ctx, &stub->args.fchmod_cbk.buf);
- libgf_update_iattr_cache (fd->inode, LIBGF_UPDATE_STAT,
- &stub->args.fchmod_cbk.buf);
-out:
- call_stub_destroy (stub);
- return op_ret;
-}
-
-int
glusterfs_fchmod (glusterfs_file_t fd, mode_t mode)
{
libglusterfs_client_fd_ctx_t *fdctx = NULL;
@@ -5577,45 +5538,6 @@ out:
return op_ret;
}
-int
-libgf_client_fchown_cbk (call_frame_t *frame, void *cookie, xlator_t *xlator,
- int32_t op_ret, int32_t op_errno,
- struct stat *buf)
-{
- libgf_client_local_t *local = frame->local;
-
- local->reply_stub = fop_fchown_cbk_stub (frame, NULL, op_ret, op_errno,
- buf);
- LIBGF_REPLY_NOTIFY (local);
-
- return 0;
-}
-
-int
-libgf_client_fchown (libglusterfs_client_ctx_t *ctx, fd_t *fd, uid_t uid,
- gid_t gid)
-{
- call_stub_t *stub = NULL;
- libgf_client_local_t *local = NULL;
- int op_ret = -1;
-
- LIBGF_CLIENT_FOP (ctx, stub, fchown, local, fd, uid, gid);
-
- op_ret = stub->args.fchown_cbk.op_ret;
- errno = stub->args.fchown_cbk.op_errno;
-
- gf_log (LIBGF_XL_NAME, GF_LOG_DEBUG, "status %d, errno %d", op_ret,
- errno);
- if (op_ret == -1)
- goto out;
-
- libgf_transform_devnum (ctx, &stub->args.fchown_cbk.buf);
- libgf_update_iattr_cache (fd->inode, LIBGF_UPDATE_STAT,
- &stub->args.fchown_cbk.buf);
-out:
- call_stub_destroy (stub);
- return op_ret;
-}
int
glusterfs_fchown (glusterfs_file_t fd, uid_t uid, gid_t gid)