MCPcopy Create free account
hub / github.com/ceph/ceph / update

Method update

src/mds/CInode.cc:66–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64using namespace std;
65
66void CInodeCommitOperation::update(ObjectOperation &op, inode_backtrace_t &bt) {
67 using ceph::encode;
68
69 op.priority = priority;
70 op.create(false);
71
72 bufferlist parent_bl;
73 encode(bt, parent_bl);
74 op.setxattr("parent", parent_bl);
75
76 // for the old pool there is no need to update the layout and symlink
77 if (!update_layout_symlink)
78 return;
79
80 bufferlist layout_bl;
81 encode(_layout, layout_bl, _features);
82 op.setxattr("layout", layout_bl);
83
84 if (!_symlink.empty()) {
85 bufferlist symlink_bl;
86 encode(_symlink, symlink_bl);
87 op.setxattr("symlink", symlink_bl);
88 }
89}
90
91class CInodeIOContext : public MDSIOContextBase
92{

Callers 12

readaheadFunction · 0.45
getFunction · 0.45
runMethod · 0.45
manage_qa_trackerFunction · 0.45
__call__Method · 0.45
_hash_sourcesFunction · 0.45
extract_jenkins_urlsMethod · 0.45
leader_update_setMethod · 0.45
leader_upkeep_setMethod · 0.45
_commit_opsMethod · 0.45

Calls 4

encodeFunction · 0.70
createMethod · 0.45
setxattrMethod · 0.45
emptyMethod · 0.45

Tested by 1

extract_jenkins_urlsMethod · 0.36