From 00a1394247b4ed32d96f95a4166b4515fd04028c Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Sun, 14 Feb 2016 16:59:31 +0800 Subject: [PATCH] mds: fix inodestat size calculation Signed-off-by: Yan, Zheng --- src/mds/CInode.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/CInode.cc b/src/mds/CInode.cc index 2d38247ad805d..c0f82ca60e238 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) + -- 2.39.5