]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
embedded: Add RADOS classes to embedded cephd library 11764/head
authorBassam Tabbara <bassam.tabbara@quantum.com>
Sat, 5 Nov 2016 01:10:08 +0000 (18:10 -0700)
committerBassam Tabbara <bassam.tabbara@quantum.com>
Tue, 29 Nov 2016 07:48:02 +0000 (23:48 -0800)
commitd447a80815e5fe72ef96c2506d4f78e507204047
tree32918c625389257f769196720f6c65d356d64573
parent9e8519cdd6262976afe65a66fcfbcc62c937bd0e
embedded: Add RADOS classes to embedded cephd library

RADOS classes can now be statically compiled and added to
the embedded cephd library.

The RADOS ClassHandler now has an option to skip calling dlclose
just like PluginRegistry.

All RADOS classes where changed to use a CLS_INIT macro that
will either use __cls_init or classname_cls_init. this enables
the static compiling of all RADOS classes in a single library. Also
global method definitions where moved to inside cls_init.

Also added a few aconfig defines including WITH_EMBEDDED, WITH_CEPHFS,
WITH_RBD, and WITH_KVS. Note that WITH_RBD was not defined before
and the ceph-dencoder was broken when it was turned on.

Signed-off-by: Bassam Tabbara <bassam.tabbara@quantum.com>
28 files changed:
src/CMakeLists.txt
src/ceph_osd.cc
src/cls/CMakeLists.txt
src/cls/cephfs/cls_cephfs.cc
src/cls/hello/cls_hello.cc
src/cls/journal/cls_journal.cc
src/cls/lock/cls_lock.cc
src/cls/log/cls_log.cc
src/cls/lua/cls_lua.cc
src/cls/numops/cls_numops.cc
src/cls/rbd/cls_rbd.cc
src/cls/refcount/cls_refcount.cc
src/cls/replica_log/cls_replica_log.cc
src/cls/rgw/cls_rgw.cc
src/cls/statelog/cls_statelog.cc
src/cls/timeindex/cls_timeindex.cc
src/cls/user/cls_user.cc
src/cls/version/cls_version.cc
src/cls_acl.cc
src/cls_crypto.cc
src/include/config-h.in.cmake
src/key_value_store/CMakeLists.txt
src/key_value_store/cls_kvs.cc
src/libcephd/CMakeLists.txt
src/libcephd/libcephd.cc
src/objclass/objclass.h
src/osd/ClassHandler.cc
src/osd/ClassHandler.h