Commit Graph

26104 Commits

Author SHA1 Message Date
Andras Elso
10496a842f libcephfs: fix typos
Signed-off-by: Andras Elso <elso.andras@gmail.com>
2013-05-17 21:10:54 +02:00
Andras Elso
ee3d50e61e Client: get describe_layout by file handle/path
Signed-off-by: Andras Elso <elso.andras@gmail.com>
2013-05-17 21:10:54 +02:00
Sage Weil
69e2cbef6a mon: add 'compact' command
As in, 'ceph mon tell \* compact'

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Luis <joao.luis@inktank.com>
2013-05-17 09:17:18 -07:00
Josh Durgin
b238f3562c Merge pull request #296 from dalgaaf/wip-da-CID-1021213
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-05-17 08:35:10 -07:00
Danny Al-Gaaf
4ba70f8fb4 librbd/internal.cc: fix resource leak
Call release() on librados::AioCompletion to free storage before
leave the loop or call new again.

CID 1021213 (#1 of 1): Resource leak (RESOURCE_LEAK)
  leaked_storage: Variable "rados_completion" going out of scope leaks
  the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-17 13:54:09 +02:00
John Wilkins
7494e4eb6b doc: Omitted literal syntax from toc.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-16 23:10:54 -07:00
John Wilkins
381ad24d09 doc: Added fuse syntax to the fstab doc.
fixes: #3672

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-16 23:10:32 -07:00
Sage Weil
231a2aa875 Merge branch 'next' 2013-05-16 20:39:56 -07:00
Sage Weil
c80c6a032c sysvinit: fix enumeration of local daemons when specifying type only
- prepend $local to the $allconf list at the top
- remove $local special case for all case
- fix the type prefix checks to explicitly check for prefixes

Fugly bash, but works!

Backport: cuttlefish, bobtail
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2013-05-16 20:39:32 -07:00
Sage Weil
d8d7113c35 udev: install disk/by-partuuid rules
Wheezy's udev (175-7.2) has broken rules for the /dev/disk/by-partuuid/
symlinks that ceph-disk relies on.  Install parallel rules that work.  On
new udev, this is harmless; old older udev, this will make life better.

Fixes: #4865
Backport: cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-16 18:40:29 -07:00
Sage Weil
acf6b8f96f os/FileStore: fix replay guard error msgs (again)
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-16 16:12:11 -07:00
Samuel Just
9b9d322c20 test_filestore_idempotent_sequence: unmount prior to deleting store
FileStoreDiff umounts the stores in its destructor.

Also, DeterministicOpSequence handles deletes its passed
object store.

Fixes: #5076
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
2013-05-16 15:46:11 -07:00
Samuel Just
5a27e85cf1 Revert "test_filejournal.cc: cleanup memory in destructor"
The finish() method for Contexts calls delete this.

This reverts commit 36028916c4.

Fixes: #5075
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
2013-05-16 15:45:42 -07:00
Sage Weil
c49ba750a7 os/FileStore: print error code to log on replay guard failure
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-16 15:28:24 -07:00
John Wilkins
8fa3039e46 doc: Added index reference.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-16 13:59:49 -07:00
John Wilkins
74a73f2f9a doc: Added glossary references and index references.
fixes: #3321

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-16 13:59:29 -07:00
John Wilkins
5737d032bf doc: Added cluster map and CRUSH definitions.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-16 13:57:53 -07:00
John Wilkins
58a880bd14 doc: Fixing index references.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-16 13:57:23 -07:00
John Wilkins
46f5f585de doc: Added latency comment.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-16 13:56:06 -07:00
Sage Weil
604c83ff18 debian: make radosgw require matching version of librados2
...indirectly via ceph-common.  We get bad behavior when they diverge, I
think because of libcommon.la being linked both statically and dynamically.

Fixes: #4997
Backport: cuttlefish, bobtail
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Gary Lowell <gary.lowell@inktank.com>
2013-05-16 13:17:45 -07:00
Sage Weil
2df6e37641 Merge pull request #291 from dalgaaf/wip-da-CID-1019548
client/Client.cc: fix/silence "logically dead code" CID-Error

Even money that this satisfies the coverity gods...

Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-16 13:10:50 -07:00
Samuel Just
eaf3abf3f9 FileJournal: adjust write_pos prior to unlocking write_lock
In committed_thru, we use write_pos to reset the header.start value in cases
where seq is past the end of our journalq.  It is therefore important that the
journalq be updated atomically with write_pos (that is, under the write_lock).

The call to align_bl() is moved into do_write in order to ensure that write_pos
is adjusted correctly prior to write_bl().

Also, we adjust pos at the end of write_bl() such that pos \in [get_top(),
header.max_size) after write_bl().

Fixes: #5020
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-16 11:14:37 -07:00
Danny Al-Gaaf
541396faae client/Client.cc: fix/silence "logically dead code" CID-Error
Fix handling of 'safe' and the conditions after calling file_flush().

CID 1019548 (#1 of 1): Logically dead code (DEADCODE)
  dead_error_begin: Execution cannot reach this statement "flock.Unlock();"

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 19:49:06 +02:00
Sage Weil
64871e0931 mds: avoid assert after suicide()
Fixes: #5079
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-16 09:42:29 -07:00
Sage Weil
707ad738e6 Merge pull request #290 from dalgaaf/wip-da-SCA-cppcheck-v2
Reviewed-by: Sage Weil <sage@inktank.com>
rgw bits Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
2013-05-16 09:14:19 -07:00
Danny Al-Gaaf
49033b69e1 objclass/class_debug.cc: reduce scope of 'n' in cls_log()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:10 +02:00
Danny Al-Gaaf
297b573d93 tools/ceph-filestore-dump.cc: reduce scope of 'r' in export_files()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:10 +02:00
Danny Al-Gaaf
a634a13d46 test/system/systest_runnable.cc: reduce scope of 'ret' in join()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:10 +02:00
Danny Al-Gaaf
6147df4868 test/system/st_rados_list_objects.cc: reduce scope of 'ret' in run()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:10 +02:00
Danny Al-Gaaf
56f8c36474 test/system/st_rados_create_pool.cc_ reduce scope of 'ret' in run()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:10 +02:00
Danny Al-Gaaf
d226d9c36c test/system/rados_list_parallel.cc: reduce scope of 'ret'
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:09 +02:00
Danny Al-Gaaf
8f486f0bd1 test/librbd/test_librbd.cc: reduce scope of several variables
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:09 +02:00
Danny Al-Gaaf
95bf066b66 rgw/rgw_tools.cc: reduce scope of 'ret' in rgw_get_obj()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:09 +02:00
Danny Al-Gaaf
492553b3c6 rgw/rgw_common.cc: reduce scope of 'end' in two cases
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:09 +02:00
Danny Al-Gaaf
682f1076aa rgw/rgw_bucket.cc: reduce scope of 'max' in rgw_remove_bucket()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:09 +02:00
Danny Al-Gaaf
9d6e086605 rgw/rgw_admin.cc: reduce scope of 'ret'
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:09 +02:00
Danny Al-Gaaf
a3eeb9f8d4 rgw/rgw_acl_s3.cc: remove local variable 'ret' from create_from_headers()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:09 +02:00
Danny Al-Gaaf
b9fe22b33c rbd_fuse/rbd-fuse.c: reduce scope of some variables in open_rbd_image()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:09 +02:00
Danny Al-Gaaf
393de3257f osdc/Objecter.cc: reduce scope of skipped_map
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:16:43 +02:00
Danny Al-Gaaf
84ce4e9b4e os/chain_xattr.cc: reduce scope of local variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:16:37 +02:00
Danny Al-Gaaf
829fdd4139 src/os/LFNIndex.cc: reduce scope of suffix_len
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:16:33 +02:00
Danny Al-Gaaf
8254072b91 os/HashIndex.cc: reduce scope of a local variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:16:24 +02:00
Danny Al-Gaaf
ea7d8a4df8 os/FileStore.cc: reduce scope of a local variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:16:21 +02:00
Danny Al-Gaaf
2c60bc1ea6 src/os/FlatIndex.cc: reduce scope of suffix_len
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:16:07 +02:00
Danny Al-Gaaf
442752828a src/os/DBObjectMap.cc: reduce scope of some variables
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:16:03 +02:00
Danny Al-Gaaf
14871d0566 mount/mount.ceph.c: reduce scope of 'skip' in parse_options()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:15:51 +02:00
Danny Al-Gaaf
eb808cff39 src/mds/flock.cc: reduce scope of old_lock_to_end in two cases
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:15:47 +02:00
Danny Al-Gaaf
ce84a226d3 mds/Locker.cc: reduce scope of forced_change_max
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:15:40 +02:00
Danny Al-Gaaf
e7d47827f0 src/crush/mapper.c: reduce scope of some local variables
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:15:13 +02:00
Danny Al-Gaaf
e0f1084580 auth/Crypto.cc: reduce scope of local variable in_buf
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:11:08 +02:00