MCPcopy Create free account
hub / github.com/apache/trafficserver / Check_Freelist

Function Check_Freelist

src/traffic_cache_tool/CacheTool.cc:1259–1279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1257}
1258
1259void
1260Check_Freelist(const std::string &devicePath)
1261{
1262 Cache cache;
1263 if ((err = cache.loadSpan(SpanFile))) {
1264 cache.dumpSpans(Cache::SpanDumpDepth::SPAN);
1265 for (auto sp : cache._spans) {
1266 if (devicePath.size() > 0 && sp->_path.view() == devicePath) {
1267 printf("Scanning %s\n", devicePath.data());
1268 for (auto strp : sp->_stripes) {
1269 strp->loadMeta();
1270 strp->loadDir();
1271 for (int s = 0; s < strp->_segments; s++) {
1272 strp->check_loop(s);
1273 }
1274 }
1275 break;
1276 }
1277 }
1278 }
1279}
1280
1281void
1282Init_disk(swoc::file::path const &input_file_path)

Callers 1

mainFunction · 0.85

Calls 8

loadSpanMethod · 0.80
dumpSpansMethod · 0.80
loadMetaMethod · 0.80
loadDirMethod · 0.80
check_loopMethod · 0.80
sizeMethod · 0.45
viewMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected