summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient/src/libglusterfsclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfsclient/src/libglusterfsclient.c')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c
index de4d88fe2fd..7cec4d48685 100755
--- a/libglusterfsclient/src/libglusterfsclient.c
+++ b/libglusterfsclient/src/libglusterfsclient.c
@@ -1904,7 +1904,10 @@ libgf_client_lookup_cbk (call_frame_t *frame,
parent = local->fop.lookup.loc->parent;
libgf_transform_devnum (ctx, buf);
- inode_link (inode, parent, local->fop.lookup.loc->name, buf);
+ if (inode->ino != 1) {
+ inode_link (inode, parent, local->fop.lookup.loc->name, buf);
+ }
+
inode_lookup (inode);
} else {
if ((local->fop.lookup.is_revalidate == 0)