#include "common/config.h"
#include "global/global_context.h"
+#include "include/denc.h"
#include "include/ceph_assert.h"
#include "mds/MDSContinuation.h"
*/
if (session->info.has_feature(CEPHFS_FEATURE_REPLY_ENCODING)) {
ENCODE_START(7, 1, bl);
- encode(oi->ino, bl);
- encode(snapid, bl);
- encode(oi->rdev, bl);
- encode(version, bl);
- encode(xattr_version, bl);
+ encode(std::tuple{
+ oi->ino,
+ snapid,
+ oi->rdev,
+ version,
+ xattr_version,
+ }, bl, 0);
encode(ecap, bl);
{
ceph_file_layout legacy_layout;
layout.to_legacy(&legacy_layout);
encode(legacy_layout, bl);
}
- encode(any_i->ctime, bl);
- encode(file_i->mtime, bl);
- encode(file_i->atime, bl);
- encode(file_i->time_warp_seq, bl);
- encode(file_i->size, bl);
- encode(max_size, bl);
- encode(file_i->truncate_size, bl);
- encode(file_i->truncate_seq, bl);
- encode(auth_i->mode, bl);
- encode((uint32_t)auth_i->uid, bl);
- encode((uint32_t)auth_i->gid, bl);
- encode(link_i->nlink, bl);
- encode(file_i->dirstat.nfiles, bl);
- encode(file_i->dirstat.nsubdirs, bl);
- encode(file_i->rstat.rbytes, bl);
- encode(file_i->rstat.rfiles, bl);
- encode(file_i->rstat.rsubdirs, bl);
- encode(file_i->rstat.rctime, bl);
+ encode(std::tuple{
+ any_i->ctime,
+ file_i->mtime,
+ file_i->atime,
+ file_i->time_warp_seq,
+ file_i->size,
+ max_size,
+ file_i->truncate_size,
+ file_i->truncate_seq,
+ auth_i->mode,
+ (uint32_t)auth_i->uid,
+ (uint32_t)auth_i->gid,
+ link_i->nlink,
+ file_i->dirstat.nfiles,
+ file_i->dirstat.nsubdirs,
+ file_i->rstat.rbytes,
+ file_i->rstat.rfiles,
+ file_i->rstat.rsubdirs,
+ file_i->rstat.rctime,
+ }, bl, 0);
dirfragtree.encode(bl);
encode(symlink, bl);
encode(file_i->dir_layout, bl);
#include "events/ESegment.h"
#include "events/ELid.h"
+#include "include/denc.h"
#include "include/stringify.h"
#include "LogSegment.h"
{
ENCODE_START(3, 2, bl);
encode(dn, bl);
- encode(dnfirst, bl);
- encode(dnlast, bl);
- encode(dnv, bl);
- encode(ino, bl);
- encode(d_type, bl);
- encode(dirty, bl);
+ encode(std::tuple{
+ dnfirst,
+ dnlast,
+ dnv,
+ ino,
+ d_type,
+ dirty,
+ }, bl, 0);
encode(alternate_name, bl);
ENCODE_FINISH(bl);
}
{
ENCODE_START(2, 2, bl);
encode(dn, bl);
- encode(dnfirst, bl);
- encode(dnlast, bl);
- encode(dnv, bl);
- encode(dirty, bl);
+ encode(std::tuple{
+ dnfirst,
+ dnlast,
+ dnv,
+ dirty,
+ }, bl, 0);
ENCODE_FINISH(bl);
}
{
ENCODE_START(2, 2, bl);
encode(*fnode, bl);
- encode(state, bl);
- encode(nfull, bl);
- encode(nremote, bl);
- encode(nnull, bl);
+ encode(std::tuple{
+ state,
+ nfull,
+ nremote,
+ nnull,
+ }, bl, 0);
_encode_bits(features);
encode(dnbl, bl);
ENCODE_FINISH(bl);
encode(lump_map, bl, features);
encode(roots, bl, features);
encode(table_tids, bl);
- encode(opened_ino, bl);
- encode(allocated_ino, bl);
- encode(used_preallocated_ino, bl);
+ encode(std::tuple{
+ opened_ino,
+ allocated_ino,
+ used_preallocated_ino,
+ }, bl, 0);
encode(preallocated_inos, bl);
encode(client_name, bl);
- encode(inotablev, bl);
- encode(sessionmapv, bl);
+ encode(std::tuple{
+ inotablev,
+ sessionmapv,
+ }, bl, 0);
encode(truncate_start, bl);
encode(truncate_finish, bl);
encode(destroyed_inodes, bl);
// make MDSRank use v6 format happy
int64_t i = -1;
bool b = false;
- encode(i, bl);
- encode(b, bl);
+ encode(std::tuple{
+ i,
+ b,
+ }, bl, 0);
}
encode(client_flushes, bl);
ENCODE_FINISH(bl);