From: Yan, Zheng Date: Sun, 14 Feb 2016 08:59:31 +0000 (+0800) Subject: mds: fix inodestat size calculation X-Git-Tag: v10.1.0~241^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=00a1394247b4ed32d96f95a4166b4515fd04028c;p=ceph.git mds: fix inodestat size calculation Signed-off-by: Yan, Zheng --- diff --git a/src/mds/CInode.cc b/src/mds/CInode.cc index 2d38247ad80..c0f82ca60e2 100644 --- a/src/mds/CInode.cc +++ b/src/mds/CInode.cc @@ -3164,7 +3164,7 @@ int CInode::encode_inodestat(bufferlist& bl, Session *session, // do we have room? if (max_bytes) { unsigned bytes = 8 + 8 + 4 + 8 + 8 + sizeof(ceph_mds_reply_cap) + - sizeof(struct ceph_file_layout) + + sizeof(struct ceph_file_layout) + 4 + layout.pool_ns.size() + sizeof(struct ceph_timespec) * 3 + 4 + 8 + 8 + 8 + 4 + 4 + 4 + 4 + 4 + 8 + 8 + 8 + 8 + 8 + sizeof(struct ceph_timespec) +