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

Method save_table

src/tools/cephfs/DataScan.cc:2001–2015  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1999}
2000
2001int MetadataDriver::save_table(MDSTable *table)
2002{
2003 object_t table_oid = table->get_object_name();
2004
2005 bufferlist table_bl;
2006 encode(table->get_version(), table_bl);
2007 table->encode_state(table_bl);
2008 int r = metadata_io.write_full(table_oid.name, table_bl);
2009 if (r != 0) {
2010 derr << "error updating mds table " << table_oid.name
2011 << ": " << cpp_strerror(r) << dendl;
2012 return r;
2013 }
2014 return 0;
2015}
2016
2017int MetadataDriver::inject_lost_and_found(
2018 inodeno_t ino, const InodeStore &dentry)

Callers 1

scan_linksMethod · 0.80

Calls 6

cpp_strerrorFunction · 0.85
encodeFunction · 0.50
get_object_nameMethod · 0.45
get_versionMethod · 0.45
encode_stateMethod · 0.45
write_fullMethod · 0.45

Tested by

no test coverage detected