From 557ea3781e984f5f3cf206dd4b8d0a81c8cbdb58 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 14 Apr 2015 13:45:33 +0530 Subject: libglusterfs: Implement cluster-syncop This patch implements syncop equivalent for cluster of xlators. The xlators on which the fop needs to be performed is taken in input arguments to the functions and the responses are gathered and provided as the output. This idea is taken from afr-v2 self-heal implementation by Avati. Change-Id: I2b568f4340cf921a65054b8ab0df7edc4478b5ca BUG: 1213358 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/10240 Reviewed-by: Krutika Dhananjay Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- libglusterfs/src/call-stub.h | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) (limited to 'libglusterfs/src/call-stub.h') diff --git a/libglusterfs/src/call-stub.h b/libglusterfs/src/call-stub.h index fe110775fc6..954338be915 100644 --- a/libglusterfs/src/call-stub.h +++ b/libglusterfs/src/call-stub.h @@ -17,6 +17,7 @@ #endif #include "xlator.h" +#include "defaults.h" #include "stack.h" #include "list.h" @@ -153,30 +154,7 @@ typedef struct { dict_t *xdata; } args; - struct { - int op_ret; - int op_errno; - inode_t *inode; - struct iatt stat; - struct iatt prestat; - struct iatt poststat; - struct iatt preparent; // @preoldparent in rename_cbk - struct iatt postparent; // @postoldparent in rename_cbk - struct iatt preparent2; // @prenewparent in rename_cbk - struct iatt postparent2; // @postnewparent in rename_cbk - const char *buf; - struct iovec *vector; - int count; - struct iobref *iobref; - fd_t *fd; - struct statvfs statvfs; - dict_t *xattr; - struct gf_flock lock; - uint32_t weak_checksum; - uint8_t *strong_checksum; - dict_t *xdata; - gf_dirent_t entries; - } args_cbk; + default_args_cbk_t args_cbk; } call_stub_t; -- cgit