Project

General

Profile

Feature #13506

Updated by Kefu Chai over 8 years ago

two families of for APIs for scrub and repair 

 use json dict with version number to persist the scrub results. 

 <pre> 
 int get_inconsistent_pools(set<uint64_t>* pools); 
 int get_inconsistent_pgs(uint64_t pool, [paged pgs]); 
 int get_inconsistent( /// OSD op with a flag noting that it's pool op, but it can pass through even if the pg is not "clean" 
   pg_t pgid, 
   epoch_t * cur_interval, // [in, out] 
   [paged inconsistent_t]); 

 [paged foo]: unsigned num_to_return, set<foo>* foos 
 </pre> 

 questions: 

 1. what type do we use for hobject_t? need name, location, namespace, snap 
 2. inconsistent_t should be json with scheme -> can probably be the result of @inconsistent_t::dump()@. 

Back