From: Jason Dillaman Date: Tue, 7 Jul 2015 23:07:03 +0000 (-0400) Subject: tests: aio_write/aio_discard have been refactored X-Git-Tag: v10.0.1~52^2~36 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e0c9b881ef31cce34c3da1e9f756565af3b9e440;p=ceph.git tests: aio_write/aio_discard have been refactored Signed-off-by: Jason Dillaman --- diff --git a/src/test/librbd/test_internal.cc b/src/test/librbd/test_internal.cc index 19ed009fc94e..1bf8bce4074b 100644 --- a/src/test/librbd/test_internal.cc +++ b/src/test/librbd/test_internal.cc @@ -3,6 +3,7 @@ #include "test/librbd/test_fixture.h" #include "test/librbd/test_support.h" #include "librbd/AioCompletion.h" +#include "librbd/AioImageRequest.h" #include "librbd/ImageWatcher.h" #include "librbd/internal.h" #include "librbd/ObjectMap.h" @@ -254,7 +255,7 @@ TEST_F(TestInternal, AioWriteRequestsLock) { librbd::AioCompletion *c = librbd::aio_create_completion_internal(ctx, librbd::rbd_ctx_cb); c->get(); - aio_write(ictx, 0, buffer.size(), buffer.c_str(), c, 0); + librbd::AioImageWrite(*ictx, c, 0, buffer.size(), buffer.c_str(), 0).send(); bool is_owner; ASSERT_EQ(0, librbd::is_exclusive_lock_owner(ictx, &is_owner)); @@ -277,7 +278,7 @@ TEST_F(TestInternal, AioDiscardRequestsLock) { librbd::AioCompletion *c = librbd::aio_create_completion_internal(ctx, librbd::rbd_ctx_cb); c->get(); - aio_discard(ictx, 0, 256, c); + librbd::AioImageDiscard(*ictx, c, 0, 256).send(); bool is_owner; ASSERT_EQ(0, librbd::is_exclusive_lock_owner(ictx, &is_owner));