Generic plugin loader. Based on the ErasureCodePlugin.
Signed-off-by: Sage Weil <sage@redhat.com>
Conflicts:
src/common/Makefile.am
src/common/ceph_context.cc
src/common/ceph_context.h
missing files
Configure fails with autoconf 2.63 on Centos 6.6 with:
./configure: line 34026: syntax error near unexpected token `newline'
./configure: line 34026: ` yes:no:'
Signed-off-by: Igor Podoski <igor.podoski@ts.fujitsu.com>
A recent porting effort disabled support for backtrace creation. It
also didn't initialize all variables, which would lead to a crash when
deleting a backtrace instance.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
We already skip the pair where key == after in both LevelDBWholeSpaceIteratorImpl::upper_bound
and RocksDBWholeSpaceIteratorImpl::upper_bound.
Fixes: #13922
Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
Prior commit changes rados{striper}_getxattrs_next to be able to return
NULL in the 'val' param. Handle that.
Fixes: #13944
Signed-off-by: Dan Mick <dan.mick@redhat.com>
If an xattr is 0 length, don't try to malloc a buffer for the value;
leave it NULL. (Linux doesn't promise malloc(0) returns a pointer,
and other implementations, like AIX, definitely return NULL.)
Usage changes are in following commits.
Fixes: #13944
Signed-off-by: Dan Mick <dan.mick@redhat.com>
When we create an osd, mark the type of the backend in the
osd_data dir in the 'type' file. On startup, if this file is
present, us this to decide which ObjectStore to instantiate. If
it is not present, use the osd_objectstore option as before.
Signed-off-by: Sage Weil <sage@redhat.com>
Currently the option name and invocation assume that the block device
is a journal (and FileStore journal, managed by FileJournal). Rework
the interface so that we can probe any block device and other ObjectStore
implementations will have a chance to identify the device (and return the
osd fsid).
Switch to a static method while we are at it so we avoid instantiating
each backend.
Note that only FileStore is probed at the moment; that will change soon!
Signed-off-by: Sage Weil <sage@redhat.com>
Initial allocation size is derived from last log message from the same line of code.
Fixed bug in test.
Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
When the stashed-layout handling stuff was added,
the guessing part got lost from the path where
we only had a single object. Broke test_data_scan.
Signed-off-by: John Spray <john.spray@redhat.com>
This is what autotools does with AC_FUNC_STRERROR_R bit. It takes us
from
$ monmaptool --print nonexistant
monmaptool: monmap file nonexistant
monmaptool: couldn't open nonexistant: (2)
to
$ monmaptool --print nonexistant
monmaptool: monmap file nonexistant
monmaptool: couldn't open nonexistant: (2) No such file or directory
on cmake - otherwise we end up using GNU-specific version as if it was
the POSIX version.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
The INSTALL file has obsolete and misleading instructions to compile
from sources (-pg actually fails at link time). Replace with links to
the online installation and build from source documentations.
Signed-off-by: Loic Dachary <loic@dachary.org>