]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: osd pool create sets pg_pool_t::stripe_width
authorLoic Dachary <loic@dachary.org>
Wed, 5 Feb 2014 19:40:46 +0000 (20:40 +0100)
committerLoic Dachary <loic@dachary.org>
Wed, 5 Feb 2014 19:40:46 +0000 (20:40 +0100)
commitdfc90cf3b95e519d1b8c7dc5f161bdfd953bafe1
tree4f7aa7a5b6f0e6bb37da2ba3a8f870264e19e279
parent33b8ad810e30e4fb45769a932d9c878f6c945226
mon: osd pool create sets pg_pool_t::stripe_width

It does nothing if the pool is replicated. Otherwise it uses
osd_pool_erasure_code_stripe_width as the desired stripe width and run
it by get_chunk_size() on the erasure code plugin to get the actual
stripe_width. It will always be >= 0 to the desired stripe_width, padded
to match the alignment constraints imposed by the erasure code plugin.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h