| 1 | #ifndef FIO_FDP_H |
| 2 | #define FIO_FDP_H |
| 3 | |
| 4 | #include "io_u.h" |
| 5 | |
| 6 | #define FDP_DIR_DTYPE 2 |
| 7 | #define FDP_MAX_RUHS 128 |
| 8 | |
| 9 | /* |
| 10 | * How fio chooses what placement identifier to use next. Choice of |
| 11 | * uniformly random, or roundrobin. |
| 12 | */ |
| 13 | |
| 14 | enum { |
| 15 | FIO_FDP_RANDOM = 0x1, |
| 16 | FIO_FDP_RR = 0x2, |
| 17 | }; |
| 18 | |
| 19 | struct fio_ruhs_info { |
| 20 | uint32_t nr_ruhs; |
| 21 | uint32_t pli_loc; |
| 22 | uint16_t plis[]; |
| 23 | }; |
| 24 | |
| 25 | int fdp_init(struct thread_data *td); |
| 26 | void fdp_free_ruhs_info(struct fio_file *f); |
| 27 | void fdp_fill_dspec_data(struct thread_data *td, struct io_u *io_u); |
| 28 | |
| 29 | #endif /* FIO_FDP_H */ |