summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/syncop.h
diff options
context:
space:
mode:
authorKrishnan P <kp@gluster.com>2011-06-16 01:26:00 +0000
committerAnand Avati <avati@gluster.com>2011-06-16 09:15:00 -0700
commit84fe7114833aed4efc31a1beaf7fcff0124c0ab4 (patch)
tree277b21d78de7e1ad48851eaaed89ae8c99593612 /libglusterfs/src/syncop.h
parent3f2c74a941f34b29dd92e4754d01ebea9db42218 (diff)
syncop: Modified to accept one 'non-frame' arg.
Earlier syncops used to accept one argument which was a call frame to carry out the fops synchronously. Now we have two args passed to synctask function, one call frame and another void pointer. Signed-off-by: Krishnan Parthasarathi <kp@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 3033 (Changes to replace-brick and syntask interface.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3033
Diffstat (limited to 'libglusterfs/src/syncop.h')
-rw-r--r--libglusterfs/src/syncop.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libglusterfs/src/syncop.h b/libglusterfs/src/syncop.h
index 6954bfc68a9..ac913c870e1 100644
--- a/libglusterfs/src/syncop.h
+++ b/libglusterfs/src/syncop.h
@@ -35,7 +35,7 @@ struct synctask;
struct syncenv;
-typedef int (*synctask_cbk_t) (int ret, void *opaque);
+typedef int (*synctask_cbk_t) (int ret, call_frame_t *frame, void *opaque);
typedef int (*synctask_fn_t) (void *opaque);
@@ -45,6 +45,7 @@ struct synctask {
struct list_head all_tasks;
struct syncenv *env;
xlator_t *xl;
+ call_frame_t *frame;
synctask_cbk_t synccbk;
synctask_fn_t syncfn;
void *opaque;
@@ -149,7 +150,7 @@ struct syncargs {
struct syncenv * syncenv_new ();
void syncenv_destroy (struct syncenv *);
-int synctask_new (struct syncenv *, synctask_fn_t, synctask_cbk_t, void *);
+int synctask_new (struct syncenv *, synctask_fn_t, synctask_cbk_t, call_frame_t* frame, void *);
void synctask_zzzz (struct synctask *task);
void synctask_yawn (struct synctask *task);
void synctask_wake (struct synctask *task);
@@ -172,5 +173,6 @@ int syncop_setattr (xlator_t *subvol, loc_t *loc, struct iatt *iatt, int valid,
int syncop_statfs (xlator_t *subvol, loc_t *loc, struct statvfs *buf);
int syncop_setxattr (xlator_t *subvol, loc_t *loc, dict_t *dict, int32_t flags);
+int syncop_removexattr (xlator_t *subvol, loc_t *loc, const char *name);
#endif /* _SYNCOP_H */