summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvinayak hegde <vinayak@gluster.com>2009-11-05 06:31:51 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-11-05 04:23:33 -0800
commit1a53a5a4bf069e28ed6cbf6bba2b3ed14d20eb86 (patch)
tree3d4ed1d7041dfd8f7f988251d9a458b4dec6d020
parentde6be8f7f5eed270aa6fa904b1da15c9bc0b6e3b (diff)
libglusterfs/src/gf-dirent.c: In gf_dirent_nb structure d_name should be char array of size 1.v2.0.8
Signed-off-by: Vinayak Hegde <vinayak@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 360 (All fop fails when stat-prefetch is loaded on afr.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=360
-rw-r--r--libglusterfs/src/gf-dirent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/gf-dirent.c b/libglusterfs/src/gf-dirent.c
index cd31464..35a81bb 100644
--- a/libglusterfs/src/gf-dirent.c
+++ b/libglusterfs/src/gf-dirent.c
@@ -39,7 +39,7 @@ struct gf_dirent_nb {
uint32_t d_len;
uint32_t d_type;
struct gf_stat d_stat;
- char d_name[0];
+ char d_name[1];
} __attribute__((packed));