.set_default(false)
.set_description("whether to block writes to the cache before the aio_write call completes"),
- Option("rbd_shared_cache_enabled", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
+ Option("rbd_parent_cache_enabled", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
.set_default(false)
.set_description("whether to enable rbd shared ro cache"),
ASSIGN_OPTION(skip_partial_discard, bool);
ASSIGN_OPTION(discard_granularity_bytes, uint64_t);
ASSIGN_OPTION(blkin_trace_all, bool);
- ASSIGN_OPTION(shared_cache_enabled, bool);
+ ASSIGN_OPTION(parent_cache_enabled, bool);
#undef ASSIGN_OPTION
uint64_t mtime_update_interval;
uint64_t atime_update_interval;
- bool shared_cache_enabled;
+ bool parent_cache_enabled;
std::string shared_cache_path;
LibrbdAdminSocketHook *asok_hook;
if (!m_image_ctx->cache || m_image_ctx->child != nullptr) {
// enable Shared Read-only cache for parent image
- if (m_image_ctx->child != nullptr && m_image_ctx->shared_cache_enabled ) {
+ if (m_image_ctx->child != nullptr && m_image_ctx->parent_cache_enabled ) {
ldout(cct, 10) << this << " " << "setting up parent cache"<< dendl;
auto sro_cache = cache::SharedReadOnlyObjectDispatch<I>::create(m_image_ctx);
sro_cache->init();