Commit | Line | Data |
---|---|---|
c60d54ae VF |
1 | #ifndef FIO_DATAPLACEMENT_H |
2 | #define FIO_DATAPLACEMENT_H | |
a7e8aae0 KB |
3 | |
4 | #include "io_u.h" | |
5 | ||
1a3a21b7 VF |
6 | #define STREAMS_DIR_DTYPE 1 |
7 | #define FDP_DIR_DTYPE 2 | |
8 | #define FDP_MAX_RUHS 128 | |
9 | #define FIO_MAX_DP_IDS 16 | |
98cd3c0e | 10 | |
d3e310c5 AK |
11 | /* |
12 | * How fio chooses what placement identifier to use next. Choice of | |
13 | * uniformly random, or roundrobin. | |
14 | */ | |
65ca6791 VF |
15 | enum { |
16 | FIO_DP_RANDOM = 0x1, | |
17 | FIO_DP_RR = 0x2, | |
18 | }; | |
19 | ||
d3e310c5 AK |
20 | |
21 | enum { | |
65ca6791 VF |
22 | FIO_DP_NONE = 0x0, |
23 | FIO_DP_FDP = 0x1, | |
24 | FIO_DP_STREAMS = 0x2, | |
d3e310c5 AK |
25 | }; |
26 | ||
a7e8aae0 KB |
27 | struct fio_ruhs_info { |
28 | uint32_t nr_ruhs; | |
29 | uint32_t pli_loc; | |
30 | uint16_t plis[]; | |
31 | }; | |
32 | ||
c60d54ae | 33 | int dp_init(struct thread_data *td); |
a7e8aae0 | 34 | void fdp_free_ruhs_info(struct fio_file *f); |
c60d54ae | 35 | void dp_fill_dspec_data(struct thread_data *td, struct io_u *io_u); |
a7e8aae0 | 36 | |
c60d54ae | 37 | #endif /* FIO_DATAPLACEMENT_H */ |