From 7324554e8093ac457e2541aec9052dab3f74b6d1 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Tue, 18 Jul 2017 12:10:35 -0400 Subject: [PATCH] test/librados_test_stub: added new application metadata APIs Signed-off-by: Jason Dillaman --- .../librados_test_stub/LibradosTestStub.cc | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/src/test/librados_test_stub/LibradosTestStub.cc b/src/test/librados_test_stub/LibradosTestStub.cc index 059c19114a6..07c6b50888c 100644 --- a/src/test/librados_test_stub/LibradosTestStub.cc +++ b/src/test/librados_test_stub/LibradosTestStub.cc @@ -689,6 +689,41 @@ int IoCtx::writesame(const std::string& oid, bufferlist& bl, size_t len, ctx->get_snap_context())); } +int IoCtx::application_enable(const std::string& app_name, bool force) { + return 0; +} + +int IoCtx::application_enable_async(const std::string& app_name, + bool force, PoolAsyncCompletion *c) { + return -EOPNOTSUPP; +} + +int IoCtx::application_list(std::set *app_names) { + return -EOPNOTSUPP; +} + +int IoCtx::application_metadata_get(const std::string& app_name, + const std::string &key, + std::string *value) { + return -EOPNOTSUPP; +} + +int IoCtx::application_metadata_set(const std::string& app_name, + const std::string &key, + const std::string& value) { + return -EOPNOTSUPP; +} + +int IoCtx::application_metadata_remove(const std::string& app_name, + const std::string &key) { + return -EOPNOTSUPP; +} + +int IoCtx::application_metadata_list(const std::string& app_name, + std::map *values) { + return -EOPNOTSUPP; +} + static int save_operation_result(int result, int *pval) { if (pval != NULL) { *pval = result;