summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-11-09 14:17:34 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-11-12 01:10:52 -0800
commit9bbe8d4cd989d331409e174cefd38caed41b0ea0 (patch)
treee6aea25b7d965960a51c74e631a55429fb563539 /libglusterfs
parentc1bf268b28d5d5959295cf1a22bdb71d0a6a9687 (diff)
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 <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 315 (generation number support) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=315
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/inode.c2
1 files changed, 1 insertions, 1 deletions
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);