diff options
author | Sam Lang <sam.lang@inktank.com> | 2012-09-27 02:26:34 +0200 |
---|---|---|
committer | Sam Lang <sam.lang@inktank.com> | 2012-09-27 02:26:34 +0200 |
commit | e8c734bbf1122c59f2f163087aed042b2e6a5ef7 (patch) | |
tree | 8e1bc809daad54d328b78c985ec878993e843e72 /src/client/Inode.h | |
parent | Merge remote-tracking branch 'gh/wip-3186 (diff) | |
download | ceph-e8c734bbf1122c59f2f163087aed042b2e6a5ef7.tar.xz ceph-e8c734bbf1122c59f2f163087aed042b2e6a5ef7.zip |
client: Fix compile error: bad {0} initializers
Signed-off-by: Sam Lang <sam.lang@inktank.com>
Diffstat (limited to 'src/client/Inode.h')
-rw-r--r-- | src/client/Inode.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/Inode.h b/src/client/Inode.h index 7a382f722b3..d8a7a7ddc4e 100644 --- a/src/client/Inode.h +++ b/src/client/Inode.h @@ -188,7 +188,7 @@ class Inode { Inode(CephContext *cct_, vinodeno_t vino, ceph_file_layout *layout) : cct(cct_), ino(vino.ino), snapid(vino.snapid), - rdev(0), mode(0), uid(0), gid(0), nlink(0), dir_layout({0}), layout({0}), + rdev(0), mode(0), uid(0), gid(0), nlink(0), size(0), truncate_seq(1), truncate_size(-1), time_warp_seq(0), max_size(0), version(0), xattr_version(0), flags(0), @@ -203,6 +203,8 @@ class Inode { _ref(0), ll_ref(0), dir(0), dn_set() { + memset(&dir_layout, 0, sizeof(dir_layout)); + memset(&layout, 0, sizeof(layout)); memset(&flushing_cap_tid, 0, sizeof(__u16)*CEPH_CAP_BITS); } ~Inode() { } |