]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: add fscrypt metadata for inode stat size
authorPatrick Donnelly <pdonnell@ibm.com>
Wed, 23 Oct 2024 17:59:57 +0000 (13:59 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Thu, 27 Feb 2025 18:41:53 +0000 (13:41 -0500)
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
Fixes: https://tracker.ceph.com/issues/66373
src/mds/CInode.cc

index f249f30d3c58ed89967f00d344cd247fbaa944e1..ffaa1315fc226f0de74e88e16aa28e2e3eab7bf2 100644 (file)
@@ -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