]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/osd: do not pass ceph options to seastar
authorKefu Chai <kchai@redhat.com>
Thu, 14 Mar 2019 10:53:36 +0000 (18:53 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 20 Mar 2019 06:20:33 +0000 (14:20 +0800)
commitad5f2b9d45410f81ceb74eae547011c4bc970510
tree438012dacd5bd56b801b1febda482764b2f39cd0
parent9ac310c39e808084cacbccf71e5c4e7937e682ca
crimson/osd: do not pass ceph options to seastar

the program_option parser used by seastar::app_template does not allow
unrecognized options. but ceph options can be specfied by being passed
to ceph applications as command line options, for instance, we can
specify the "key" or "keyfile" when creating an objectstore using
"--mkfs", like:

  ceph-osd --mkfs --key <key>

in this change, all options known by seastar's app_template are
enumerated and stored into a separated vector. so it can be passed to
"app". and the unknown ones are passed to ceph functions.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/main.cc