diff options
author | Rahul <rahul@gluster.com> | 2011-07-01 05:53:10 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-07-11 23:18:54 -0700 |
commit | a36225a984240629a906608c85a9ac7e432aacfe (patch) | |
tree | f0b3dec25bb1bca6611706dc1d392bd6c5a4781f /xlators/storage/posix/src | |
parent | bf4a7bed6420377aac26693f450a450bc54d005c (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/posix/src')
-rw-r--r-- | xlators/storage/posix/src/posix.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } } |