diff options
author | Mykola Golub <mgolub@suse.com> | 2019-08-12 15:42:51 +0200 |
---|---|---|
committer | Mykola Golub <mgolub@suse.com> | 2019-08-27 17:42:51 +0200 |
commit | 00b2c86f7c486fbd82e6ce27edbd90f866de88af (patch) | |
tree | 9ffcc31c4c2403e6eac00e7461a30082d4a276dc /src/test/librbd/image | |
parent | librados: add IoCtx::is_valid method to test if IoCtx was initialized (diff) | |
download | ceph-00b2c86f7c486fbd82e6ce27edbd90f866de88af.tar.xz ceph-00b2c86f7c486fbd82e6ce27edbd90f866de88af.zip |
librbd: behave more gracefully when data pool removed
allowing to open the image and do some maintenance operations,
and returning -ENODEV for ops that require data pool.
Fixes: https://tracker.ceph.com/issues/41206
Signed-off-by: Mykola Golub <mgolub@suse.com>
Diffstat (limited to 'src/test/librbd/image')
-rw-r--r-- | src/test/librbd/image/test_mock_RefreshRequest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/librbd/image/test_mock_RefreshRequest.cc b/src/test/librbd/image/test_mock_RefreshRequest.cc index 8274e04b108..0f89928818c 100644 --- a/src/test/librbd/image/test_mock_RefreshRequest.cc +++ b/src/test/librbd/image/test_mock_RefreshRequest.cc @@ -375,7 +375,7 @@ public: } void expect_init_layout(MockRefreshImageCtx &mock_image_ctx) { - EXPECT_CALL(mock_image_ctx, init_layout()); + EXPECT_CALL(mock_image_ctx, init_layout(_)); } void expect_test_features(MockRefreshImageCtx &mock_image_ctx) { |