]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-ggate: filter out ceph options from args 23020/head
authorKefu Chai <kchai@redhat.com>
Fri, 13 Jul 2018 09:25:41 +0000 (17:25 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 13 Jul 2018 13:06:32 +0000 (21:06 +0800)
commit0bf02e8fe5671dd847f332953732fa47f5888694
treeb2e759fb01904bfca607f8c3a9d1cc8919d15dcc
parent6147ed1bbd99b5a9b78ad0fa6064c416f61383d2
rbd-ggate: filter out ceph options from args

we can just filter out ceph options from command line args instead of
parsing config in env variables, conf files and argvs.

the config-parsing steps were modeled after the ones in rbd-nbd.cc, but
the whole purpose of reading configurations from env/conf-file is to get
the "rbd_default_pool" for setting cfg->poolname. apparently, this does
not apply to rbd-ggate, where global_init() will take care of all the
trivial work to populate the settings. moreover, `config` is not
read after being initialized in main.cc. so drop it.

Signed-off-by: Mykola Golub <mgolub@suse.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/tools/rbd_ggate/main.cc