autogen: find libtoolize

Uses libtoolize or glibtoolize, giving preference to the former. Used to
support OSX platform.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
configure: test for static_assert

Uses a compile-time test for static_assert availability, rather than
examining GNUC versions, which don't work on OSX that is LLVM based.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
libcommon: rename pipe.[ch]

On case-insensitive file systems intermediate object file names will
conflict between src/common/pipe.c and src/msg/Pipe.cc.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
config: use default AC_CHECK_FUNCS flags

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
common: use configure time check for pipe2

On OSX O_CLOEXEC exists, but not pipe2.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
compat: use lseek when lseek64 is missing

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Revert "rgw: fix handler leak in handle_request"

This reverts commit eba314a811cd98a79f483dc7a9128fe76c722c78.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
ReplicatedPG: fix snapdir trimming

The previous logic was both complicated and not correct.  Consequently,
we have been tending to drop snapcollection links in some cases.  This
has resulted in clones incorrectly not being trimmed.  This patch
replaces the logic with something less efficient but hopefully a bit
clearer.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
rados: add truncate support

Signed-off-by: Samuel Just <sam.just@inktank.com>
Revewed-by: Greg Farnum <greg@inktank.com>
doc: Normalized to term "drive" rather than disk. Changed "(Manual)" entry on remove OSD.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Added -a option. Should work without from server, as described.

fixes: #3750

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
messages: add MTimeCheck

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
mon: Monitor: add timecheck infrastructure to detect clock skews

Fixes: #3633
Fixes: #3695

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
mon: Monitor: reduce indentation level; make code more readable

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
mon: Monitor: move a couple of if's together on handle_command()

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
mon: Monitor: use 'else if' on handle_command instead of bunches of 'if'

... when the options are mutually exclusive.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
mon: Monitor: unify 'ceph health' and 'ceph status'; add json output

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
mon: Monitor: only schedule a timecheck after election if we are not alone

Fixes: #3790

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
osx: bump leveldb version with OSX detection

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
inttypes: use configure-time checks for int types

Changes configure.ac to check for types we need, and then creates
typedefs for any that we lack.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>