diff options
| author | Pranith Kumar K <pkarampu@redhat.com> | 2015-04-14 13:45:33 +0530 |
|---|---|---|
| committer | Vijay Bellur <vbellur@redhat.com> | 2015-05-05 03:14:25 -0700 |
| commit | 7dd7d6ce904661173bdbb156e23d096f9b02464e (patch) | |
| tree | 09089ba9ea73735d4e7cf3dda7137c0913b2fed9 /libglusterfs/src/call-stub.h | |
| parent | d7c30458c87f1341295f764e1a2a539dc4248ecc (diff) | |
libglusterfs: Implement cluster-syncop
Backport of http://review.gluster.org/10240
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.
BUG: 1216303
Change-Id: I189400ea5bb3205aae928a72afbb6c960968b65a
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/10439
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'libglusterfs/src/call-stub.h')
| -rw-r--r-- | libglusterfs/src/call-stub.h | 26 |
1 files changed, 2 insertions, 24 deletions
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; |
