From 9bbe8d4cd989d331409e174cefd38caed41b0ea0 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Mon, 9 Nov 2009 14:17:34 +0000 Subject: core: Replace inode_search with inode_grep in inode_from_path This fixes a situation where the inode_from_path fails to return an inode even though the inode exists in the table. Signed-off-by: Shehjar Tikoo Signed-off-by: Anand V. Avati BUG: 315 (generation number support) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=315 --- 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 dbe421c5053..bd068439889 100644 --- a/libglusterfs/src/inode.c +++ b/libglusterfs/src/inode.c @@ -1086,7 +1086,7 @@ inode_from_path (inode_table_t *itable, const char *path) inode = inode_ref (parent); while (component) { - curr = inode_search (itable, parent->ino, component); + curr = inode_grep (itable, parent, component); if (curr == NULL) { component = strtok_r (NULL, "/", &strtokptr); -- cgit