summaryrefslogtreecommitdiffstats
path: root/xlators/storage
diff options
context:
space:
mode:
authorRahul <rahul@gluster.com>2011-07-01 05:53:10 +0000
committerAnand Avati <avati@gluster.com>2011-07-11 23:18:54 -0700
commita36225a984240629a906608c85a9ac7e432aacfe (patch)
treef0b3dec25bb1bca6611706dc1d392bd6c5a4781f /xlators/storage
parentbf4a7bed6420377aac26693f450a450bc54d005c (diff)
Fixes missing ".." entry in the mount point
Signed-off-by: Rahul <rahul@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 3097 ([b7aeaa619b82509fbe8d187bbc1618cb319d6877] ".." entry in mount point missing.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3097
Diffstat (limited to 'xlators/storage')
-rw-r--r--xlators/storage/posix/src/posix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index 1dcaba3d..b4b4a3cc 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -4288,7 +4288,8 @@ posix_do_readdir (call_frame_t *frame, xlator_t *this,
strcpy (entry_path + real_path_len + 1,
tmp_entry->d_name);
posix_lstat_with_gfid (this, entry_path, &stbuf);
- tmp_entry->d_ino = stbuf.ia_ino;
+ if (stbuf.ia_ino)
+ tmp_entry->d_ino = stbuf.ia_ino;
tmp_entry->d_stat = stbuf;
}
}