From 2e39dd5e6f7a7e55abb2d750e3a8a37b2e91e27f Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Tue, 15 Jan 2013 13:54:18 -0800 Subject: [PATCH] mds: fix default_file_layout constructor Signed-off-by: Greg Farnum Reviewed-by: Sage Weil --- src/mds/CInode.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mds/CInode.h b/src/mds/CInode.h index 6eb396d3673..140353d45b9 100644 --- a/src/mds/CInode.h +++ b/src/mds/CInode.h @@ -71,6 +71,10 @@ struct default_file_layout { ceph_file_layout layout; + default_file_layout() { + memset(&layout, 0, sizeof(layout)); + } + void encode(bufferlist &bl) const { __u8 struct_v = 1; ::encode(struct_v, bl);