]> git.pld-linux.org Git - packages/accelio.git/blame - accelio-fio.patch
- updated to 1.7
[packages/accelio.git] / accelio-fio.patch
CommitLineData
08f63b58
JB
1--- accelio-1.6/examples/raio/usr/fio/libraio.c.orig 2016-03-28 14:58:45.000000000 +0200
2+++ accelio-1.6/examples/raio/usr/fio/libraio.c 2016-04-10 19:16:54.244086124 +0200
3@@ -130,7 +130,7 @@
4 unsigned int max, const struct timespec *t)
5 {
6 struct libraio_data *ld = td->io_ops->data;
7- unsigned actual_min = td->o.iodepth_batch_complete == 0 ? 0 : min;
8+ unsigned actual_min = td->o.iodepth_batch_complete_min == 0 ? 0 : min;
9 int r, events = 0;
10
11 do {
12--- accelio-1.6/examples/raio/usr/fio/Makefile.am.orig 2016-03-28 14:58:45.000000000 +0200
13+++ accelio-1.6/examples/raio/usr/fio/Makefile.am 2016-04-10 21:54:08.050356893 +0200
14@@ -30,6 +30,7 @@
15 # list of sources for the 'libraio_fio' shared library\r
16 libraio_fio_la_SOURCES = libraio.c\r
17 \r
18+libraio_fio_la_LDFLAGS = -module -avoid-version
19 libraio_fio_la_LIBADD = -lraio -lxio $(libxio_rdma_ldflags) -lrt -ldl -lpthread \\r
20 -L$(top_builddir)/src/usr/ -L$(top_builddir)/examples/raio/\r
21 \r
365e1a88
JB
22--- accelio-1.7/examples/raio/usr/fio/libraio.c.orig 2016-12-24 13:09:13.375548622 +0100
23+++ accelio-1.7/examples/raio/usr/fio/libraio.c 2016-12-25 00:04:40.251766246 +0100
24@@ -107,7 +107,7 @@
25
26 static struct io_u *fio_libraio_event(struct thread_data *td, int event)
27 {
28- struct libraio_data *ld = td->io_ops->data;
29+ struct libraio_data *ld = td->io_ops_data;
30 struct raio_event *ev;
31 struct io_u *io_u;
32
33@@ -129,7 +129,7 @@
34 static int fio_libraio_getevents(struct thread_data *td, unsigned int min,
35 unsigned int max, const struct timespec *t)
36 {
37- struct libraio_data *ld = td->io_ops->data;
38+ struct libraio_data *ld = td->io_ops_data;
39 unsigned actual_min = td->o.iodepth_batch_complete_min == 0 ? 0 : min;
40 int r, events = 0;
41
42@@ -152,7 +152,7 @@
43
44 static int fio_libraio_queue(struct thread_data *td, struct io_u *io_u)
45 {
46- struct libraio_data *ld = td->io_ops->data;
47+ struct libraio_data *ld = td->io_ops_data;
48 struct libraio_engine_data *engine_data = io_u->engine_data;
49
50 fio_ro_check(td, io_u);
51@@ -188,7 +188,7 @@
52
53 static int fio_libraio_commit(struct thread_data *td)
54 {
55- struct libraio_data *ld = td->io_ops->data;
56+ struct libraio_data *ld = td->io_ops_data;
57 struct raio_iocb **iocbs;
58 struct io_u **io_us;
59 int ret;
60@@ -221,7 +221,7 @@
61
62 static int fio_libraio_cancel(struct thread_data *td, struct io_u *io_u)
63 {
64- struct libraio_data *ld = td->io_ops->data;
65+ struct libraio_data *ld = td->io_ops_data;
66 struct libraio_engine_data *engine_data = io_u->engine_data;
67
68 return raio_cancel(ld->raio_ctx, &engine_data->iocb, ld->raio_events);
69@@ -357,7 +357,7 @@
70 char path[256];
71 char host[256];
72 uint32_t port;
73- struct libraio_data *ld = td->io_ops->data;
74+ struct libraio_data *ld = td->io_ops_data;
75
76 dprint(FD_FILE, "fd open %s\n", f->file_name);
77
78@@ -436,7 +436,7 @@
79 static int fio_libraio_open_file(struct thread_data *td, struct fio_file *f)
80 {
81 int ret;
82- struct libraio_data *ld = td->io_ops->data;
83+ struct libraio_data *ld = td->io_ops_data;
84
85 if (ld->fd != -1) {
86 f->fd = ld->fd;
87@@ -475,7 +475,7 @@
88 static int fio_libraio_close_file(struct thread_data *td, struct fio_file *f)
89 {
90 int ret;
91- struct libraio_data *ld = td->io_ops->data;
92+ struct libraio_data *ld = td->io_ops_data;
93
94 /* don't close the file until cleanup */
95 if (ld->force_close == 0) {
96@@ -512,7 +512,7 @@
97 return 0;
98 }
99
100- td->io_ops->data = &dummy_ld;
101+ td->io_ops_data = &dummy_ld;
102
103 ret = fio_libraio_open(td, f);
104 if (ret != 0) {
105@@ -570,7 +570,7 @@
106 ld->iocbs_nr = 0;
107 ld->fd = -1;
108
109- td->io_ops->data = ld;
110+ td->io_ops_data = ld;
111
112 f.file_name = td->o.filename;
113 ret = fio_libraio_open_file(td, &f);
114@@ -597,7 +597,7 @@
115
116 static void fio_libraio_cleanup(struct thread_data *td)
117 {
118- struct libraio_data *ld = td->io_ops->data;
119+ struct libraio_data *ld = td->io_ops_data;
120 struct libraio_engine_data *engine_data;
121 struct io_u *io_u;
122 int i;
123@@ -619,7 +619,7 @@
124 free(ld->io_us);
125 free(ld->engine_datas);
126 free(ld);
127- td->io_ops->data = NULL;
128+ td->io_ops_data = NULL;
129 }
130 }
131
This page took 0.067332 seconds and 4 git commands to generate.