aboutsummaryrefslogtreecommitdiffstats
path: root/dataplacement.h
blob: b5718c869e7dbadd2ab68e90b331f65914f0fb92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef FIO_DATAPLACEMENT_H
#define FIO_DATAPLACEMENT_H

#include "io_u.h"

#define STREAMS_DIR_DTYPE	1
#define FDP_DIR_DTYPE		2
#define FDP_MAX_RUHS		128
#define FIO_MAX_DP_IDS 		16

/*
 * How fio chooses what placement identifier to use next. Choice of
 * uniformly random, or roundrobin.
 */
enum {
	FIO_DP_RANDOM	= 0x1,
	FIO_DP_RR	= 0x2,
};


enum {
	FIO_DP_NONE	= 0x0,
	FIO_DP_FDP	= 0x1,
	FIO_DP_STREAMS	= 0x2,
};

struct fio_ruhs_info {
	uint32_t nr_ruhs;
	uint32_t pli_loc;
	uint16_t plis[];
};

int dp_init(struct thread_data *td);
void fdp_free_ruhs_info(struct fio_file *f);
void dp_fill_dspec_data(struct thread_data *td, struct io_u *io_u);

#endif /* FIO_DATAPLACEMENT_H */