1 --- accelio-1.7/examples/raio/usr/fio/libraio.c.orig 2016-12-24 13:09:13.375548622 +0100
2 +++ accelio-1.7/examples/raio/usr/fio/libraio.c 2016-12-25 00:04:40.251766246 +0100
5 static struct io_u *fio_libraio_event(struct thread_data *td, int event)
7 - struct libraio_data *ld = td->io_ops->data;
8 + struct libraio_data *ld = td->io_ops_data;
13 static int fio_libraio_getevents(struct thread_data *td, unsigned int min,
14 unsigned int max, const struct timespec *t)
16 - struct libraio_data *ld = td->io_ops->data;
17 - unsigned actual_min = td->o.iodepth_batch_complete == 0 ? 0 : min;
18 + struct libraio_data *ld = td->io_ops_data;
19 + unsigned actual_min = td->o.iodepth_batch_complete_min == 0 ? 0 : min;
25 static int fio_libraio_queue(struct thread_data *td, struct io_u *io_u)
27 - struct libraio_data *ld = td->io_ops->data;
28 + struct libraio_data *ld = td->io_ops_data;
29 struct libraio_engine_data *engine_data = io_u->engine_data;
31 fio_ro_check(td, io_u);
33 static void fio_libraio_queued(struct thread_data *td, struct io_u **io_us,
37 + struct timespec now;
40 if (!fio_fill_issue_time(td))
43 static int fio_libraio_commit(struct thread_data *td)
45 - struct libraio_data *ld = td->io_ops->data;
46 + struct libraio_data *ld = td->io_ops_data;
47 struct raio_iocb **iocbs;
52 static int fio_libraio_cancel(struct thread_data *td, struct io_u *io_u)
54 - struct libraio_data *ld = td->io_ops->data;
55 + struct libraio_data *ld = td->io_ops_data;
56 struct libraio_engine_data *engine_data = io_u->engine_data;
58 return raio_cancel(ld->raio_ctx, &engine_data->iocb, ld->raio_events);
63 - if (td_trim(td) && f->filetype != FIO_TYPE_BD) {
64 + if (td_trim(td) && f->filetype != FIO_TYPE_BLOCK) {
65 log_err("libraio: trim only applies to block device\n");
72 - struct libraio_data *ld = td->io_ops->data;
73 + struct libraio_data *ld = td->io_ops_data;
75 dprint(FD_FILE, "fd open %s\n", f->file_name);
78 static int fio_libraio_open_file(struct thread_data *td, struct fio_file *f)
81 - struct libraio_data *ld = td->io_ops->data;
82 + struct libraio_data *ld = td->io_ops_data;
87 static int fio_libraio_close_file(struct thread_data *td, struct fio_file *f)
90 - struct libraio_data *ld = td->io_ops->data;
91 + struct libraio_data *ld = td->io_ops_data;
93 /* don't close the file until cleanup */
94 if (ld->force_close == 0) {
99 - td->io_ops->data = &dummy_ld;
100 + td->io_ops_data = &dummy_ld;
102 ret = fio_libraio_open(td, f);
108 - td->io_ops->data = ld;
109 + td->io_ops_data = ld;
111 f.file_name = td->o.filename;
112 ret = fio_libraio_open_file(td, &f);
115 static void fio_libraio_cleanup(struct thread_data *td)
117 - struct libraio_data *ld = td->io_ops->data;
118 + struct libraio_data *ld = td->io_ops_data;
119 struct libraio_engine_data *engine_data;
124 free(ld->engine_datas);
126 - td->io_ops->data = NULL;
127 + td->io_ops_data = NULL;
131 --- accelio-1.6/examples/raio/usr/fio/Makefile.am.orig 2016-03-28 14:58:45.000000000 +0200
132 +++ accelio-1.6/examples/raio/usr/fio/Makefile.am 2016-04-10 21:54:08.050356893 +0200
134 # list of sources for the 'libraio_fio' shared library
\r
135 libraio_fio_la_SOURCES = libraio.c
\r
137 +libraio_fio_la_LDFLAGS = -module -avoid-version
138 libraio_fio_la_LIBADD = -lraio -lxio $(libxio_rdma_ldflags) -lrt -ldl -lpthread \
\r
139 -L$(top_builddir)/src/usr/ -L$(top_builddir)/examples/raio/
\r