diff options
| author | Raghavendra G <raghavendra@gluster.com> | 2009-11-18 01:20:02 +0000 | 
|---|---|---|
| committer | Anand V. Avati <avati@dev.gluster.com> | 2009-11-18 21:15:03 -0800 | 
| commit | 80f89493ce2d78095a2df64e48c7bd7291b4558d (patch) | |
| tree | 7281f29f37d3247464f712592d852f8082801b27 /xlators/protocol/server | |
| parent | 9e481a7aee95cc7aebba8843820069909f21fe07 (diff) | |
protocol/server: add debug messages.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 369 (Samba does not work with booster.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369
Diffstat (limited to 'xlators/protocol/server')
| -rw-r--r-- | xlators/protocol/server/src/server-resolve.c | 12 | 
1 files changed, 12 insertions, 0 deletions
diff --git a/xlators/protocol/server/src/server-resolve.c b/xlators/protocol/server/src/server-resolve.c index 52d30b25999..a5c13ff3f86 100644 --- a/xlators/protocol/server/src/server-resolve.c +++ b/xlators/protocol/server/src/server-resolve.c @@ -275,6 +275,15 @@ resolve_entry_simple (call_frame_t *frame)                  resolve->op_ret   = -1;                  resolve->op_errno = ENOENT;                  ret = 1; + +                inode = inode_grep (state->itable, parent, resolve->bname); +                if (inode != NULL) { +                        gf_log (this->name, GF_LOG_DEBUG, "%"PRId64": inode " +                                "(pointer:%p ino: %"PRIu64") present but parent" +                                " is NULL for path (%s)", frame->root->unique, +                                inode, inode->ino, resolve->path); +                        inode_unref (inode); +                }                  goto out;          } @@ -311,6 +320,9 @@ resolve_entry_simple (call_frame_t *frame)          }          if (resolve->type == RESOLVE_NOT) { +                gf_log (this->name, GF_LOG_DEBUG, "inode (pointer: %p ino:%" +                        PRIu64") found for path (%s) while type is RESOLVE_NOT", +                        inode, inode->ino, resolve->path);                  resolve->op_ret   = -1;                  resolve->op_errno = EEXIST;                  ret = -1;  | 
