This config option is already used by the create image state
machine. This should address a broken test case when validating
pool vs self-managed snapshots.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
return r;
}
+ ConfigProxy config{cct->_conf};
+ api::Config<I>::apply_pool_overrides(io_ctx, &config);
+ if (!config.get_val<bool>("rbd_validate_pool")) {
+ return 0;
+ }
+
ThreadPool *thread_pool;
ContextWQ *op_work_queue;
ImageCtx::get_thread_pool_instance(cct, &thread_pool, &op_work_queue);