diff options
author | Vikas Gorur <vikas@gluster.com> | 2009-06-09 05:08:58 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-06-11 07:51:26 -0700 |
commit | 1a6989613914cc86a64c3eb21cfddba15ce372d9 (patch) | |
tree | 187a17f84131c7909c9fda37822fec6b3c3ee0d7 /libglusterfs/src/defaults.c | |
parent | 77d8cfeab52cd19f3b70abd9c3a2c4bbc9219bff (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.c | 26 |
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, |