Commit Graph

24313 Commits

Author SHA1 Message Date
Gary Lowell
b65ca564b6 ceph-test.install: Add libcephfs-test.jar to package.
Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
2013-02-27 18:25:09 -08:00
Sage Weil
f5cfd9af3c Merge branch 'wip-4281'
Reviewed-by: Sage Weil <sage@inktank.com>
2013-02-27 16:10:35 -08:00
John Wilkins
be3581ecff doc: Consolidated Ubuntu and Ubuntu 12.10 requirements.
fixes: #4288

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-27 16:03:31 -08:00
Joao Eduardo Luis
fac4959d1a mon: PaxosServices: don't ignore get_version(ver,bl) return value
get_version(version_t,bufferlist) can only return one of two values:
  -ENOENT iff the version doesn't exist
  zero iff it was successful

Any other value is incorrect.

Fixes: #4281

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-02-27 23:54:21 +00:00
John Wilkins
ded84b1b4d doc: Added dependencies for ubuntu 12.10.
fixes: #4288

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-27 15:53:51 -08:00
Sage Weil
cfcaceac44 debian: require cryptsetup-bin
This is needed for ceph-disk-prepare's dmcrypt support.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-27 15:43:57 -08:00
Sage Weil
5e278b852d vstart.sh: give mon. key mon = 'allow *' caps
This is needed for ceph-create-keys to do its thing.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-27 14:41:22 -08:00
John Wilkins
202ae8e7fd doc: fixed link and form edit.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-27 13:27:51 -08:00
John Wilkins
783555f7a3 doc: Added auth entry to index.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-27 13:27:21 -08:00
John Wilkins
7f7b2e7481 doc: Removed auth entries from general. Part of an auth-specific section now.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-27 13:26:59 -08:00
John Wilkins
712fca64e9 doc: Added comment to enable message. Added link to Auth Config Reference.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-27 13:26:19 -08:00
John Wilkins
c0ed9011dd doc: Added Auth Config Reference as standalone config reference.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-27 13:25:16 -08:00
Sage Weil
f62c5ab8e8 osd: allow log trimming during recovery
We rely on min_last_complete_ondisk being accurate; as long as we have logs
from that point, the current replicas will be able to safely recovery via
their logs.  Bump the target size, just as we do with degraded.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-02-27 11:21:11 -08:00
Sage Weil
c980b76353 ceph-fuse: add ceph options for all current fuse options
This will make it easier to disable these for end users, and for platforms
with old libfuse versions that don't support them.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-27 11:04:53 -08:00
Sage Weil
bf2cad1af9 Merge pull request #81 from dalgaaf/wip-da-sca-style-1
Fix some smaller style issues

Reviewed-by: Sage Weil <sage@inktank.com>
2013-02-27 10:54:01 -08:00
Joao Eduardo Luis
cf0d4f8618 mon: MonitorDBStore: return -ENOENT on get() if key doesn't exist
And adjust version_t get(string,string) so that, in case of -ENOENT, it
returns 0 (when a key doesn't exist, assumes its value is zero), and make
sure it asserts in all other negative return values.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-02-27 18:50:16 +00:00
Danny Al-Gaaf
1a581d0d5a kv_flat_btree_async.cc: remove unused variables
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 19:36:25 +01:00
Danny Al-Gaaf
b6884e8e8c kv_flat_btree_async.cc: remove some unreachable break statements
Remove unreachable break statements after return calls in a switch.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 19:32:23 +01:00
Danny Al-Gaaf
ebdf67f372 key_value_store/cls_kvs.cc: remove unused variable dupmap
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 19:18:05 +01:00
Danny Al-Gaaf
ca71457bf0 bloom_filter.hpp: check for self assignment
Check for self assignment in operator= to avoid problems with
dynamic memory (cppcheck).

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 19:14:03 +01:00
Danny Al-Gaaf
8d35a660e4 crush/builder.c: reduce scope of oldsize in crush_add_rule()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 18:53:28 +01:00
Sage Weil
d9d075e976 debian: let dpkg calculate the shlibs dep for leveldb (if any)
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-27 09:45:02 -08:00
Danny Al-Gaaf
afa811caa8 CrushCompiler.cc: remove duplicate if/else branches
Fix duplicate content of a if/else branch. Remove the
complete if/else around the content.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 18:27:56 +01:00
Danny Al-Gaaf
9a40ab3afe common/secret.c: reduce the scope of some variables
Reduce the scope of error_buf to the place where it's used.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 18:22:24 +01:00
Danny Al-Gaaf
4b242f9a49 pick_address.cc: pass const string by refrence
Pass 'const string networks' by reference to find_ip_in_subnet_list().

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 18:01:07 +01:00
Danny Al-Gaaf
7b7e9124fd obj_bencher.cc: use static_cast instead of C-Style cast
Use static_cast<T>() instead of C-Style cast.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 18:00:20 +01:00
Danny Al-Gaaf
4ac5edd2d8 config.cc: remove unused variable 'val' from parse_injectargs()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 17:53:14 +01:00
Danny Al-Gaaf
7aab4808ff code_environment.cc: move variable ret in get_process_name()
Move 'ret' in get_process_name() to the correct block to suppress
warning about unused variable in cppcheck.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 17:50:45 +01:00
Danny Al-Gaaf
de3f80cd24 ceph_context.cc: remove unused variable 'args' from do_command
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 17:49:59 +01:00
Sage Weil
0449c3ae69 Merge pull request #79 from dalgaaf/wip-da-leveldb
Some fixes related to switch to system leveldb

Reviewed-by: Sage Weil <sage@inktank.com>
2013-02-27 08:43:10 -08:00
Sage Weil
babb32996e Merge pull request #80 from dalgaaf/wip-da-4261
ceph_argparse.cc: accept also 0/1 for boolean injectargs

Reviewed-by: Sage Weil <sage@inktank.com>
2013-02-27 08:36:13 -08:00
Danny Al-Gaaf
cd4dc834bf cls_crypto.cc: remove some unused variables
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 16:54:35 +01:00
Danny Al-Gaaf
924040bacf cls_acl.cc: remove unused variables
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 16:51:56 +01:00
Danny Al-Gaaf
b20d024841 common/armor.c: reduce scope of some variables
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 16:48:55 +01:00
Danny Al-Gaaf
289d81645f ceph_argparse.cc: accept also 0/1 for boolean injectargs
Accept also 0 (as false) and 1 (true) as arguments for
boolean option on injectargs.

Fixes: #4261

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 16:40:37 +01:00
Danny Al-Gaaf
a7e797d761 TextTable: pass const string by refrence to define_column()
Pass 'const string heading' by reference to define_column().

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 16:14:22 +01:00
Danny Al-Gaaf
90c407ee1c CephBroker.h: use static_cast instead of C-Style cast
Use static_cast<T>() instead of C-Style cast.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 16:04:57 +01:00
Danny Al-Gaaf
85e36c156c SyntheticClient.cc: use static_cast instead of C-Style cast
Use static_cast<T>() instead of C-Style cast.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 15:53:52 +01:00
Danny Al-Gaaf
f42a63ba1b debian/control: fix Depends
Remove request for libleveldb1 version > 1.2. Every libleveldb1 package
should work, otherwise the SO name/version of the library should change.

Fixes: #3945

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 15:39:18 +01:00
Danny Al-Gaaf
43161532d6 debian/control: add libleveldb-dev to Build-Depends:
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 14:47:49 +01:00
Danny Al-Gaaf
2becb35aef README: add leveldb-dev to package list needed for build
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 14:47:29 +01:00
Danny Al-Gaaf
f811f72795 ceph.spec.in: fix leveldb handling
There is no need to add leveldb as 'Requires:'. The RPM build system
will find this dependency by itself.

Add leveldb-devel to BuildRequires: since this is what the package
really needs to build ceph correctly with libleveldb1.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 14:39:13 +01:00
Danny Al-Gaaf
37d148ba91 configure.ac: check for libsnappy
Since libsnappy is needed by leveldb, check if the lib is installed
before check for leveldb.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 14:27:48 +01:00
Danny Al-Gaaf
83dbaf656b add src/leveldb to .gitignore
Add src/leveldb to .gitignore in master, since the directory
may get checked out by older branches. Ignore it since it's not
needed in master.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 14:26:16 +01:00
Danny Al-Gaaf
8162215d7e remove leveldb from master branch
Since we now build against system leveldb and no longer
against a git submodule, drop the submodule from git master.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-27 14:22:48 +01:00
Gary Lowell
ea546aef0c Build: Change build to always use system leveldb
Dynamically link to the leveldb installed on the system rather than
statically linking ceph copy.  Remove the --with-system-leveldb config
option, and add a requirement for leveldb libraries for rpm and debian
packages.  Bug 3945.

Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
2013-02-26 20:07:49 -08:00
Gary Lowell
a34e7c6f6b ceph-test.install: remove cepkfs-test.jar
This was merged prematurely to mast.

Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
2013-02-26 18:28:34 -08:00
Sage Weil
75ce88fb69 doc: fix rst for watch/notify internals
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-26 17:45:33 -08:00
Samuel Just
c313423cfd OpRequest: rmw_flags may actually be 0
If the operation includes only an invalid method,
the flags will be 0.

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-02-26 17:36:32 -08:00
Sage Weil
d6b4a7be20 Merge branch 'next' 2013-02-26 17:29:48 -08:00