00001 #ifndef _CRUSH_MAPPER_H 00002 #define _CRUSH_MAPPER_H 00003 00004 /* 00005 * CRUSH functions for find rules and then mapping an input to an 00006 * output set. 00007 * 00008 * LGPL2 00009 */ 00010 00011 #include "crush.h" 00012 #include "Distributor.h" 00013 00014 extern int crush_find_rule(struct crush_map *map, int pool, int type, int size); 00015 int crush_do_rule(VDRIVE::Distributor *dist, struct crush_map *map, 00016 int ruleno, int64_t x, int *result, int result_max, 00017 int force, uint32_t *weight); 00018 00019 00020 #endif