summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/defaults.c
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/defaults.c
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/defaults.c')
-rw-r--r--libglusterfs/src/defaults.c45
1 files changed, 45 insertions, 0 deletions
diff --git a/libglusterfs/src/defaults.c b/libglusterfs/src/defaults.c
index 575e3d86e40..867c664cb6b 100644
--- a/libglusterfs/src/defaults.c
+++ b/libglusterfs/src/defaults.c
@@ -1337,6 +1337,51 @@ default_readdir (call_frame_t *frame,
return 0;
}
+
+int32_t
+default_lock_notify_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
+ int32_t op_ret, int32_t op_errno)
+{
+ STACK_UNWIND (frame, op_ret, op_errno);
+ return 0;
+}
+
+
+int32_t
+default_lock_fnotify_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
+ int32_t op_ret, int32_t op_errno)
+{
+ STACK_UNWIND (frame, op_ret, op_errno);
+ return 0;
+}
+
+
+int32_t
+default_lock_notify (call_frame_t *frame, xlator_t *this,
+ loc_t *loc, int32_t timeout)
+{
+ STACK_WIND (frame,
+ default_lock_notify_cbk,
+ FIRST_CHILD (this),
+ FIRST_CHILD (this)->fops->lock_notify,
+ loc, timeout);
+ return 0;
+}
+
+
+int32_t
+default_lock_fnotify (call_frame_t *frame, xlator_t *this,
+ fd_t *fd, int32_t timeout)
+{
+ STACK_WIND (frame,
+ default_lock_notify_cbk,
+ FIRST_CHILD (this),
+ FIRST_CHILD (this)->fops->lock_fnotify,
+ fd, timeout);
+ return 0;
+}
+
+
/* notify */
int32_t
default_notify (xlator_t *this,