]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
bluestore: fix for FreeBSD iocb structure 27458/head
authorWillem Jan Withagen <wjw@digiware.nl>
Tue, 9 Apr 2019 09:57:56 +0000 (11:57 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Tue, 9 Apr 2019 10:49:09 +0000 (12:49 +0200)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/os/bluestore/KernelDevice.cc

index 8f7d9b56bee86eddf36ad6046bc793e02a7f395d..711d5e72d7ec11276bb7101da7bc5468b3cebcaf 100644 (file)
@@ -521,7 +521,11 @@ void KernelDevice::_aio_thread()
                devname.c_str(),
                path.c_str(),
                r,
-               aio[i]->iocb.aio_lio_opcode,
+#if defined(HAVE_POSIXAIO)
+                aio[i]->aio.aiocb.aio_lio_opcode,
+#else
+                aio[i]->iocb.aio_lio_opcode,
+#endif
                aio[i]->offset,
                aio[i]->length);
              ceph_abort_msg(