global: separate first half of global_init into global_pre_init

The pre_init now captures enough to create the g_ceph_context and parse
and initialize the in-memory config.  However, we don't

 - fiddle with signal handlers
 - init lockdep
 - call config observers (which starts up logging)

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-conf: use global_pre_init to avoid starting logging

This avoids starting up logging, which is not appropriate when we are
examining the config state and not actually starting up the entity in
question.

Fixes: #7849
Signed-off-by: Sage Weil <sage@inktank.com>
.gitignore: add examples/librados files

Signed-off-by: Loic Dachary <loic@dachary.org>
mon: make 'ceph osd erasure-code-profile set ...' idempotent

Signed-off-by: Sage Weil <sage@inktank.com>
Merge pull request #1572 from ceph/wip-ec-profile-idempotent

mon: make 'ceph osd erasure-code-profile set ...' idempotent

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
Merge pull request #1570 from dachary/wip-gitignore

.gitignore: add examples/librados files

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Merge pull request #1567 from ceph/wip-7849

ceph-conf: don't create log files

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
java/test: ceph.file.layout xattr is still not there now

b8ea65694faf59f12f285a65dc21753dab20ba11 tried to fix this, but
missed a spot.

Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>