From a36225a984240629a906608c85a9ac7e432aacfe Mon Sep 17 00:00:00 2001 From: Rahul Date: Fri, 1 Jul 2011 05:53:10 +0000 Subject: Fixes missing ".." entry in the mount point Signed-off-by: Rahul Signed-off-by: Anand Avati BUG: 3097 ([b7aeaa619b82509fbe8d187bbc1618cb319d6877] ".." entry in mount point missing.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3097 --- xlators/storage/posix/src/posix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/storage/posix') diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 1dcaba3dc57..b4b4a3cca72 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; } } -- cgit