summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/defaults.c
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-06-09 05:08:58 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-06-11 07:51:26 -0700
commit1a6989613914cc86a64c3eb21cfddba15ce372d9 (patch)
tree187a17f84131c7909c9fda37822fec6b3c3ee0d7 /libglusterfs/src/defaults.c
parent77d8cfeab52cd19f3b70abd9c3a2c4bbc9219bff (diff)
Added MOP log to libglusterfs/*
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'libglusterfs/src/defaults.c')
-rw-r--r--libglusterfs/src/defaults.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/libglusterfs/src/defaults.c b/libglusterfs/src/defaults.c
index 77451d11c96..ba47ecc8801 100644
--- a/libglusterfs/src/defaults.c
+++ b/libglusterfs/src/defaults.c
@@ -1344,6 +1344,32 @@ default_getspec (call_frame_t *frame,
static int32_t
+default_log_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_log (call_frame_t *frame,
+ xlator_t *this,
+ const char *msg)
+{
+ STACK_WIND (frame,
+ default_log_cbk,
+ FIRST_CHILD(this),
+ FIRST_CHILD(this)->mops->log,
+ msg);
+ return 0;
+}
+
+
+static int32_t
default_checksum_cbk (call_frame_t *frame,
void *cookie,
xlator_t *this,