summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/xlator.h
diff options
context:
space:
mode:
authorVikas Gorur <vikas@zresearch.com>2009-02-23 02:33:11 -0800
committerAnand V. Avati <avati@amp.gluster.com>2009-02-23 19:31:52 +0530
commita3ed4474de9db5bda606b374f3d8cb1cdbf8a9fb (patch)
tree23da9bd50c184564c531a15a8c396af48499f07a /libglusterfs/src/xlator.h
parent80066c23da120621f26d83d631e204ab2943d181 (diff)
added lock_notify and lock_fnotify FOPs to everywhere necessary in libglusterfs/*
fixed indentation and resubmitting Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'libglusterfs/src/xlator.h')
-rw-r--r--libglusterfs/src/xlator.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/libglusterfs/src/xlator.h b/libglusterfs/src/xlator.h
index a24184ab8..b8722b2f6 100644
--- a/libglusterfs/src/xlator.h
+++ b/libglusterfs/src/xlator.h
@@ -416,6 +416,18 @@ typedef int32_t (*fop_fxattrop_cbk_t) (call_frame_t *frame,
int32_t op_errno,
dict_t *xattr);
+typedef int32_t (*fop_lock_notify_cbk_t) (call_frame_t *frame,
+ void *cookie,
+ xlator_t *this,
+ int32_t op_ret,
+ int32_t op_errno);
+
+typedef int32_t (*fop_lock_fnotify_cbk_t) (call_frame_t *frame,
+ void *cookie,
+ xlator_t *this,
+ int32_t op_ret,
+ int32_t op_errno);
+
typedef int32_t (*fop_lookup_t) (call_frame_t *frame,
xlator_t *this,
loc_t *loc,
@@ -635,6 +647,14 @@ typedef int32_t (*fop_fxattrop_t) (call_frame_t *frame,
gf_xattrop_flags_t optype,
dict_t *xattr);
+typedef int32_t (*fop_lock_notify_t) (call_frame_t *frame,
+ xlator_t *this, loc_t *loc,
+ int32_t timeout);
+
+typedef int32_t (*fop_lock_fnotify_t) (call_frame_t *frame,
+ xlator_t *this, fd_t *fd,
+ int32_t timeout);
+
struct xlator_fops {
fop_lookup_t lookup;
fop_stat_t stat;
@@ -677,7 +697,9 @@ struct xlator_fops {
fop_getdents_t getdents;
fop_checksum_t checksum;
fop_xattrop_t xattrop;
- fop_fxattrop_t fxattrop;
+ fop_fxattrop_t fxattrop;
+ fop_lock_notify_t lock_notify;
+ fop_lock_fnotify_t lock_fnotify;
/* these entries are used for a typechecking hack in STACK_WIND _only_ */
fop_lookup_cbk_t lookup_cbk;
@@ -722,6 +744,8 @@ struct xlator_fops {
fop_checksum_cbk_t checksum_cbk;
fop_xattrop_cbk_t xattrop_cbk;
fop_fxattrop_cbk_t fxattrop_cbk;
+ fop_lock_notify_cbk_t lock_notify_cbk;
+ fop_lock_fnotify_cbk_t lock_fnotify_cbk;
};
typedef int32_t (*cbk_forget_t) (xlator_t *this,