]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix inodestat size calculation
authorYan, Zheng <zyan@redhat.com>
Sun, 14 Feb 2016 08:59:31 +0000 (16:59 +0800)
committerSage Weil <sage@redhat.com>
Tue, 1 Mar 2016 16:18:18 +0000 (11:18 -0500)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/CInode.cc

index 2d38247ad805d2e6dac3b001317405e07bb4e9d3..c0f82ca60e2386e7f8e8a7a82bb37fa76b1a4343 100644 (file)
@@ -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) +