mds: fix default_file_layout constructor

Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Greg Farnum 2013-01-15 13:54:18 -08:00 committed by Sage Weil
parent e461f0966a
commit 2e39dd5e6f

View File

@ -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);