mirror of
https://github.com/ceph/ceph
synced 2025-01-01 00:22:25 +00:00
mds: pass btime in InodeStat MClientReply, if feature is present
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
e292d2bef5
commit
4349879a69
@ -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;
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user