From 709de8c86a2947c98d59a5b32bcf258c196bab4b Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 21 Feb 2012 11:25:07 +0530 Subject: libglusterfs: Warn on missing _cbk calls in xlator Change-Id: I44684b5eeca3674ed8d5b7b0120699bb3767e38d BUG: 763820 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.com/2782 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi --- libglusterfs/src/defaults.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libglusterfs/src/defaults.c b/libglusterfs/src/defaults.c index c1382ae8f01..387e910175b 100644 --- a/libglusterfs/src/defaults.c +++ b/libglusterfs/src/defaults.c @@ -1198,6 +1198,8 @@ default_fsetattr (call_frame_t *frame, xlator_t *this, fd_t *fd, int32_t default_forget (xlator_t *this, inode_t *inode) { + gf_log (this->name, GF_LOG_WARNING, "xlator does not implement " + "forget_cbk"); return 0; } @@ -1205,12 +1207,16 @@ default_forget (xlator_t *this, inode_t *inode) int32_t default_releasedir (xlator_t *this, fd_t *fd) { + gf_log (this->name, GF_LOG_WARNING, "xlator does not implement " + "releasedir_cbk"); return 0; } int32_t default_release (xlator_t *this, fd_t *fd) { + gf_log (this->name, GF_LOG_WARNING, "xlator does not implement " + "release_cbk"); return 0; } -- cgit