]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #23823 from dillaman/wip-namespace-osd-check
authorJason Dillaman <dillaman@redhat.com>
Thu, 20 Sep 2018 12:07:21 +0000 (08:07 -0400)
committerGitHub <noreply@github.com>
Thu, 20 Sep 2018 12:07:21 +0000 (08:07 -0400)
librbd: prevent use of namespaces on pre-nautilus OSDs

Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
1  2 
src/include/rados/librados.h
src/include/rados/librados.hpp
src/librados/RadosClient.cc
src/librados/RadosClient.h
src/librados/librados.cc
src/librbd/api/Namespace.cc
src/test/librados_test_stub/LibradosTestStub.cc
src/test/librados_test_stub/MockTestMemRadosClient.h
src/test/librados_test_stub/TestMemRadosClient.h

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 92ad65733e792053eac39d36dc33b7febe3c840a,c22845c1da8a83181fa9ddddebe680736cba7924..63050cb1ed2cdae32b867efb2d04d7641f284e4c
@@@ -68,9 -68,9 +73,10 @@@ public
    void default_to_dispatch() {
      using namespace ::testing;
  
 +    ON_CALL(*this, connect()).WillByDefault(Invoke(this, &MockTestMemRadosClient::do_connect));
      ON_CALL(*this, create_ioctx(_, _)).WillByDefault(Invoke(this, &MockTestMemRadosClient::do_create_ioctx));
      ON_CALL(*this, blacklist_add(_, _)).WillByDefault(Invoke(this, &MockTestMemRadosClient::do_blacklist_add));
+     ON_CALL(*this, get_min_compatible_osd(_)).WillByDefault(Invoke(this, &MockTestMemRadosClient::do_get_min_compatible_osd));
      ON_CALL(*this, get_min_compatible_client(_, _)).WillByDefault(Invoke(this, &MockTestMemRadosClient::do_get_min_compatible_client));
      ON_CALL(*this, service_daemon_register(_, _, _)).WillByDefault(Invoke(this, &MockTestMemRadosClient::do_service_daemon_register));
      ON_CALL(*this, service_daemon_update_status_r(_)).WillByDefault(Invoke(this, &MockTestMemRadosClient::do_service_daemon_update_status_r));