summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/call-stub.h
diff options
context:
space:
mode:
authorAnuradha Talur <atalur@redhat.com>2016-02-05 10:45:37 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2016-04-09 11:44:24 -0700
commit5ff451beecaf564b4f854b10e63a307e40660c8c (patch)
tree066fa26ce9e424d469f2483295c1fe6e05da562e /libglusterfs/src/call-stub.h
parentbe99ddd842025e0cd1a84076ee199cd4554a4575 (diff)
libglusterfs: Refactor packing of arguments
Added these changes so that they can be re-used to pack arguments required for each fop while populating the compound fop structure used by each xlator. Change-Id: Id9923e10003adafbc16a8bf3fbefa30677847313 BUG: 1303829 Signed-off-by: Anuradha Talur <atalur@redhat.com> Reviewed-on: http://review.gluster.org/13360 Reviewed-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Tested-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Reviewed-by: Ashish Pandey <aspandey@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'libglusterfs/src/call-stub.h')
-rw-r--r--libglusterfs/src/call-stub.h32
1 files changed, 1 insertions, 31 deletions
diff --git a/libglusterfs/src/call-stub.h b/libglusterfs/src/call-stub.h
index 82a49c1d7b9..cdc96ffcc9f 100644
--- a/libglusterfs/src/call-stub.h
+++ b/libglusterfs/src/call-stub.h
@@ -125,37 +125,7 @@ typedef struct _call_stub {
fop_seek_cbk_t seek;
} fn_cbk;
- struct {
- loc_t loc; // @old in rename(), link()
- loc_t loc2; // @new in rename(), link()
- fd_t *fd;
- off_t offset;
- int mask;
- size_t size;
- mode_t mode;
- dev_t rdev;
- mode_t umask;
- int xflag;
- int flags;
- const char *linkname;
- struct iovec *vector;
- int count;
- struct iobref *iobref;
- int datasync;
- dict_t *xattr;
- const char *name;
- int cmd;
- struct gf_flock lock;
- const char *volume;
- entrylk_cmd entrylkcmd;
- entrylk_type entrylktype;
- gf_xattrop_flags_t optype;
- int valid;
- struct iatt stat;
- gf_seek_what_t what;
- dict_t *xdata;
- } args;
-
+ default_args_t args;
default_args_cbk_t args_cbk;
} call_stub_t;