diff --git a/src/mds/CInode.cc b/src/mds/CInode.cc index 457395e5ebe..11f50fd97d4 100644 --- a/src/mds/CInode.cc +++ b/src/mds/CInode.cc @@ -3357,6 +3357,9 @@ int CInode::encode_inodestat(bufferlist& bl, Session *session, if (session->connection->has_feature(CEPH_FEATURE_FS_FILE_LAYOUT_V2)) { ::encode(layout.pool_ns, bl); } + if (session->connection->has_feature(CEPH_FEATURE_FS_BTIME)) { + ::encode(any_i->btime, bl); + } return valid; } diff --git a/src/messages/MClientReply.h b/src/messages/MClientReply.h index 44ceae2bf47..21bf239ccde 100644 --- a/src/messages/MClientReply.h +++ b/src/messages/MClientReply.h @@ -185,6 +185,10 @@ struct InodeStat { if ((features & CEPH_FEATURE_FS_FILE_LAYOUT_V2)) ::decode(layout.pool_ns, p); + if ((features & CEPH_FEATURE_FS_BTIME)) + ::decode(btime, p); + else + btime = utime_t(); } // see CInode::encode_inodestat for encoder.