diff options
author | Raghavendra G <raghavendra@gluster.com> | 2009-10-30 01:26:19 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-30 01:49:57 -0700 |
commit | ef2d6b3449ab9cf0cf653b7b84595521db63a412 (patch) | |
tree | db723fca250cd207f771815743e4edd7d30e09b7 /libglusterfsclient | |
parent | 8345b6448d292a8da4464debb4dc65b55f1f6eeb (diff) |
libglusterfsclient: don't do inode_link on root inode.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 348 (touch on booster segfaults)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=348
Diffstat (limited to 'libglusterfsclient')
-rwxr-xr-x | libglusterfsclient/src/libglusterfsclient.c | 5 |
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) |