t/nvmept_trim: increase transfer size for some tests
[fio.git] / dataplacement.h
1 #ifndef FIO_DATAPLACEMENT_H
2 #define FIO_DATAPLACEMENT_H
3
4 #include "io_u.h"
5
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
10
11 /*
12  * How fio chooses what placement identifier to use next. Choice of
13  * uniformly random, or roundrobin.
14  */
15 enum {
16         FIO_DP_RANDOM   = 0x1,
17         FIO_DP_RR       = 0x2,
18 };
19
20
21 enum {
22         FIO_DP_NONE     = 0x0,
23         FIO_DP_FDP      = 0x1,
24         FIO_DP_STREAMS  = 0x2,
25 };
26
27 struct fio_ruhs_info {
28         uint32_t nr_ruhs;
29         uint32_t pli_loc;
30         uint16_t plis[];
31 };
32
33 int dp_init(struct thread_data *td);
34 void fdp_free_ruhs_info(struct fio_file *f);
35 void dp_fill_dspec_data(struct thread_data *td, struct io_u *io_u);
36
37 #endif /* FIO_DATAPLACEMENT_H */