]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
11 years agoMerge pull request #823 from ceph/port/detect-libresolv
Sage Weil [Sat, 9 Nov 2013 08:36:08 +0000 (00:36 -0800)]
Merge pull request #823 from ceph/port/detect-libresolv

autoconf: check for res_nquery explicitly

11 years agoMerge pull request #789 from ceph/wip-6683
Sage Weil [Sat, 9 Nov 2013 06:44:37 +0000 (22:44 -0800)]
Merge pull request #789 from ceph/wip-6683

mon: MonmapMonitor: support 'mon getmap [epoch]'

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #836 from ceph/port/unused-headers
Sage Weil [Sat, 9 Nov 2013 06:15:26 +0000 (22:15 -0800)]
Merge pull request #836 from ceph/port/unused-headers

trace: remove unused header

11 years agodoc/release-notes: fix dup
Sage Weil [Sat, 9 Nov 2013 05:24:03 +0000 (21:24 -0800)]
doc/release-notes: fix dup

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge branch 'master' of https://github.com/ceph/ceph
John Wilkins [Fri, 8 Nov 2013 18:23:23 +0000 (10:23 -0800)]
Merge branch 'master' of https://github.com/ceph/ceph

11 years agodoc: Updated Emperor reference to 0.72.
John Wilkins [Fri, 8 Nov 2013 18:22:44 +0000 (10:22 -0800)]
doc: Updated Emperor reference to 0.72.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Added Emperor upgrade.
John Wilkins [Fri, 8 Nov 2013 18:22:22 +0000 (10:22 -0800)]
doc: Added Emperor upgrade.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Added dumpling to the sequence.
John Wilkins [Fri, 8 Nov 2013 18:21:42 +0000 (10:21 -0800)]
doc: Added dumpling to the sequence.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agoMerge pull request #834 from ceph/port/stat
Sage Weil [Fri, 8 Nov 2013 08:26:17 +0000 (00:26 -0800)]
Merge pull request #834 from ceph/port/stat

client: use platform-specific stat time members

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #833 from ceph/wip-da-SCA-master
Sage Weil [Fri, 8 Nov 2013 08:23:47 +0000 (00:23 -0800)]
Merge pull request #833 from ceph/wip-da-SCA-master

Various fixes from SCA

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge branch 'next'
Gary Lowell [Fri, 8 Nov 2013 05:19:11 +0000 (05:19 +0000)]
Merge branch 'next'

11 years agotrace: remove unused header 836/head
Noah Watkins [Fri, 8 Nov 2013 00:42:54 +0000 (16:42 -0800)]
trace: remove unused header

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoclient: use platform-specific stat time members 834/head
Noah Watkins [Thu, 7 Nov 2013 23:38:58 +0000 (15:38 -0800)]
client: use platform-specific stat time members

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agomon/MDSMonitor.cc: remove some unused variables 833/head
Danny Al-Gaaf [Thu, 7 Nov 2013 22:33:21 +0000 (23:33 +0100)]
mon/MDSMonitor.cc: remove some unused variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agotest_seek_read.c: remove unused variable 'off64_t so'
Danny Al-Gaaf [Tue, 5 Nov 2013 21:01:42 +0000 (22:01 +0100)]
test_seek_read.c: remove unused variable 'off64_t so'

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agorgw: remove unused variables
Danny Al-Gaaf [Tue, 5 Nov 2013 21:01:04 +0000 (22:01 +0100)]
rgw: remove unused variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoosd/ReplicatedPG.cc: remove unused variable
Danny Al-Gaaf [Tue, 5 Nov 2013 21:00:33 +0000 (22:00 +0100)]
osd/ReplicatedPG.cc: remove unused variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoClient.cc: remove unused variable from Client::CommandHook::call()
Danny Al-Gaaf [Tue, 5 Nov 2013 20:59:20 +0000 (21:59 +0100)]
Client.cc: remove unused variable from Client::CommandHook::call()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agorgw/rgw_user.cc: use static_cast<>() instead of C-Style cast
Danny Al-Gaaf [Tue, 5 Nov 2013 20:33:33 +0000 (21:33 +0100)]
rgw/rgw_user.cc: use static_cast<>() instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agorgw/rgw_http_client.cc: use static_cast<>() instead of C-Style cast
Danny Al-Gaaf [Tue, 5 Nov 2013 20:32:42 +0000 (21:32 +0100)]
rgw/rgw_http_client.cc: use static_cast<>() instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoremove unused variable from Objecter::RequestStateHook::call()
Danny Al-Gaaf [Tue, 5 Nov 2013 18:51:48 +0000 (19:51 +0100)]
remove unused variable from Objecter::RequestStateHook::call()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoErasureCodeExample.h: prefer prefix ++operator for non-primitive types
Danny Al-Gaaf [Tue, 5 Nov 2013 18:51:14 +0000 (19:51 +0100)]
ErasureCodeExample.h: prefer prefix ++operator for non-primitive types

Prefer prefix ++operator for non-primitive types like iterators for
performance reasons. Prefix ++/-- operators avoid creating a temporary
copy.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoosd/osd_types.cc: use !p.tiers.empty() instead of size()
Danny Al-Gaaf [Tue, 5 Nov 2013 18:46:09 +0000 (19:46 +0100)]
osd/osd_types.cc: use !p.tiers.empty() instead of size()

Use empty() since it should be prefered as it has, following the
standard, a constant time complexity regardless of the containter
type. The same is not guaranteed for size().

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoErasureCodeJerasure.cc: prefer prefix ++operator for non-primitive types
Danny Al-Gaaf [Tue, 5 Nov 2013 18:42:29 +0000 (19:42 +0100)]
ErasureCodeJerasure.cc: prefer prefix ++operator for non-primitive types

Prefer prefix ++operator for non-primitive types like iterators for
performance reasons. Prefix ++/-- operators avoid creating a temporary
copy.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoosd/ErasureCodePlugin.cc: prefer prefix ++operator for non-primitive types
Danny Al-Gaaf [Tue, 5 Nov 2013 18:41:54 +0000 (19:41 +0100)]
osd/ErasureCodePlugin.cc: prefer prefix ++operator for non-primitive types

Prefer prefix ++operator for non-primitive types like iterators for
performance reasons. Prefix ++/-- operators avoid creating a temporary
copy.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoos/ObjectStore.cc: prefer prefix ++operator for non-primitive types
Danny Al-Gaaf [Tue, 5 Nov 2013 18:40:47 +0000 (19:40 +0100)]
os/ObjectStore.cc: prefer prefix ++operator for non-primitive types

Prefer prefix ++operator for non-primitive types like iterators for
performance reasons. Prefix ++/-- operators avoid creating a temporary
copy.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agomon/OSDMonitor.cc: prefer prefix ++operator for non-primitive types
Danny Al-Gaaf [Tue, 5 Nov 2013 18:39:59 +0000 (19:39 +0100)]
mon/OSDMonitor.cc: prefer prefix ++operator for non-primitive types

Prefer prefix ++operator for non-primitive types like iterators for
performance reasons. Prefix ++/-- operators avoid creating a temporary
copy.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agocommon/buffer.cc: prefer prefix ++operator for non-primitive types
Danny Al-Gaaf [Tue, 5 Nov 2013 15:57:09 +0000 (16:57 +0100)]
common/buffer.cc: prefer prefix ++operator for non-primitive types

Prefer prefix ++operator for non-primitive types like iterators for
performance reasons. Prefix ++/-- operators avoid creating a temporary
copy.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agov0.72 v0.72
Gary Lowell [Thu, 7 Nov 2013 20:27:35 +0000 (20:27 +0000)]
v0.72

11 years agorgw: deny writes to a secondary zone by non-system users
Yehuda Sadeh [Tue, 5 Nov 2013 22:54:20 +0000 (14:54 -0800)]
rgw: deny writes to a secondary zone by non-system users

Fixes: #6678
We don't want to allow regular users to write to secondary zones,
otherwise we'd end up with data inconsistencies.

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoMerge pull request #830 from ceph/port/gtest-death-tests
Sage Weil [Thu, 7 Nov 2013 13:47:33 +0000 (05:47 -0800)]
Merge pull request #830 from ceph/port/gtest-death-tests

test: Only build death tests on platforms that support them

11 years agodoc/release-notes: note crush update timeout on startup change
Sage Weil [Thu, 7 Nov 2013 04:02:09 +0000 (20:02 -0800)]
doc/release-notes: note crush update timeout on startup change

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoosdmaptool: fix cli tests
Sage Weil [Thu, 7 Nov 2013 03:59:56 +0000 (19:59 -0800)]
osdmaptool: fix cli tests

From c22c84a88c22688b6044ab37f65a3fe40dfe1983.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoCeph: Fix memory leak in chain_flistxattr()
Li Wang [Thu, 7 Nov 2013 02:44:30 +0000 (10:44 +0800)]
Ceph: Fix memory leak in chain_flistxattr()

Free allocated memory before return.

Signed-off-by: Li Wang <liwang@ubuntukylin.com>
Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoReplicatedPG: don't skip missing if sentries is empty on pgls
Samuel Just [Wed, 6 Nov 2013 22:33:03 +0000 (14:33 -0800)]
ReplicatedPG: don't skip missing if sentries is empty on pgls

Formerly, if sentries is empty, we skip missing.  In general,
we need to continue adding items from missing until we get
to next (returned from collection_list_partial) to avoid
missing any objects.

Fixes: #6633
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
11 years agoMerge pull request #827 from ceph/port/bootstrap
Sage Weil [Thu, 7 Nov 2013 01:32:11 +0000 (17:32 -0800)]
Merge pull request #827 from ceph/port/bootstrap

Port/bootstrap

11 years agoMerge pull request #831 from ceph/port/func-name
Sage Weil [Thu, 7 Nov 2013 01:31:28 +0000 (17:31 -0800)]
Merge pull request #831 from ceph/port/func-name

assert: choose function-var name on non-gnu

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #819 from xinglin/coverity-fixes
Sage Weil [Thu, 7 Nov 2013 01:14:40 +0000 (17:14 -0800)]
Merge pull request #819 from xinglin/coverity-fixes

Coverity fixes

Reviewed-by; Sage Weil <sage@inktank.com>

11 years agoassert: choose function-var name on non-gnu 831/head
Noah Watkins [Sun, 21 Jul 2013 01:41:38 +0000 (18:41 -0700)]
assert: choose function-var name on non-gnu

Selects __PRETTY_FUNCTION__ or __func__. Linux assumes GNU, and chooses
__PRETTY_FUNCTION__ if gcc/g++ versions are favorable.

This also includes a fix in ax_c_var_func.m4:

AC_TRY_COMPILE will wrap the test in main{}, and then GCC will complain
about nested functions. Just use the original main{} body.

diff --git a/m4/ax_c_var_func.m4 b/m4/ax_c_var_func.m4
index 0ad7d2b..8b57563 100644
--- a/m4/ax_c_var_func.m4
+++ b/m4/ax_c_var_func.m4
@@ -57,9 +57,9 @@ AC_DEFUN([AX_C_VAR_FUNC],
 [AC_REQUIRE([AC_PROG_CC])
 AC_CACHE_CHECK(whether $CC recognizes __func__, ac_cv_c_var_func,
 AC_TRY_COMPILE(,
-[int main() {
+[
 char *s = __func__;
-}],
+],
 AC_DEFINE(HAVE_FUNC,,
 [Define if the C complier supports __func__]) ac_cv_c_var_func=yes,
 ac_cv_c_var_func=no) )

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agotest: Only build death tests on platforms that support them 830/head
Alan Somers [Fri, 11 Oct 2013 20:45:47 +0000 (13:45 -0700)]
test: Only build death tests on platforms that support them

googletest does not support death tests on FreeBSD.  I've submitted a
patch upstream that trivially enables support, but in the meantime we
can't compile death tests for Ceph on FreeBSD.

https://groups.google.com/forum/#!topic/googletestframework/tjY6UjWgNOw

Signed-off-by: Alan Somers <asomers@gmail.com>
11 years agoPG: fix operator<<,log_wierdness log bound warning
Samuel Just [Wed, 6 Nov 2013 05:48:53 +0000 (21:48 -0800)]
PG: fix operator<<,log_wierdness log bound warning

Split may cause holes such that head != tail and yet
log.empty().

Fixes: #6722
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
11 years agoPGLog::rewind_divergent_log: log may not contain newhead
Samuel Just [Wed, 6 Nov 2013 01:47:48 +0000 (17:47 -0800)]
PGLog::rewind_divergent_log: log may not contain newhead

Due to split, there may be a hole at newhead.

Fixes: #6722
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
11 years agoosd/ErasureCodePlugin: close library before return on error 819/head
Xing Lin [Tue, 5 Nov 2013 05:25:42 +0000 (22:25 -0700)]
osd/ErasureCodePlugin: close library before return on error

close and free resources for library before return

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
11 years agoosd/erasurecode: free allocated memory before return NULL
Xing Lin [Tue, 5 Nov 2013 05:03:08 +0000 (22:03 -0700)]
osd/erasurecode: free allocated memory before return NULL

free memory space pointed by row_ids and ind_to_row before return

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
11 years agomon/MDSMonitor: remove unnecessary assignment
Xing Lin [Sun, 3 Nov 2013 17:35:33 +0000 (10:35 -0700)]
mon/MDSMonitor: remove unnecessary assignment

epocharg is not initialized, so it does not make any difference
to assign its value to epoch.

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
11 years agoosd/erasurecode: correct one variable name in jerasure_matrix_to_bitmatrix()
Xing Lin [Sun, 3 Nov 2013 01:13:42 +0000 (19:13 -0600)]
osd/erasurecode: correct one variable name in jerasure_matrix_to_bitmatrix()

When bitmatrix is NULL, this function returns NULL.

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
11 years agoMerge remote-tracking branch 'gh/wip-doc-radosgw'
Sage Weil [Wed, 6 Nov 2013 16:06:11 +0000 (08:06 -0800)]
Merge remote-tracking branch 'gh/wip-doc-radosgw'

11 years agoRevert "doc: radosgw workaround for OpenStack Horizon bug"
Sage Weil [Wed, 6 Nov 2013 16:06:09 +0000 (08:06 -0800)]
Revert "doc: radosgw workaround for OpenStack Horizon bug"

This reverts commit c3c962eb7d2fb5ceea829924af08f8a1471f7acf.

11 years agoMerge pull request #799 from ceph/wip-doc-install
Sage Weil [Wed, 6 Nov 2013 15:57:23 +0000 (07:57 -0800)]
Merge pull request #799 from ceph/wip-doc-install

Wip doc install

Reviewed-by: Neil Levine <neil.levine@inktank.com>
11 years agoMerge pull request #821 from ceph/port/missing-headers
Sage Weil [Wed, 6 Nov 2013 15:51:02 +0000 (07:51 -0800)]
Merge pull request #821 from ceph/port/missing-headers

add missing headers

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #822 from ceph/port/rgw
Sage Weil [Wed, 6 Nov 2013 15:50:20 +0000 (07:50 -0800)]
Merge pull request #822 from ceph/port/rgw

portability patches in rgw

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #824 from dmick/next
Sage Weil [Wed, 6 Nov 2013 15:46:02 +0000 (07:46 -0800)]
Merge pull request #824 from dmick/next

osdmaptool: don't put progress on stdout

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #825 from ceph/port/utime
Sage Weil [Wed, 6 Nov 2013 15:45:17 +0000 (07:45 -0800)]
Merge pull request #825 from ceph/port/utime

utime: use to_timespec for conversion

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoRadosModel: use sharedptr_registry for snaps_in_use
Samuel Just [Tue, 5 Nov 2013 23:40:29 +0000 (15:40 -0800)]
RadosModel: use sharedptr_registry for snaps_in_use

There might be two concurrent rollback ops each of which
adds snap x to snaps_in_use.  Between when the first
completes and the second completes, snap x may be removed
since the first would have removed snap x from snaps_in_use.
Using sharedptr_registry here avoids this by ensuring that
the snap won't be removed from snaps_in_use until all refs
are gone.

This patch also adds size() to sharedptr_registry.

Fixes: #6719
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
11 years agoosdmaptool: don't put progress on stdout 824/head
Dan Mick [Wed, 6 Nov 2013 00:11:10 +0000 (16:11 -0800)]
osdmaptool: don't put progress on stdout

If one requests JSON output, the progress message pollutes the output;
don't do that, send it to stderr instead

Signed-off-by: Dan Mick <dan.mick@inktank.com>
11 years agorgw: add compat file for name service macros 822/head
Noah Watkins [Sun, 4 Aug 2013 19:09:19 +0000 (12:09 -0700)]
rgw: add compat file for name service macros

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agorgw: avoid sighandler_t in favor of sig_t
Noah Watkins [Sun, 4 Aug 2013 19:11:01 +0000 (12:11 -0700)]
rgw: avoid sighandler_t in favor of sig_t

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agocrush: add mising header for count 821/head
Noah Watkins [Tue, 29 Oct 2013 18:50:24 +0000 (11:50 -0700)]
crush: add mising header for count

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoauth: add missing header for list
Noah Watkins [Tue, 29 Oct 2013 18:50:10 +0000 (11:50 -0700)]
auth: add missing header for list

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agomon: add missing header for std::find
Noah Watkins [Mon, 4 Nov 2013 21:12:41 +0000 (13:12 -0800)]
mon: add missing header for std::find

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoauth: add missing header file for std::replace
Noah Watkins [Mon, 4 Nov 2013 20:42:57 +0000 (12:42 -0800)]
auth: add missing header file for std::replace

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoMerge pull request #811 from dmsimard/wip_6710
Yehuda Sadeh [Tue, 5 Nov 2013 20:25:20 +0000 (12:25 -0800)]
Merge pull request #811 from dmsimard/wip_6710

Be more verbose in radosgw init script issues, return the right exit codes

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoutime: use to_timespec for conversion 825/head
Noah Watkins [Sun, 21 Jul 2013 01:41:39 +0000 (18:41 -0700)]
utime: use to_timespec for conversion

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoAdd a verbose argument and some verbosity 811/head
David Moreau Simard [Tue, 5 Nov 2013 17:02:47 +0000 (12:02 -0500)]
Add a verbose argument and some verbosity

This allows a user to use "-v|--verbose" to get some insight as to
what could be preventing radosgw from starting properly.

Signed-off-by: David Moreau Simard <dmsimard@iweb.com>
11 years agoVerify that radosgw started, return appropriate exit code
David Moreau Simard [Tue, 5 Nov 2013 16:40:31 +0000 (11:40 -0500)]
Verify that radosgw started, return appropriate exit code

Changed "/etc/init.d/radosgw status" into a function that now
returns the appropriate exit code.
We now also verify that radosgw actually started properly.

Signed-off-by: David Moreau Simard <dmsimard@iweb.com>
11 years agoWe should exit 1 if radosgw is not executable
David Moreau Simard [Tue, 5 Nov 2013 16:32:58 +0000 (11:32 -0500)]
We should exit 1 if radosgw is not executable

An exit 0 means everything went okay - we should exit 1 if there is a problem in
starting radosgw.

Signed-off-by: David Moreau Simard <dmsimard@iweb.com>
11 years agoautoconf: check for res_nquery explicitly 823/head
Noah Watkins [Sat, 21 Sep 2013 16:29:47 +0000 (09:29 -0700)]
autoconf: check for res_nquery explicitly

Creates a test that checks explicitly for res_nquery, which can be a
macro in resolv.h. Defines RESOLV_LIBS that contains any libraries that
need to be linked against.

Notes from later fix:

Based on the 2013-09-30 version of wip-port.  On FreeBSD, one must
include netinet/in.h to get the definitions for stuff in resolv.h.
Also, resolv.h's functions are part of libc instead of libresolv.

Signed-off-by: Alan Somers <asomers@gmail.com>
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoautogen.sh: use glibtoolize when available 827/head
Noah Watkins [Sun, 21 Jul 2013 01:41:38 +0000 (18:41 -0700)]
autogen.sh: use glibtoolize when available

libtoolize is called glibtoolize on osx.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoautogen: set exit on error
Noah Watkins [Tue, 5 Nov 2013 16:06:05 +0000 (08:06 -0800)]
autogen: set exit on error

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoMerge pull request #816 from ceph/wip-fadvise
Sage Weil [Tue, 5 Nov 2013 13:31:57 +0000 (05:31 -0800)]
Merge pull request #816 from ceph/wip-fadvise

wbthrottle: use posix_fadvise if available

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #815 from ceph/wip-static-cast
Sage Weil [Tue, 5 Nov 2013 13:29:54 +0000 (05:29 -0800)]
Merge pull request #815 from ceph/wip-static-cast

assert: use feature test for static_cast

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #813 from ceph/wip-blkdev
Sage Weil [Tue, 5 Nov 2013 13:27:40 +0000 (05:27 -0800)]
Merge pull request #813 from ceph/wip-blkdev

support blkdev size query on osx/freebsd

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoFileStore::_collection_move_rename: handle missing dst dir on replay
Samuel Just [Mon, 4 Nov 2013 19:25:31 +0000 (11:25 -0800)]
FileStore::_collection_move_rename: handle missing dst dir on replay

In case of a replay, a missing destination directory indicates that
the destination object and directory have been removed by a later
transaction.  Thus, we need to remove the src object and return
0.

Fixes: #6714
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoMerge pull request #803 from ceph/wip-6698
Sage Weil [Tue, 5 Nov 2013 02:37:59 +0000 (18:37 -0800)]
Merge pull request #803 from ceph/wip-6698

upstart: fix ceph-crush-location default

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #814 from ceph/wip-da-fix-galois-warning
Loic Dachary [Tue, 5 Nov 2013 00:36:32 +0000 (16:36 -0800)]
Merge pull request #814 from ceph/wip-da-fix-galois-warning

galois.c: fix compiler warning

Reviewed-by: Loic Dachary <loic@dachary.org>
11 years agopdatedoc: Added index link to new install doc. Requires merge of wip-doc-install... 800/head
John Wilkins [Mon, 4 Nov 2013 23:11:49 +0000 (15:11 -0800)]
pdatedoc: Added index link to new install doc. Requires merge of wip-doc-install to work.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Deleted old manual install doc.
John Wilkins [Mon, 4 Nov 2013 23:11:05 +0000 (15:11 -0800)]
doc: Deleted old manual install doc.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Mentioned that install procedure is for manual deployments, not ceph-deploy... 799/head
John Wilkins [Mon, 4 Nov 2013 22:57:41 +0000 (14:57 -0800)]
doc: Mentioned that install procedure is for manual deployments, not ceph-deploy or others.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Changed text for ceph-extras. Made it required. Mentioned newer versions.
John Wilkins [Mon, 4 Nov 2013 22:57:07 +0000 (14:57 -0800)]
doc: Changed text for ceph-extras. Made it required. Mentioned newer versions.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agogalois.c: fix compiler warning 814/head
Danny Al-Gaaf [Mon, 4 Nov 2013 22:30:47 +0000 (23:30 +0100)]
galois.c: fix compiler warning

galois_create_split_w8_tables() takes no parameter, remove '8' passed
to the function in one case.

osd/ErasureCodePluginJerasure/galois.c: In function 'galois_w32_region_multiply':
osd/ErasureCodePluginJerasure/galois.c:696:5: warning: call to function 'galois_create_split_w8_tables' without a real prototype [-Wunprototyped-calls]
In file included from osd/ErasureCodePluginJerasure/galois.c:53:0:
osd/ErasureCodePluginJerasure/galois.h:71:12: note: 'galois_create_split_w8_tables' was declared here

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoassert: use feature test for static_cast 815/head
Noah Watkins [Sun, 21 Jul 2013 01:41:38 +0000 (18:41 -0700)]
assert: use feature test for static_cast

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agowbthrottle: use posix_fadvise if available 816/head
Noah Watkins [Sun, 21 Jul 2013 01:41:39 +0000 (18:41 -0700)]
wbthrottle: use posix_fadvise if available

Only adding information about data usage. This won't effect correctness.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agodoc: Added DNS and SSL dialog.
John Wilkins [Mon, 4 Nov 2013 20:50:30 +0000 (12:50 -0800)]
doc: Added DNS and SSL dialog.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agoOSD: allow project_pg_history to handle a missing map
Samuel Just [Mon, 4 Nov 2013 05:02:36 +0000 (21:02 -0800)]
OSD: allow project_pg_history to handle a missing map

If we get a peering message for an old map we don't have, we
can throwit out: the sending OSD will learn about the newer
maps and update itself accordingly, and we don't have the
information to know if the message is valid. This situation
can only happen if the sender was down for a long enough time
to create a map gap and its PGs have not yet advanced from
their boot-up maps to the current ones, so we can rely on it

Fixes: #6712
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoOSD: don't clear peering_wait_for_split in advance_map()
Samuel Just [Sun, 3 Nov 2013 19:06:10 +0000 (11:06 -0800)]
OSD: don't clear peering_wait_for_split in advance_map()

I really don't know why I added this...  Ops can be discarded from the
waiting_for_pg queue if we aren't primary simply because there must have
been an exchange of peering events before subops will be sent within a
particular epoch.  Thus, any events in the waiting_for_pg queue must be
client ops which should only be seen by the primary.  Peering events, on
the other hand, should only be discarded if we are in a new interval,
and that check might as well be performed in the peering wq.

Fixes: #6681
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoReplicatedPG::recover_backfill: adjust last_backfill to HEAD if snapdir
Samuel Just [Sat, 2 Nov 2013 20:54:51 +0000 (13:54 -0700)]
ReplicatedPG::recover_backfill: adjust last_backfill to HEAD if snapdir

Otherwise, if last_backfill_started is a snapdir, we will fail to send a
transaction for a client IO creating the head object and removing the
snapdir object.  The result will be that head will eventually be
backfilled, but the snapdir object will erroneously not be removed.

Fixes: #6685
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agotest: test helper for get_block_device_size 813/head
Noah Watkins [Mon, 4 Nov 2013 16:28:23 +0000 (08:28 -0800)]
test: test helper for get_block_device_size

This is the start of a potential unit test for get_block_device_size. An
actual unit test will probably need to be run as root, and either find a
device, have one specified, or create one (e.g. ramdisk)  in a platform
agnostic way. In the mean time, this tool can be run by hand, or called
for a bash script.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoblkdev: support blkdev size query on osx
Noah Watkins [Sun, 21 Jul 2013 01:41:39 +0000 (18:41 -0700)]
blkdev: support blkdev size query on osx

Support OSX, add checks for platform specific headers.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agodoc: Implemented changes suggested from feedback.
John Wilkins [Mon, 4 Nov 2013 17:54:58 +0000 (09:54 -0800)]
doc: Implemented changes suggested from feedback.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agoMerge pull request #812 from ceph/revert-struct-init
Sage Weil [Mon, 4 Nov 2013 15:58:49 +0000 (07:58 -0800)]
Merge pull request #812 from ceph/revert-struct-init

Revert "fix -Wgnu-designator warnings"

11 years agoRevert "fix -Wgnu-designator warnings" 812/head
Noah Watkins [Mon, 4 Nov 2013 14:18:45 +0000 (06:18 -0800)]
Revert "fix -Wgnu-designator warnings"

Struct initialization using dot notation as in C99, but that happens to
not be valid C++, although apparently in C++11 it is valid. We'll need a
way to keep clang from throwing warnings at this initialization style,
either using some macros to detect the comiler environment, or perhaps
moving struct initialization to a C file rather than C++.

This reverts commit 6efc2b54d5ce85fcb4b66237b051bcbb5072e6a3.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoMerge pull request #809 from ceph/wip-pgmap
Gregory Farnum [Sun, 3 Nov 2013 17:25:28 +0000 (09:25 -0800)]
Merge pull request #809 from ceph/wip-pgmap

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agotest/libcephfs: free cmount after tests finishes
Xing Lin [Sun, 3 Nov 2013 06:05:58 +0000 (00:05 -0600)]
test/libcephfs: free cmount after tests finishes

unmount and release cmount at the end of tests

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoosd/erasurecode: correct one variable name in jerasure_matrix_to_bitmatrix()
Xing Lin [Sun, 3 Nov 2013 01:24:22 +0000 (19:24 -0600)]
osd/erasurecode: correct one variable name in jerasure_matrix_to_bitmatrix()

When bitmatrix is NULL, this function returns NULL.

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #790 from ceph/wip-warnings
Sage Weil [Sun, 3 Nov 2013 05:17:46 +0000 (22:17 -0700)]
Merge pull request #790 from ceph/wip-warnings

ease clang's anxieties

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #793 from ceph/wip-pipe
Sage Weil [Sun, 3 Nov 2013 05:16:18 +0000 (22:16 -0700)]
Merge pull request #793 from ceph/wip-pipe

pipe: use pipe2 feature test; check fcntl retval

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agomon/PGMap: use const ref, not pass-by-value 809/head
Sage Weil [Sat, 2 Nov 2013 06:56:45 +0000 (23:56 -0700)]
mon/PGMap: use const ref, not pass-by-value

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #806 from jdurgin/wip-xfstests
Sage Weil [Sat, 2 Nov 2013 06:32:26 +0000 (23:32 -0700)]
Merge pull request #806 from jdurgin/wip-xfstests

Don't run racy xfstest 008

11 years agoMerge pull request #807 from jdurgin/wip-rbd-map-rw
Sage Weil [Sat, 2 Nov 2013 06:31:44 +0000 (23:31 -0700)]
Merge pull request #807 from jdurgin/wip-rbd-map-rw

rbd: omit 'rw' option during map

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #804 from jdurgin/wip-rgw-replica-log-next
Yehuda Sadeh [Sat, 2 Nov 2013 04:00:24 +0000 (21:00 -0700)]
Merge pull request #804 from jdurgin/wip-rgw-replica-log-next

rgw: don't turn 404 into 400 for the replicalog api

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>