From: Patrick Donnelly Date: Wed, 23 Oct 2024 17:59:57 +0000 (-0400) Subject: mds: add fscrypt metadata for inode stat size X-Git-Tag: v20.0.0^2~47 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=59405d4da16d705ac8e509232cb986386e8ad551;p=ceph.git mds: add fscrypt metadata for inode stat size Signed-off-by: Patrick Donnelly Fixes: https://tracker.ceph.com/issues/66373 --- diff --git a/src/mds/CInode.cc b/src/mds/CInode.cc index f249f30d3c58e..ffaa1315fc226 100644 --- a/src/mds/CInode.cc +++ b/src/mds/CInode.cc @@ -3956,7 +3956,10 @@ int CInode::encode_inodestat(bufferlist& bl, Session *session, 8 + 8 + 8 + 8 + 8 + sizeof(struct ceph_timespec) + // dirstat.nfiles ~ rstat.rctime sizeof(__u32) + sizeof(__u32) * 2 * dirfragtree._splits.size() + // dirfragtree sizeof(__u32) + symlink.length() + // symlink - sizeof(struct ceph_dir_layout); // dir_layout + sizeof(struct ceph_dir_layout) // dir_layout + + 4 + file_i->fscrypt_auth.size() // len + data + + 4 + file_i->fscrypt_file.size() // len + data + ; if (xattr_version) { bytes += sizeof(__u32) + sizeof(__u32); // xattr buffer len + number entries