]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: add key[=value] ... to osd pool create 578/head
authorLoic Dachary <loic@dachary.org>
Mon, 9 Sep 2013 11:23:42 +0000 (13:23 +0200)
committerLoic Dachary <loic@dachary.org>
Tue, 10 Sep 2013 11:53:57 +0000 (13:53 +0200)
commit454c116d38a005fc91c9d3e70258b4dac8a80547
treea3b8e60aad76a9e39ee7b7c261fbd62a7c8fd1d9
parent8c76f3a0f9cf100ea2c941dc2b61c470aa5033d7
mon: add key[=value] ... to osd pool create

With the introduction of the erasure code pool, arguments to be
interpreted depending on the pool type must be introduced.
For instance the erasure code pool loads a plugin at run time will
use easure-code-k=10 to split each object in 10.

The arguments are described as

  name=properties,type=CephString,n=N,req=false,goodchars=[A-Za-z0-9-_.=]

If key=value it is stored in the new properties data member of pg_pool_t
as properties[key] = value, otherwise the value is the empty string.

The pg_pool_t version is bumped to 10 and the encode/decode methods
modified to take the properties into account. The
generate_test_instances method creates a two entries map, one of which
is the empty string to cover the case when no value is specified.

http://tracker.ceph.com/issues/6113 refs #6113

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