]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush: display args on crushtool failure
authorLoic Dachary <loic@dachary.org>
Sat, 11 Jan 2014 10:19:51 +0000 (11:19 +0100)
committerLoic Dachary <loic@dachary.org>
Sun, 12 Jan 2014 16:48:32 +0000 (17:48 +0100)
commit5b95d183c811bd759e52618decee16caba96105a
treeb83433fdde86b6aa5ac91cbbb6e67808d55ce6f3
parent2765f81affb46fc47a396d3fd486010e9c1e4d65
crush: display args on crushtool failure

When the number of args provided to --build is not a multiple of 3,
display the arguments which do not comply.

For instance the --debug_crush 0 option is not consumed by global_init
in crushtool because, unlike most ceph tools, the arguments are not
passed to global_init. As a result --debug_crush 0 become part of the
arguments and triggers the failure.

   crushtool --debug_crush 0 --build --num_osds 320 node straw 4
   remaining args: [--debug_crush,0,node,straw,4]
   layers must be specified with 3-tuples of (name, buckettype, size)

Signed-off-by: Loic Dachary <loic@dachary.org>
src/tools/crushtool.cc