| 1210 | } |
| 1211 | |
| 1212 | void |
| 1213 | dir_check() |
| 1214 | { |
| 1215 | Cache cache; |
| 1216 | if ((err = cache.loadSpan(SpanFile))) { |
| 1217 | cache.dumpSpans(Cache::SpanDumpDepth::SPAN); |
| 1218 | for (auto &stripe : cache.globalVec_stripe) { |
| 1219 | stripe->dir_check(); |
| 1220 | } |
| 1221 | } |
| 1222 | printf("\nCHECK succeeded\n"); |
| 1223 | } |
| 1224 | |
| 1225 | void |
| 1226 | walk_bucket_chain(const std::string &devicePath) |