diff options
author | Anand Avati <avati@gluster.com> | 2010-12-06 23:28:19 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-12-06 22:18:55 -0800 |
commit | fceef36419503f332ffd1fccdcb03da86cf9cdb3 (patch) | |
tree | 101b0db3c25fa72bbe9bbf4d5ff42b0b69ca3d51 | |
parent | caa77054005ea9ca9b806006103cd3f7eed10c7d (diff) |
inode: fix crash in logging during cyclic loop detection
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 2196 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2196
-rw-r--r-- | libglusterfs/src/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/inode.c b/libglusterfs/src/inode.c index 7ce3e5b95..18faf8d1b 100644 --- a/libglusterfs/src/inode.c +++ b/libglusterfs/src/inode.c @@ -208,6 +208,8 @@ __is_dentry_cyclic (dentry_t *dentry) ret = __foreach_ancestor_dentry (dentry, __check_cycle, dentry->inode); if (ret) { + inode = dentry->inode; + if (dentry->name) name = dentry->name; uuid_unparse (inode->gfid, uuidbuf); |