#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <linux/crush/crush.h>
#include <linux/crush/hash.h>
#include <linux/crush/mapper.h>
Go to the source code of this file.
crush_do_rule - calculate a mapping with the given input and rule : the crush_map : the rule id : hash input
- Returns
- : pointer to result vector : maximum result size
Definition at line 469 of file mapper.c.
crush_find_rule - find a crush_rule id for a given ruleset, type, and size. : the crush_map : the storage ruleset id (user defined) : storage ruleset type (user defined) : output set size
Definition at line 36 of file mapper.c.