]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: config: let us obtain a diff between current and default config
authorJoao Eduardo Luis <joao.luis@inktank.com>
Sun, 24 Aug 2014 16:20:53 +0000 (17:20 +0100)
committerJoao Eduardo Luis <joao.luis@inktank.com>
Tue, 26 Aug 2014 22:31:37 +0000 (23:31 +0100)
commitef51160b4f54cfd101aa2ff4117588c0dac5a2c9
tree75ec4dc94090037687f091fedfbea4cd570b4f33
parent8d406001d9b84d9809d181077c61ad9181934752
common: config: let us obtain a diff between current and default config

It's mildly annoying when trying to figure out what has been changed on
a running system's config options and having to rely on whatever is set
on ceph.conf and the admin's memory of what has been injected.

With this we can simply ask the daemon for the diff between what would be
its default and what is its current config.

Current form will output extraneous information that was not directly
supplied by the user though, such as 'host' 'fsid' and 'daemonize', as
well as defaults we may rewrite ourselves (leveldb tunables on the monitor
for instance).  Nonetheless, it's way better than the alternative and
considering it should be used solely for debug purposes I think we can
get away with it.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/common/config.cc
src/common/config.h