summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/defaults.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/defaults.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/defaults.h')
-rw-r--r--libglusterfs/src/defaults.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/libglusterfs/src/defaults.h b/libglusterfs/src/defaults.h
index 31df5dd0f6a..16790eb6af6 100644
--- a/libglusterfs/src/defaults.h
+++ b/libglusterfs/src/defaults.h
@@ -45,6 +45,37 @@ typedef struct {
always valid irrespective of this */
} default_args_cbk_t;
+typedef 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;
+} default_args_t;
+
int32_t default_notify (xlator_t *this,
int32_t event,
void *data,