It is K+M ( data chunks + coding chunks ) as returned by the
get_chunk_count() method of the erasure code plugin.
http://tracker.ceph.com/issues/7277 refs #7277
Reviewed-By: Christophe Courtaut <christophe.courtaut@gmail.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
case pg_pool_t::TYPE_REPLICATED:
*size = g_conf->osd_pool_default_size;
break;
+ case pg_pool_t::TYPE_ERASURE:
+ {
+ ErasureCodeInterfaceRef erasure_code;
+ err = get_erasure_code(properties, &erasure_code, ss);
+ if (err == 0)
+ *size = erasure_code->get_chunk_count();
+ }
+ break;
default:
ss << "prepare_pool_size: " << pool_type << " is not a known pool type";
err = -EINVAL;