diff options
author | Sage Weil <sage@newdream.net> | 2020-06-15 17:27:03 +0200 |
---|---|---|
committer | Neha Ojha <nojha@redhat.com> | 2020-08-24 21:53:08 +0200 |
commit | dfd01d765304ed8783cef613930e65980d9aee23 (patch) | |
tree | 9a471df545c63f5447e2f9373117d9a052275d64 /src/test/librbd/managed_lock | |
parent | Merge PR #36394 into master (diff) | |
download | ceph-dfd01d765304ed8783cef613930e65980d9aee23.tar.xz ceph-dfd01d765304ed8783cef613930e65980d9aee23.zip |
blacklist -> blocklist
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Neha Ojha <nojha@redhat.com>
Diffstat (limited to 'src/test/librbd/managed_lock')
-rw-r--r-- | src/test/librbd/managed_lock/test_mock_AcquireRequest.cc | 12 | ||||
-rw-r--r-- | src/test/librbd/managed_lock/test_mock_BreakRequest.cc | 20 |
2 files changed, 16 insertions, 16 deletions
diff --git a/src/test/librbd/managed_lock/test_mock_AcquireRequest.cc b/src/test/librbd/managed_lock/test_mock_AcquireRequest.cc index 4edd448112d..f3e587c9234 100644 --- a/src/test/librbd/managed_lock/test_mock_AcquireRequest.cc +++ b/src/test/librbd/managed_lock/test_mock_AcquireRequest.cc @@ -31,14 +31,14 @@ struct BreakRequest<librbd::MockImageCtx> { static BreakRequest* create(librados::IoCtx& ioctx, AsioEngine& asio_engine, const std::string& oid, const Locker &locker, - bool exclusive, bool blacklist_locker, - uint32_t blacklist_expire_seconds, + bool exclusive, bool blocklist_locker, + uint32_t blocklist_expire_seconds, bool force_break_lock, Context *on_finish) { CephContext *cct = reinterpret_cast<CephContext *>(ioctx.cct()); - EXPECT_EQ(cct->_conf.get_val<bool>("rbd_blacklist_on_break_lock"), - blacklist_locker); - EXPECT_EQ(cct->_conf.get_val<uint64_t>("rbd_blacklist_expire_seconds"), - blacklist_expire_seconds); + EXPECT_EQ(cct->_conf.get_val<bool>("rbd_blocklist_on_break_lock"), + blocklist_locker); + EXPECT_EQ(cct->_conf.get_val<uint64_t>("rbd_blocklist_expire_seconds"), + blocklist_expire_seconds); EXPECT_FALSE(force_break_lock); ceph_assert(s_instance != nullptr); s_instance->on_finish = on_finish; diff --git a/src/test/librbd/managed_lock/test_mock_BreakRequest.cc b/src/test/librbd/managed_lock/test_mock_BreakRequest.cc index 4c810fab05e..78653368afa 100644 --- a/src/test/librbd/managed_lock/test_mock_BreakRequest.cc +++ b/src/test/librbd/managed_lock/test_mock_BreakRequest.cc @@ -110,10 +110,10 @@ public: } - void expect_blacklist_add(MockTestImageCtx &mock_image_ctx, int r) { + void expect_blocklist_add(MockTestImageCtx &mock_image_ctx, int r) { auto& mock_rados_client = librados::get_mock_rados_client( mock_image_ctx.rados_api); - EXPECT_CALL(mock_rados_client, mon_command(IsBlacklistCommand(), _, _, _)) + EXPECT_CALL(mock_rados_client, mon_command(IsBlocklistCommand(), _, _, _)) .WillOnce(Return(r)); } @@ -154,7 +154,7 @@ TEST_F(TestMockManagedLockBreakRequest, DeadLockOwner) { {entity_name_t::CLIENT(1), "auto 123", "1.2.3.4:0/0", 123}, 0); - expect_blacklist_add(mock_image_ctx, 0); + expect_blocklist_add(mock_image_ctx, 0); expect_wait_for_latest_osd_map(mock_image_ctx, 0); expect_break_lock(mock_image_ctx, 0); @@ -184,7 +184,7 @@ TEST_F(TestMockManagedLockBreakRequest, ForceBreak) { {entity_name_t::CLIENT(1), "auto 123", "1.2.3.4:0/0", 123}, 0); - expect_blacklist_add(mock_image_ctx, 0); + expect_blocklist_add(mock_image_ctx, 0); expect_wait_for_latest_osd_map(mock_image_ctx, 0); expect_break_lock(mock_image_ctx, 0); @@ -341,7 +341,7 @@ TEST_F(TestMockManagedLockBreakRequest, GetLockerError) { ASSERT_EQ(-EINVAL, ctx.wait()); } -TEST_F(TestMockManagedLockBreakRequest, BlacklistDisabled) { +TEST_F(TestMockManagedLockBreakRequest, BlocklistDisabled) { REQUIRE_FEATURE(RBD_FEATURE_EXCLUSIVE_LOCK); librbd::ImageCtx *ictx; @@ -369,7 +369,7 @@ TEST_F(TestMockManagedLockBreakRequest, BlacklistDisabled) { ASSERT_EQ(0, ctx.wait()); } -TEST_F(TestMockManagedLockBreakRequest, BlacklistSelf) { +TEST_F(TestMockManagedLockBreakRequest, BlocklistSelf) { REQUIRE_FEATURE(RBD_FEATURE_EXCLUSIVE_LOCK); librbd::ImageCtx *ictx; @@ -397,7 +397,7 @@ TEST_F(TestMockManagedLockBreakRequest, BlacklistSelf) { ASSERT_EQ(-EINVAL, ctx.wait()); } -TEST_F(TestMockManagedLockBreakRequest, BlacklistError) { +TEST_F(TestMockManagedLockBreakRequest, BlocklistError) { REQUIRE_FEATURE(RBD_FEATURE_EXCLUSIVE_LOCK); librbd::ImageCtx *ictx; @@ -414,7 +414,7 @@ TEST_F(TestMockManagedLockBreakRequest, BlacklistError) { {entity_name_t::CLIENT(1), "auto 123", "1.2.3.4:0/0", 123}, 0); - expect_blacklist_add(mock_image_ctx, -EINVAL); + expect_blocklist_add(mock_image_ctx, -EINVAL); C_SaferCond ctx; Locker locker{entity_name_t::CLIENT(1), "auto 123", "1.2.3.4:0/0", 123}; @@ -442,7 +442,7 @@ TEST_F(TestMockManagedLockBreakRequest, BreakLockMissing) { {entity_name_t::CLIENT(1), "auto 123", "1.2.3.4:0/0", 123}, 0); - expect_blacklist_add(mock_image_ctx, 0); + expect_blocklist_add(mock_image_ctx, 0); expect_wait_for_latest_osd_map(mock_image_ctx, 0); expect_break_lock(mock_image_ctx, -ENOENT); @@ -472,7 +472,7 @@ TEST_F(TestMockManagedLockBreakRequest, BreakLockError) { {entity_name_t::CLIENT(1), "auto 123", "1.2.3.4:0/0", 123}, 0); - expect_blacklist_add(mock_image_ctx, 0); + expect_blocklist_add(mock_image_ctx, 0); expect_wait_for_latest_osd_map(mock_image_ctx, 0); expect_break_lock(mock_image_ctx, -EINVAL); |