test/librados_test_stub: added new application metadata APIs

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
Jason Dillaman 2017-07-18 12:10:35 -04:00
parent 25a1623413
commit 7324554e80

View File

@ -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<std::string> *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<std::string, std::string> *values) {
return -EOPNOTSUPP;
}
static int save_operation_result(int result, int *pval) {
if (pval != NULL) {
*pval = result;