Commit Graph

29345 Commits

Author SHA1 Message Date
Josh Durgin
9af9c50cf1 Merge pull request #737 from xarses/6127
Add Redhat init script option
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-10-17 17:27:34 -07:00
Andrew Woodward
533626c7e0 Add Redhat init script option
Resolves: 6127
Signed-off-by: Andrew Woodward <awoodward@mirantis.com>
2013-10-17 17:23:04 -07:00
Sage Weil
93f1befdd7 Merge pull request #738 from ceph/wip-cache-crc
fix cached crc, bug #6583

Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-10-17 16:52:29 -07:00
Sage Weil
3cfe9f602b common/buffer: invalidate crc on zero, copy_in
This does not capture users who

 - calc a crc
 - use c_str() to modify the buffer content
 - (re)calc a crc

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-17 16:47:29 -07:00
Sage Weil
8ec3aed516 common/buffer: fix crc_map types
Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-17 16:46:10 -07:00
Sage Weil
394ec17540 common/buffer: drop unused fields
Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-17 16:36:20 -07:00
Sage Weil
1f291f5c89 qa/workunits/rest/test.py: fix mds {add,remove}_data_pool test
Arg name changed from poolid to pool in e2602c54.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-17 14:38:37 -07:00
Sage Weil
11fc80df13 doc/release-notes: link ot the changelog
Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-17 13:25:59 -07:00
Sage Weil
eb0a3b7e94 doc/release-notes: v0.61.9
Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-17 13:15:23 -07:00
Sage Weil
d3f0c0b2a6 Makefile: fix /sbin vs /usr/sbin behavior
Instead of telling configure to put things in /sbin, explicitly put the
two important items (mkcephfs and mount.fuse.ceph) in /sbin via an
automake rule.  This unbreaks FreeBSD 9.1 and probably others.

Based on patches originally from Alan Somers <asomers@gmail.com>, modified
for the current Makefile structure and applied to the specfile too.

Fixes: #6456
Signed-off-by: Sage Weil <sage@inktank.com>
Tested-by: Alan Somers <asomers@gmail.com>
2013-10-17 12:06:49 -07:00
Samuel Just
15ec5332ba OSD: check for splitting when processing recover/backfill reservations
Fixes: 6565
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-10-17 09:58:42 -07:00
Gregory Farnum
ff8e6a763a Merge pull request #691 from ceph/wip-dirfrag
Reviewed-by: Greg Farnum <greg@inktank.com>
Partly-Reviewed-by: Sage Weil <sage@inktank.com>
2013-10-17 08:35:38 -07:00
Sage Weil
e1e6408403 Merge remote-tracking branch 'gh/next' 2013-10-16 21:04:01 -07:00
Sage Weil
5c280a242b .gitignore: ceph-kvstore-tool
Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-16 14:23:13 -07:00
Sage Weil
5c476277a6 Merge remote-tracking branch 'gh/next' 2013-10-16 14:13:03 -07:00
Sage Weil
14e91bf124 debian, specfile: fix ceph-kvstore-tool packaging
See da69fa09c8

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-16 13:59:13 -07:00
Sage Weil
d1547d2223 Merge pull request #732 from ceph/wip-kvstore-tool
tools: ceph-kvstore-tool: Access & manipulate leveldb store using the KeyValueDB interface

Reviewed-by: Sage Weil <sage@inktank.com>
2013-10-16 13:35:07 -07:00
Joao Eduardo Luis
fd6e2b8618 ceph-kvstore-tool: copy one leveldb store to some other place
Iterates over the provided source store's keys and copies them to the
provided destination store.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-10-16 21:25:06 +01:00
Joao Eduardo Luis
85914b27e6 ceph-kvstore-tool: calc store crc
Reuse 'list()' function to traverse the store and calc not only version's
crcs, but also calc the store's crc.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-10-16 21:25:06 +01:00
Sage Weil
a6a3f50dce Merge pull request #655 from ceph/wip-cache-crc
buffer: cache crc values in buffer::raw

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-10-16 12:54:41 -07:00
Joao Eduardo Luis
da69fa09c8 tools: move 'test_store_tool' to 'tools/ceph-kvstore-tool'
ceph-kvstore-tool allows for lower-level access to leveldb stores.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-10-16 20:49:49 +01:00
Gregory Farnum
9fdf42a7fc Merge pull request #709 from ceph/wip-filerecover
This patch prevents us from inadvertently reducing sparse file sizes during recovery.
We also reduce some code duplication by using eval() directly in do_file_recover()
instead of reproducing the parts we care about.

Reviewed-by: Greg Farnum <greg@inktank.com>
2013-10-16 11:13:35 -07:00
Sage Weil
eafdc92fc9 common/buffer: behave when cached crc stats don't start at 0
In particular, this helps when we set CEPH_BUFFER_TRACK=true

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-16 10:58:31 -07:00
Josh Durgin
81c8ce2cee Merge pull request #724 from ceph/wip-4047
cls_rbd: do not make noise in osd log on rbd removal

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-10-16 09:56:35 -07:00
Yehuda Sadeh
c5cdf4ec60 crc32c: expand unit test
Verify crc on a buffer range, and on a NULL buffer (with various
sizes).

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-10-16 09:29:39 -07:00
Yehuda Sadeh
0620eead3d sctp_crc32c: fix crc calculation in the NULL buffer case
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-10-16 09:28:14 -07:00
Yehuda Sadeh
b96ee5ccf5 crc32c: add a special case crc32c NULL buffer handling
Adding a special case crc32c NULL buffer handling for the intel assembly
code.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-10-16 09:28:14 -07:00
Sage Weil
d9e30775c0 common/buffer: pass NULL buffer instead of a zero-filled one
This is about 2x faster on my box using the sctp code.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-16 09:28:14 -07:00
Sage Weil
9626aaf43b common/crc32c: document interface
Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-16 09:28:14 -07:00
Sage Weil
36e18ae997 common/crc32c_intel_baseline: accept null data buffer
Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-16 09:28:14 -07:00
Sage Weil
c545fc2f4c common/sctp_crc32: accept NULL buffer pointer
If we get NULL we behave as if it were a zero-filled buffer.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-16 09:28:14 -07:00
Sage Weil
a3e9344103 common/buffer: explicitly init zbuf to zeros
This might not be necessary?

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-16 09:28:14 -07:00
Sage Weil
88ae8f6805 common/buffer: add crc caching performance test
On my old box:
 - matching cached values is a big win (free), obviously
 - the adjustment is the same speed as redoing the calculation.  this
   is probably because the data is already in L1/L2 cache; we still
   save memory bandwidth.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-16 09:28:14 -07:00
Sage Weil
6464516d9c common/buffer: instrument utilization of cached crcs
This is similar to the alloc tracking, but I've added a method to let
you enable it easily (in this case, from the unit test).

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-16 09:28:13 -07:00
Sage Weil
0c23a5624a common/buffer: cache crcs in buffer::raw
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-10-16 09:28:13 -07:00
Sage Weil
87577753f4 include: add Spinlock
Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-16 09:28:13 -07:00
Sage Weil
72ce2efab9 cls_rbd: do not make noise in osd log on rbd removal
ubuntu@burnupi06:~$ tail -f /var/log/ceph/ceph-osd.1.log
2013-02-07 17:00:30.565749 7fdb09e6b700 0 <cls> cls/rbd/cls_rbd.cc:1615: error reading id for name 'sds': -2
2013-02-07 17:00:30.566301 7fdb0a66c700 0 <cls> cls/rbd/cls_rbd.cc:1521: error reading name to id mapping: -2
2013-02-07 17:03:54.085700 7fdb0a66c700 0 <cls> cls/rbd/cls_rbd.cc:1615: error reading id for name 'sdfsd': -2
2013-02-07 17:03:54.086143 7fdb09e6b700 0 <cls> cls/rbd/cls_rbd.cc:1521: error reading name to id mapping: -2

Fixes: #4047
Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-15 17:55:32 -07:00
athanatos
a49d66895d Merge pull request #728 from ceph/wip-6059
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
2013-10-15 17:15:16 -07:00
Josh Durgin
64fa5cbe87 Merge pull request #729 from ceph/wip-5716
rgw: gracefully handle bad root pool names

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-10-15 17:09:10 -07:00
Sage Weil
e550e3db5e test_ceph_argparse: fix typo
Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-15 16:50:05 -07:00
Sage Weil
dbd6d979cf test_ceph_argparse: fix mds {add,remove}_data_pool tests
Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-15 16:48:53 -07:00
Sage Weil
5838c0901a common: fix non-daemon init
In commit 4f403c26dc we broke the general
non-daemon case.

Also make a note in the release notes.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-10-15 16:32:32 -07:00
Sage Weil
1d4f501a01 test/filestore/run_seed_to.sh: avoid obsolete --filestore-xattr-use-omap
This option no longer exists.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-15 16:11:54 -07:00
Greg Farnum
982511e968 MonCommands: note that pg dump options don't work in plaintext
Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-10-15 16:10:28 -07:00
Yehuda Sadeh
c7acc2aee2 rgw: gracefully handle bad root pool names
Fixes: #5716
When invalid root pools specified (don't start with a period) we return
with an error instead of asserting.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-10-15 16:05:14 -07:00
Sage Weil
488678f31a ceph_test_rados: fix snap remove vs rollback fix
In commit 55d279b985 we tried to fix a race
between rollback and snap removal, but got the logic wrong: we need to
prevent *snap removal* on in-use snaps, not prevent multiple rollbacks on
the same snap.

Fixes: #6254 (again)
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-10-15 15:50:16 -07:00
Sage Weil
2701231244 os/LevelDBStore: handle deletion race when checking store size
This fixes the fix in 64774e5792 which mixed
up the return value and errno.

Fixes: #6550
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-10-15 15:39:04 -07:00
Sage Weil
92ea0d19bb test/librados/cmd: fix compile error
From commit f0805cb61f.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-15 15:32:07 -07:00
Samuel Just
c69e76cbdd ReplicatedPG: remove the other backfill related flushes
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-10-15 15:19:10 -07:00
Samuel Just
3469dd896f RadosModel: send racing read on write
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-10-15 15:19:09 -07:00