diff options
author | Greg Farnum <greg@inktank.com> | 2013-01-15 13:54:18 -0800 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-01-21 08:21:20 -0800 |
commit | 2e39dd5e6f7a7e55abb2d750e3a8a37b2e91e27f (patch) | |
tree | b7df06051945780fdd1fd7156e2fa8a3b5272a30 | |
parent | e461f0966aec5f35b8bf9aa4281be82dfddb2a42 (diff) | |
download | ceph-2e39dd5e6f7a7e55abb2d750e3a8a37b2e91e27f.tar.gz |
mds: fix default_file_layout constructor
Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
-rw-r--r-- | src/mds/CInode.h | 4 |
1 files changed, 4 insertions, 0 deletions
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); |