From 59405d4da16d705ac8e509232cb986386e8ad551 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Wed, 23 Oct 2024 13:59:57 -0400 Subject: [PATCH] mds: add fscrypt metadata for inode stat size Signed-off-by: Patrick Donnelly Fixes: https://tracker.ceph.com/issues/66373 --- src/mds/CInode.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.5