Fixes: http://tracker.ceph.com/issues/18078
added the following commands:
radosgw-admin zone placement add
radosgw-admin zone placement modify
radosgw-admin zone placement rm
radosgw-admin zone placement list
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
should decode the deprecated num_hb_out as vector<int> instead of uint32_t.
it's a regression introduced by 85f22ec
Signed-off-by: Kefu Chai <kchai@redhat.com>
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>
This commit add librados, librbd to the embedded ceph static library. This is needed to support daemons built with libcephd that want to run mon commands, create rbd volumes, snapshots etc.
Signed-off-by: Bassam Tabbara <bassam.tabbara@quantum.com>
Added supported for running MON and OSD daemon code almost
untouched directly from libcephd.
Also added two API functions for generating an FSID and secret
key that can be used to bootstrap a new cluster.
Signed-off-by: Bassam Tabbara <bassam.tabbara@quantum.com>
Compression and erasure coding plugins are now statically compiled
into libcephd. A new method is added to load them into the
respective registry.
The static libraries are only built when WITH_EMBEDDED is enabled
and existing plugins are unaffected.
Signed-off-by: Bassam Tabbara <bassam.tabbara@quantum.com>
libcephd is a library that contains ceph daemon code
that can be statically linked in other applications.
Added MergeStaticLibraries.cmake that can merge static libraries
to form a bigger one. This approach avoids the need to mess with
STATIC libraries all over the code base.
Signed-off-by: Bassam Tabbara <bassam.tabbara@quantum.com>
CID 1396232 (#1 of 1): Non-virtual destructor (VIRTUAL_DTOR)
1. nonvirtual_dtor: Class librbd::<unnamed>::SafeTimerSingleton has a destructor and a pointer to it is upcast to class SafeTimer which doesn't have a virtual destructor.
The SafeTimerSingleton is not polymorphic; no need for
a virtual dtor.
Signed-off-by: Sage Weil <sage@redhat.com>
The caller is free to destroy the aio vector contents
once aio_wait completes. This is exactly what
BlueFS::_fsync() does. Delay the num_running dec
(which is what aio_wait waits for) until after we've
examined the aios.
Fixes: http://tracker.ceph.com/issues/17824
Signed-off-by: Sage Weil <sage@redhat.com>
CID 1395137 (#1 of 1): Missing break in switch (MISSING_BREAK)
unterminated_case: The case for value ObjectStore::Transaction::OP_TRY_RENAME is not terminated by a 'break' statement.
Signed-off-by: Sage Weil <sage@redhat.com>