From b9d94056e555c2386cee3344db23518a47970a97 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Thu, 27 Oct 2011 23:13:43 +0530 Subject: check the return value of inode_path for less than or equal to zero Change-Id: I9bbdfe79664c1339b66819a6c7ea4b7698beb5c6 BUG: 3757 Reviewed-on: http://review.gluster.com/640 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi --- libglusterfs/src/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libglusterfs') diff --git a/libglusterfs/src/inode.c b/libglusterfs/src/inode.c index 70bf52247..0b923dcb2 100644 --- a/libglusterfs/src/inode.c +++ b/libglusterfs/src/inode.c @@ -1039,7 +1039,7 @@ inode_path (inode_t *inode, const char *name, char **bufp) if ((inode->ino != 1) && (i == 0)) { - gf_log (table->name, GF_LOG_WARNING, + gf_log_callingfn (table->name, GF_LOG_WARNING, "no dentry for non-root inode %"PRId64": %s", inode->ino, uuid_utoa (inode->gfid)); ret = -ENOENT; -- cgit