Commit Graph

475 Commits

Author SHA1 Message Date
Joe Buck
cd6f4bcdae Use a loop for testing jdk paths
Loop through a list of sensible default
locations for a JDK, stopping if a
workable JDK is found.
Also, add support for CentOS' default
java location.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
2013-09-16 22:02:59 -07:00
Noah Watkins
b86c068669 hadoop: remove hadoop shim
The in-tree Hadoop shim was a combination of libcephfs wrapper, and the
bits to support Hadoop. This has been replaced by src/java that
implements generic libcephfs wrappers, and externally, the hadoop shim
(see docs).

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2013-09-13 13:39:48 -07:00
Roald J. van Loon
7845115f8b automake cleanup: adding vta support to configure
Signed-off-by: Roald J. van Loon <roaldvanloon@gmail.com>
2013-09-07 22:41:09 +02:00
Sage Weil
cfb07f1451 arch: add NEON cpu feature detection
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2013-09-04 16:05:00 -07:00
Gary Lowell
d9187a73c3 Merge branch 'next' 2013-09-04 01:37:41 -07:00
Gary Lowell
b4cf0f2574 v0.68 2013-09-03 16:10:31 -07:00
Sage Weil
14a483745f Merge pull request #514 from kri5/wip-clang-compilation
Do not use some compilation flag invalid for clang

Reviewed-by: Loic Dachary <loic@dachary.org>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-23 21:21:57 -07:00
Sage Weil
e55809acd2 crc32c: add intel optimized crc32c implementation
This is from Intel's ISA-L library and licensed under BSD 3-clause.

It needs to build with yasm, which means we go through all sorts of pain
to make this work with libtool:

 - strip out args it doesn't understand with yasm-wrapper
 - detect whether it is recent enough during configure

The code is conditional on:

 - build-time support (yasm)
 - run-time support (sse4.2)

Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-22 09:15:05 -07:00
Christophe Courtaut
8e53301840 Do not use some compilation flag invalid for clang
-Wstrict-null-sentinel and -rdynamic are invalid flags
for clang compiler.

Signed-off-by: Christophe Courtaut <christophe.courtaut@gmail.com>
2013-08-20 11:42:19 +02:00
Yan, Zheng
5a15369865 store: Add (experimental) ZFS parallel journal support
This patch adds ZFS parallel journal support. It uses libzfs provided by
zfsonlinux to access ZFS' functionalities. To enable ZFS parallel journal
support, compile ceph by:

  ./configure --with-libzfs LIBZFS_CFLAGS="-I<libzfs header> -I<libspl header>"
  make

Add following line to osd section of ceph.conf

  filestore zfs_snap = 1

Note: ZFS (no mater parallel journal is enabled or not) does not support
direct IO. To use it as backend FS for OSD, you need to add following line
to osd section of ceph.conf

  journal aio = 0
  journal dio = 0

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2013-08-15 09:48:22 -07:00
Sage Weil
ddaf6d5a93 Merge remote-tracking branch 'gh/next'
Conflicts:
	configure.ac
	src/ceph.in
	src/pybind/ceph_argparse.py
2013-07-25 10:48:57 -07:00
Gary Lowell
1cdb3ecffc configure.ac: Remove -rc suffix from the configure version number.
Remove the rc suffix since RPM complains about.  For rc release
builds the "rc" in the git describe string is suffcient for
everyhting but RPM.  For rc release builds (i.e. not gitbuilder)
add a flag to the spec file.

Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
2013-07-23 22:43:59 -07:00
Gary Lowell
b7c40ec4c3 configure.ac: Set version number to match git describe.
Workaround for issue with rc1 suffix for rpms.

Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
2013-07-23 21:42:03 -07:00
Gary Lowell
fc6cb81eba Merge branch 'next' 2013-07-22 23:19:47 -07:00
Gary Lowell
835dd97301 v0.67-rc1 2013-07-22 11:57:27 -07:00
Noah Watkins
3846bf2f1a fuse: fix fuse_getgroups detection
The ac_check_func fails because -lfuse is not in LIBS. This also enables
code that wasn't being compiled, and fixes compiler errors that
resulted.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-07-21 20:00:28 -07:00
Sage Weil
aa7448cd17 Merge pull request #415 from ceph/rgw-next 2013-07-09 15:34:05 -07:00
Yehuda Sadeh
73c2a3dcd3 configure.ac: detect whether libcurl supports curl_multi_wait()
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-07-08 23:43:00 -07:00
Gary Lowell
b6b48dbefa v0.66 2013-07-08 15:45:00 -07:00
Gary Lowell
c2d517ef96 v0.65 2013-06-25 09:19:32 -07:00
Gary Lowell
42e06c12db v0.64 2013-06-12 09:54:06 -07:00
Gary Lowell
054e96cf79 v0.63 2013-05-28 13:58:22 -07:00
Gary Lowell
9382379cc6 v0.62 2013-05-14 09:13:07 -07:00
Gary Lowell
237f3f1e8d v0.61 2013-05-06 13:18:56 -07:00
Samuel Just
1493e7dbfb osd/: optionally track every pg ref
This involves three pieces:

For intrusive_ptr type references, we use TrackedIntPtr instead.  This
uses get_with_id and put_with_id to associate an id and backtrace with
each particular ref instance.

For refs taken via direct calls to get() and put(), get and put now
require a tag string.  The PG tracks individual ref counts for each tag
as well as the total.

Finally, PGs register/unregister themselves on construction/destruction
with OSDService.

As a result, on shutdown, we can check for live pgs and determine where
the references are held.

This behavior is compiled out by default, but can be included with the
--enable-pgrefdebugging flag.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-04-19 11:05:58 -07:00
Greg Farnum
8f21beb23c leveldbstore: handle old versions of leveldb
The filter_policy (bloom filter) stuff is fairly new in LevelDB's life,
and it turns out that precise's version is too old for it. Add conditional
compilation for those members in order to build and work properly.

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-04-17 15:14:35 -07:00
Gary Lowell
f26f7a3902 v0.60 2013-04-01 12:22:53 -07:00
Gary Lowell
cbae6a435c v0.59 2013-03-19 22:27:13 -07:00
Gary Lowell
66cadbe515 Merge branch 'next' 2013-03-05 09:05:21 -08:00
Gary Lowell
ba3f91e750 v0.58 2013-03-04 15:18:24 -08: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
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
aa79077c24 configure.ac: Add test for c++ compiler.
The AC_PROG_CXX macro sets a flag if a C++ compiler is found
but does not fail if one is not found, it left to application
to test the flags as needed. This fix will issue an error
when a c++ compiler is not found.  Bug 3955.

Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>

it's not installed, this fix adds an error message for a
2013-02-25 19:35:34 -08:00
Gary Lowell
9a7a9d06c0 v0.57 2013-02-19 10:07:42 -08:00
Danny Al-Gaaf
f74265b08a configure: fix check for fuse_getgroups()
Check for fuse_getgroups() only in case we have found libfuse already.
Moved the check to the check for --with-fuse.

Small fix: fix string for NO_ATOMIC_OPS, don't use "'".

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-01-28 13:56:32 -08:00
Danny Al-Gaaf
fa421cf5f5 configure: remove -m4_include(m4/acx_pthread.m4)
Since we use already AC_CONFIG_MACRO_DIR, no need to include m4/acx_pthread.m4
extra.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-01-26 22:35:15 -08:00
Danny Al-Gaaf
32276e9afb configure: fix RPM_RELEASE
Use git to get RPM_RELEASE only if this is a git repo
clone and if the git command is available on the system.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-01-26 22:34:58 -08:00
Danny Al-Gaaf
c1a86ab142 configure.ac: fix problem with --enable-cephfs-java
The AS_IF used to cover java related checks via --enable-cephfs-java
didn't work correctly. Use a plain 'if/fi' instead to make sure this
section is only executed if --enable-cephfs-java is used.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-01-16 09:41:13 -08:00
Danny Al-Gaaf
59aad34795 configure.ac: check for org.junit.rules.ExternalResource
Check for org.junit.rules.ExternalResource if build with
--enable-cephfs-java and --with-debug. Checking for junit4
isn't enough since junit4 has this class not before 4.7.

Added some m4 files to get some JAVA related macros. Changed
autogen.sh to work with local m4 files/macros.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-01-09 19:52:05 -08:00
Danny Al-Gaaf
61437ee24e configure.ac: change junit4 handling
Change handling of --with-debug and junit4. Add a new conditional HAVE_JUNIT4
to be able to build ceph-test package also if junit4 isn't available. In
this case simply don't build libcephfs-test.jar, but the rest of the tools.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-01-09 17:13:11 -08:00
Danny Al-Gaaf
aedbb97fe6 configure.ac: remove AC_PROG_RANLIB
Remove already comment out AC_PROG_RANLIB to get rid of warning:

libtoolize: `AC_PROG_RANLIB' is rendered obsolete by `LT_INIT'

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-01-09 17:13:11 -08:00
Gary Lowell
1a32f0a0b4 v0.56 2012-12-31 17:10:11 -08:00
Sage Weil
0dd1302543 Merge remote-tracking branch 'gh/testing' into next 2012-12-17 16:51:20 -08:00
Gary Lowell
8e25c8d984 v0.55.1 2012-12-12 16:24:34 -08:00
Sage Weil
81e567c90d Merge remote-tracking branch 'gh/wip-ceph-test' into next 2012-12-08 09:18:21 -08:00
Gary Lowell
690f817560 v0.55 2012-12-03 19:08:35 -08:00
Gary Lowell
af5d9e435f Makefiles: Use AM_CXXFLAGS for crypto library compiler options
In configure.ac, add the crypto library compiler flags to AM_CXXFLAGS and in
src/Makefile remove CRYPTO_CXXFLAGS and use only AM_CXXFLAGS which now has
the flags if needed.
2012-11-27 13:50:25 -08:00
Chen Baozi
68491afceb rgw: add -lresolv flags to Makefile.am
radosgw depends on libresolv since since the commit 951c6be. So we need to
add -lresolve flags, or it cannot link right library.

Signed-off-by: Chen Baozi <baozich@gmail.com>
2012-11-17 23:21:08 -08:00
Gary Lowell
8b187bd8ca build: update for boost_thread library.
There is a difference in naming conventions between debian and
rpm based distributions for this library.  In configure.ac we
check first for boost_thread-mt, then if it's not found check
for boost_thread.  A side effect of the AC_CEHCK_LIB macro is
to add the library to the $LIBS, so the explicit -llibboost_thread
in the Makefile has been removed.
(cherry picked from commit f0c7bb3630)
2012-11-16 10:51:42 -08:00
Gary Lowell
7926ef5393 Merge branch 'next'
Conflicts:
	configure.ac
	src/rgw/rgw_common.cc
2012-11-13 17:29:47 -08:00
Gary Lowell
60b84b095b v0.54 2012-11-13 13:18:07 -08:00
Gary Lowell
ff5ee98f1c build: Add RPM release string generated from git describe.
Fix for bug 3451.  Use the commit count and sha1 from git describe to
construct a release string for rpm packages.
2012-11-08 12:43:24 -08:00
Noah Watkins
1581db9bcb configure: fail when missing junit dependency
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2012-11-08 09:28:26 -08:00
Joe Buck
5dec9172d9 Moving test java files into a proper heirarchy. Moving the compilation
of tests classes from build.xml to Makefile and editing configure.ac to
look for the junit4 jar in the default location of /usr/share/java. It
is still possible to build and run tests from build.xml as well as
Makefile.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
2012-11-08 09:27:49 -08:00
Samuel Just
6bbe7db79d configure.ac: add program_options header check
Signed-off-by: Samuel Just <sam.just@inktank.com>
2012-10-31 10:27:33 -07:00
Noah Watkins
68e01649ff automake: setup autotools to build cephfs-java
Adds --enable-cephfs-java and --with-jdk to build
the libcephfs Java bindings and specify the default
JDK directory, respectively.

Also adds default JDK paths to avoid --with-jdk in
the common case. Currently setup for the default
provided by Debian's default-jdk package, but other
default search paths can easily be added.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2012-10-19 09:59:10 -07:00
Sage Weil
ad6840ce5c Merge branch 'wip-3301'
Reviewed-by: Sage Weil <sage@inktank.com>
2012-10-16 21:06:00 -07:00
Sam Lang
328bf48234 client: Add permissions checking to open
Users of the libcephfs api (fuse in particular)
don't check the mode against the open flags.  This
commit does the proper checks to grant/deny access
to the file.  The check_mode() function constructs
a requested mode based on the flags, and compares that
to the mode of the file.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-10-16 18:26:29 -07:00
Gary Lowell
d78ba6af94 Merge branch 'next' 2012-10-16 23:27:21 +00:00
Gary Lowell
2528b5ee10 v0.43 2012-10-16 17:42:36 +00:00
Gary Lowell
071fdc217a Makefile: Improve test for boost system library. 2012-10-15 14:14:35 -07:00
Gary Lowell
7ea734c472 Makefiles: Missing boost library should not be fatal. 2012-10-15 14:14:34 -07:00
Gary Lowell
3658157b60 Makefile: Updates to eliminates warnings, add test for boost system lib. 2012-10-15 14:14:34 -07:00
Tommi Virtanen
dd462ce38b configure.ac: Typo in human-readable description.
Signed-off-by: Tommi Virtanen <tv@inktank.com>
2012-10-09 13:38:45 -07:00
Gary Lowell
e48859474c v0.52 2012-09-27 16:26:11 +00:00
Sage Weil
c03ca95d23 v0.51 2012-08-25 15:58:39 -07:00
Sage Weil
a4428bd0e1 v0.50 2012-08-13 09:49:24 -07:00
Sage Weil
ca6265d0f4 v0.49 2012-07-23 11:28:08 -07:00
Sage Weil
c2b20ca742 v0.48argonaut 2012-07-02 16:06:01 -07:00
Sage Weil
a85a15fef4 Merge remote-tracking branch 'gh/stable' into next 2012-06-21 08:20:17 -07:00
Sage Weil
c467d9d1b2 v0.47.3 2012-06-20 10:57:41 -07:00
Sage Weil
dde85a207c CrushTester: allow build without boost stuff for chi^2 testing
With limited functionality.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-06-03 16:12:20 -07:00
Sage Weil
fbae60315d Merge branch 'stable' 2012-05-23 16:41:14 -07:00
Sage Weil
8bf9fde89b v0.47.2 2012-05-23 10:55:49 -07:00
Josh Durgin
0ae59eae3d Merge branch 'stable' 2012-05-22 12:54:09 -07:00
Sage Weil
f5a9404445 v0.47.1 2012-05-21 14:28:45 -07:00
Sage Weil
d8f4c6d208 Merge branch 'stable'
Conflicts:
	src/os/FileStore.cc
2012-05-20 21:18:36 -07:00
Sage Weil
ad663d58c8 v0.47 2012-05-20 15:33:49 -07:00
Sage Weil
89316566b5 remove gceph
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-17 20:23:33 -07:00
Yehuda Sadeh
53f642e29a rest-bench: build conditionally
added configure --with-rest-bench, and configure --with-system-libs3

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
2012-05-04 15:55:25 -07:00
Sage Weil
cb7f1c9c75 v0.46 2012-04-30 10:55:45 -07:00
Sage Weil
0aea1cb1df v0.45 2012-04-10 10:42:11 -07:00
Sage Weil
d348e1abf8 configure: --with-system-leveldb
Default to bundled leveldb.  Optionally check.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-09 21:20:18 -07:00
Sage Weil
7951d7e442 Merge remote branch 'gh/stable' into next 2012-04-08 20:59:33 -07:00
Sage Weil
dd8fd1688a configure: HAVE_FALLOCATE -> CEPH_HAVE_FALLOCATE
/usr/include/linux/fs.h defines this on CentOS 5, even though it does not
in fact compile.  This stupid workaround avoids the problem.

Reported-by: Nick Couchman <Nick.Couchman@seakr.com>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-08 20:58:59 -07:00
Sage Weil
689ac5d701 v0.44.2 2012-04-05 14:55:04 -07:00
Sage Weil
94e3abf88a Merge branch 'stable' 2012-03-27 19:58:54 -07:00
Sage Weil
c89b7f22c8 v0.44.1 2012-03-27 13:02:09 -07:00
Sage Weil
a608a8fef6 Merge branch 'stable' 2012-03-21 06:28:15 -07:00
Sage Weil
cdd5298d27 v0.44 2012-03-20 11:41:08 -07:00
Sage Weil
0904c7b73d configure: fix warnings
Finally!

Signed-off-by: Sage Weil <sage@newdream.net>
2012-03-16 10:39:39 -07:00
Yehuda Sadeh
d90298de18 ceph-dencoder: don't use rgw types if configured without rgw
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
2012-03-13 17:04:01 -07:00
Sage Weil
ed6cc47b18 filestore: use FL_ALLOC_PUNCH_HOLE to zero, when available
First try the FL_ALLOC_PUNCH_HOLE fallocate() flag.  If we get EOPNOTSUPP,
fall back to writing zeros.

Check for fallocate(2) with configure.  Also, avoid this if we are not
Linux, since I'm not sure about the hard-coded FL_ALLOC_PUNCH_HOLE being
correct on other platforms.

Signed-off-by: Sage Weil <sage@newdream.net>
Reviewed-by: Samuel Just <samuel.just@dreamhost.com>
2012-03-08 14:30:06 -08:00
Florian Haas
c31b86963a OCF resource agents: add rbd
Add a resource agent for mapping, unmapping and monitoring RBD devices.

Maps an RBD on start, unmaps it on stop. Checks "rbd showmapped"
output for monitoring whether the device is mapped, thus does not
rely on the ceph-rbdnamer udev magic to be enabled.

This RA is cloneable and essentially allows people to use RBD devices
as a drop-in replacement for
- iSCSI devices,
- host-based mirrored devices using md RAID-1,
- DRBD devices
in Pacemaker clusters.
2012-03-05 21:30:30 +01:00
Sage Weil
38537ba74a Merge branch 'stable' 2012-03-02 13:45:03 -08:00
Sage Weil
9fa8781c01 v0.43 2012-03-02 08:53:30 -08:00
Samuel Just
d9b130faf0 Added LevelDBStore
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2012-03-01 10:11:42 -08:00
Sage Weil
732f3ec94e v0.42.2 2012-02-24 13:00:39 -08:00
Sage Weil
c3e1291da9 v0.42.1 2012-02-23 18:48:57 -08:00
Sage Weil
b205c64c68 v0.42 2012-02-19 15:30:37 -08:00
Sage Weil
fb0e2a3ece configure: add --without-libaio option
Use it by default; fail if it's not there.  Unless --without-libaio is
specified.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-04 17:44:24 -08:00
Sage Weil
30a77acb07 filejournal: implement aio for writes
Implement aio for the journal writes.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-04 17:44:24 -08:00
Sage Weil
c1345f7136 v0.41 2012-01-27 12:35:42 -08:00
Sage Weil
7eea40ea37 v0.40 2012-01-13 08:36:13 -08:00
Kacper Kowalik (Xarthisius)
c9e028f4e5 Makefile: Handle corner case of crypto++ correctly
i.e. use c++ while compiling, append to CRYPTO_LIBS instead of LIBS

Signed-off-by: Kacper Kowalik (Xarthisius) <xarthisius@gentoo.org>
2012-01-12 09:17:42 -08:00
Kacper Kowalik (Xarthisius)
c5144eed4e Makefile: Use ACX_PTHREAD in configure.ac and resulting flags in src/Makefile.am
instead of hardcoded flags

Signed-off-by: Kacper Kowalik (Xarthisius) <xarthisius@gentoo.org>
2012-01-12 09:17:24 -08:00
Florian Haas
92cfad4203 Add OCF-compliant resource agent for Ceph daemons
Add a wrapper around the ceph init script that makes
MDS, OSD and MON configurable as Open Cluster Framework
(OCF) compliant cluster resources. Allows Ceph
daemons to tie in with cluster resource managers that
support OCF, such as Pacemaker (http://www.clusterlabs.org).

Disabled by default, configure --with-ocf to enable.

Signed-off-by: Florian Haas <florian@hastexo.com>
2011-12-30 09:00:30 -08:00
Sage Weil
321ecdaba2 v0.39 2011-12-02 09:01:31 -08:00
Sage Weil
2253c0168d use libuuid for fsid
Signed-off-by: Sage Weil <sage@newdream.net>
2011-11-11 20:48:59 -08:00
Sage Weil
fa5047b377 Merge remote branch 'gh/stable' 2011-11-10 20:50:31 -08:00
Sage Weil
b600ec2ac7 v0.38 2011-11-10 15:07:05 -08:00
Sage Weil
20cf1e96fb automake: enable 'make V=0'
Enables silent mode for automake generated Makefiles,
and silent mode is _off_ by default. Using V=0 the output
is much easier to read when trying to find warnings:

nwatkins@piha:~/Projects/ceph/ceph$ make -j8 V=0
make[3]: Entering directory `/users/nwatkins/Projects/ceph/ceph/src'
  CC     locks.o
  CXX    journal.o
  CXX    Server.o
  CXX    Mutation.o
  CXX    MDCache.o
  CXX    Locker.o
  CXX    Migrator.o
  CXX    MDBalancer.o
  CXX    CDentry.o
  CXX    CDir.o
  CXX    CInode.o
  CXX    LogEvent.o
  CXX    MDSTable.o

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2011-11-08 21:13:07 -08:00
Sage Weil
46f330d01c Merge branch 'master' into wip-freebsd 2011-10-25 14:54:16 -07:00
Sage Weil
a6f3bbb744 v0.37 2011-10-17 08:35:57 -07:00
Sage Weil
468c7dce79 rgw: find fcgi headers in /usr/include or /usr/include/fastcgi
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-10 19:11:45 -07:00
Stanislav Sedov
d4340bacfa On FreeBSD, libedit should be linked in explicitly, because this library
is present in the system, but it is not in the pkg-config database.

Signed-off-by:	Stanislav Sedov <stas@FreeBSD.org>
2011-10-04 19:03:55 -07:00
Stanislav Sedov
9fde4d946f First cut of FreeBSD support. This patch allowes ceph to compile successfully
under FreeBSD.

Signed-off-by:	Stanislav Sedov <stas@FreeBSD.org>
2011-10-04 17:34:41 -07:00
Sage Weil
877cacbbdb v0.36 2011-09-30 15:48:28 -07:00
Sage Weil
0afda37812 v0.35 2011-09-21 09:47:36 -07:00
Sage Weil
2f039eeeb7 v0.34 2011-08-26 21:48:47 -07:00
Sage Weil
340b4348bf v0.33 2011-08-17 09:16:27 -07:00
Sage Weil
c08d08baa6 v0.32 2011-07-29 21:44:23 -07:00
Colin Patrick McCabe
143e2dd5fe Don't build build tests unless requested
Build tests (that check if there are unresolved symbols in libraries)
can slow down the build a lot. We should only enable them when
developers need them.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-07-13 16:12:40 -07:00
Sage Weil
9019c6ce64 v0.31 2011-07-08 14:17:40 -07:00
Sage Weil
64b1b2c70f v0.30 2011-06-27 22:23:56 -07:00
Sage Weil
ca4e2877af Merge branch 'stable' 2011-06-16 19:44:19 -07:00
Sage Weil
77d38e420b v0.29.1
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-16 13:10:59 -07:00
Sage Weil
954e09661f qa: do not use automake for workunit makefiles
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-14 12:53:33 -07:00
Sage Weil
71543246d3 configure: check for boost statechart header
Partially fixes: #1124
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-13 21:56:47 -07:00
Sage Weil
d5bba79ebb qa: move compiled workunits into organized directory
No need for a separate qa/src/ dir; just put them where we want them.  We
need to ignore non-executable files when doing the bulk runs anyway.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-13 13:29:30 -07:00
Sage Weil
953bb605e6 qa: move compiled items into qa/src/ 2011-06-13 13:22:06 -07:00
Sage Weil
83a55f4dc7 Merge remote branch 'origin/stable'
Conflicts:
	src/dumpjournal.cc
2011-06-10 17:37:29 -07:00
Josh Durgin
2b5e01117e mds, mon, osd: with coverage enabled, exit(0) when SIGTERM is received
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-06-09 17:43:41 -07:00
Josh Durgin
dfa4aeb8ae Merge remote branch 'origin/wip_gcov' 2011-06-07 13:57:28 -07:00
Josh Durgin
b32f00ebe3 coverage: add ceph-coverage to run something with the right GCOV_PREFIX_STRIP
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-06-07 13:29:21 -07:00
Josh Durgin
24195b9c87 configure: add option for building with gcov coverage support
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-06-07 12:02:40 -07:00
Sage Weil
8e69c39f69 v0.29 2011-06-06 11:09:28 -07:00
Sage Weil
23242045db v0.28.2 2011-05-28 09:14:31 -07:00
Sage Weil
d66c6ca19b v0.28.1 2011-05-23 21:11:44 -07:00
Sage Weil
071881d7e5 v0.28 2011-05-18 10:17:49 -07:00
Sage Weil
58ea8358a9 Merge branch 'stable'
Conflicts:
	src/mds/Resetter.cc
2011-05-05 15:24:48 -07:00
Sage Weil
44900d4c13 v0.27.1 2011-05-05 13:42:20 -07:00
Jim Schutt
9854e27f7e configure.ac: check for supported compiler flags
Ancient versions of gcc, such as the gcc 4.1.2 in RHEL 5.5, don't
support some -W flags that newer versions do.  Fix up configure.ac
and Makefile.am to use them if you have them.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-26 15:37:44 -07:00
Sage Weil
793034c62c v0.27
Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-22 16:52:04 -07:00
Sage Weil
4428d1ec3b Revert "Revert "autoconf: Complain if tcmalloc is not found.""
This reverts commit 05c281bfa9.

This should be okay now.
2011-04-19 12:05:36 -07:00
Sage Weil
879adb6190 Merge remote branch 'origin/stable'
Conflicts:
	src/osdc/Journaler.cc
2011-04-18 09:58:15 -07:00
Colin Patrick McCabe
e341fe0b18 osd: Use syncfs when available
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-13 13:45:20 -07:00
Sage Weil
9981ff9096 v0.26 2011-04-04 10:06:35 -07:00
Sage Weil
32e422e411 configure: change gtk dep to 2.12 instead of 2.13 for lenny 2011-04-04 10:06:35 -07:00
Sage Weil
05c281bfa9 Revert "autoconf: Complain if tcmalloc is not found."
This reverts commit a9afdca18e.

This breaks debian build on lenny because tcmalloc isn't part of libgoogle-perftools-dev.
2011-04-02 22:18:59 -07:00
Tommi Virtanen
bee85518e2 mount.ceph: Use kernel key management API when possible.
Backwards compatible with older kenrnels, for now.

Fixes: #852
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-03-29 12:55:17 -07:00
Yehuda Sadeh
44cf282038 Merge branch 'master' into rgw
Conflicts:

	debian/control
2011-03-21 14:14:38 -07:00
Sage Weil
55bb9ef821 configure: no ~
This confuses fedora and isn't really necessary.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-03-18 14:47:09 -07:00
Colin Patrick McCabe
4db8801bba Makefile: check for new enough version of gtkmm
Versions older than 2.13 don't build, so check for that with automake.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-03-17 17:50:07 -07:00
Yehuda Sadeh
8f2392b88f Merge commit 'origin/master' into rgw
Conflicts:

	src/Makefile.am
	src/rados.cc
	src/rgw/rgw_admin.cc
	src/rgw/rgw_main.cc
	src/rgw/rgw_rest.cc
2011-03-16 10:45:43 -07:00
Tommi Virtanen
289318777c autoconf: Fix typo that made --without-gtk2 not work.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-03-11 14:46:22 -08:00
Tommi Virtanen
5d0fa63aba autoconf: Handle --without-debug, --with-debug=junk properly.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-03-11 14:11:54 -08:00
Tommi Virtanen
5613e36784 autoconf: Handle --without-profiler, --with-profiler=junk properly.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-03-11 14:08:56 -08:00
Tommi Virtanen
bccffecb4a autoconf: If given --with-gtk2, not finding it is fatal.
Use --with-gtk2=check (default) if you're ok with both cases.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-03-11 13:56:58 -08:00
Tommi Virtanen
3424e3ac50 auth: Allow using NSS as crypto library.
Added new configure flag --with-nss that enables this. NSS is also
automatically used if it is available and CryptoPP is not; use
--without-nss to explicitly forbid this.

No change on rgw crypto yet; rgw won't build without CryptoPP for now.

NSS initialization is in a static constructor for now. All it does is
set some values on in-memory data structures, so as long as no (other)
static constructor tries to use it, everything should just work. While
this could be moved to common_init, there are several other context
initialization steps with NSS, and a later refactoring to share the
results of these can just include NSS init as its first operation, at
practically no cost.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-03-11 13:13:39 -08:00
Tommi Virtanen
a2c02d1799 autoconf: Complain if libatomic-ops is not found.
Use --without-libatomic-ops if you don't want it.

Fixes part of #826.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-03-11 13:09:13 -08:00
Tommi Virtanen
a9afdca18e autoconf: Complain if tcmalloc is not found.
Use --without-tcmalloc if you don't want it.

Fixes part of #826.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-03-11 13:09:13 -08:00
Tommi Virtanen
5df13bb02a autoconf: Complain if FUSE is not found.
Use --without-fuse if you don't want it.

Fixes part of #826.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-03-11 13:09:13 -08:00
Yehuda Sadeh
8c3133e5d4 configure: fix profiler check 2011-03-03 11:56:43 -08:00
Yehuda Sadeh
6a686c8f57 Merge branch 'master' into rgw
Conflicts:
	src/Makefile.am
2011-03-03 11:26:50 -08:00
Yehuda Sadeh
bb42a71b02 configure: fix profiler check 2011-03-03 11:44:41 -08:00
Yehuda Sadeh
0a4f4d7236 configure: add libcurl dependency for rgw 2011-03-01 11:25:22 -08:00
Sage Weil
863631319b add --with-profiler to link in google perftools libprofiler
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-03-01 06:44:37 -08:00
Sage Weil
827c950bda v0.26~rc
Modernize configure.ac macros, set bug report address to ML.
2011-02-24 07:41:23 -08:00
Colin Patrick McCabe
cde53e9575 Merge branch 'pybind' 2011-02-11 07:50:13 -08:00
Sage Weil
1c320ebe65 Merge branch 'stable'
Conflicts:
	configure.ac
2011-02-11 13:41:56 -08:00
Sage Weil
2cd2c56dd0 v0.24.3 2011-02-10 09:49:28 -08:00
Hannu Valtonen
8284b6b08c Add python bindings for rados
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-02-09 09:40:28 -08:00
Sage Weil
dba7c1fd46 Merge branch 'testing' into unstable
Conflicts:
	configure.ac
	src/Makefile.am
	src/common/common_init.cc
	src/common/debug.h
	src/common/signal.cc
	src/config.cc
	src/mon/MDSMonitor.cc
	src/msg/SimpleMessenger.cc
	src/osd/OSD.cc
	src/osd/ReplicatedPG.cc
2011-01-25 08:50:58 -08:00
Sage Weil
f7572de5cb v0.24.2 2011-01-24 12:53:22 -08:00
Colin Patrick McCabe
ffb208e343 Makefile: use new Spirit headers where available
Use new boost::spirit header files where available, to eliminate the
annoying compiler warning on newer systems.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-01-24 07:44:48 -08:00
Colin Patrick McCabe
76a1e09a68 Makefile: remove unecessary header check
We already check for libcrypto++ using PKG_CHECK_MODULES; we don't need
to fish for header files.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-01-24 07:44:48 -08:00
Colin Patrick McCabe
f1d7af97f3 workunits: add direct_io_test
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-01-20 10:46:55 -08:00
Colin Patrick McCabe
9077fa5aea automake: check for libedit
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-01-18 02:51:59 -08:00
Sage Weil
6f946c869c Merge branch 'testing' into unstable
Conflicts:
	src/mds/journal.cc
2011-01-17 13:38:06 -08:00
Greg Farnum
a93b970ab1 C_Gather: Set debug #ifdefs to remove set.
This way when we're confident it works right, we can
remove the set<Context*> and just rely on ref counting.

Further optimizations would include using a spinlock
rather than a mutex, or possibly even just switching
sub_[created|existing]_count to be atomics.

Signed-off-by: Greg Farnum <gregf@hq.newdream.net>
2011-01-14 16:12:32 -08:00
Sage Weil
f650e3dac1 Merge branch 'testing' into unstable
Conflicts:
	configure.ac
2011-01-13 13:24:52 -08:00
Tommi Virtanen
9b0d577696 Use Google Test framework for unit tests.
Use ``make check`` to run the tests.

The src/gtest directory comes from ``svn export
http://googletest.googlecode.com/svn/tags/release-1.5.0 src/gtest``
and running "git add -f src/gtest".

gtest is licensed under the New BSD license, see src/gtest/COPYING.
For more on Google Test, see http://code.google.com/p/googletest/

Changed autogen.sh regenerate gtest automake files too. Make sure to
run ``./autogen.sh && ./configure`` after merging this commit, or
incremental builds may fail. The automake integration is inspired
heavily by the protobuf project, and may still be problematic.

Make git ignore files generated by gtest compilation.

Currently putting in just one new-style unit test, refactoring old
tests to fit will come in separate commits.

Note: if you are starting daemons, listening on TCP ports, using
multiple machines, mounting filesystems, etc, it's not a unit test
and does not belong in this setup. A framework for system/integration
tests will be provided later.
2011-01-10 15:19:45 -08:00
Sage Weil
630565f3ac v0.24.1 2011-01-07 16:50:15 -08:00
Sage Weil
7e83b570e4 Merge branch 'testing' into unstable
Conflicts:
	configure.ac
2011-01-03 10:24:47 -08:00
Sage Weil
180a417603 v0.24 2010-12-20 15:58:09 -08:00
Sage Weil
46242586ed Merge branch 'gceph' into unstable 2010-12-11 08:04:09 -08:00
Yehuda Sadeh
87545d0620 configure: detect crypto++ library 2010-12-06 15:25:34 -08:00
Yehuda Sadeh
f2424dfbd5 rgw: get rid of openssl altogether 2010-12-03 19:34:37 -08:00
Yehuda Sadeh
a28b449439 configure: check for the presence of libcrypto++ header files 2010-12-03 19:34:37 -08:00
Sage Weil
fe9fad7bea v0.25~rc 2010-11-30 16:25:50 -08:00
Jim Schutt
b54880e0f9 Detect broken system linux/fiemap.h
RedHat 5.5 has a /usr/include/linux/fiemap.h, but it is
broken because it does not itself include linux/types.h.
As a result, __u64 and friends are not defined.

We have a Ceph-local copy of fiemap.h, so use it
if the system version is broken.

While we're at it, fix up the configure message to
note we're using a local copy.

Signed-off-by: Jim Schutt <jaschut@sandia.gov>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-11-17 12:48:00 -08:00
Sage Weil
f8b3271f45 Merge branch 'rc' into unstable
Conflicts:
	configure.ac
	src/Makefile.am
2010-11-11 14:28:18 -08:00
Sage Weil
5d1d8d0c46 v0.23 2010-11-10 21:18:37 -08:00
Sage Weil
53b076d5fb Merge remote branch 'origin/rbd-fiemap' into unstable 2010-11-09 14:23:12 -08:00
Kacper Kowalik
1c7d8f1ac2 Makefile: use openssl module check
This allows ceph to build with --as-needed.

Signed-off-by: Kacper Kowalik <xarthisius@gentoo.org>
2010-11-09 13:30:15 -08:00
Sage Weil
deb9ef760e v0.24~rc 2010-11-07 09:44:04 -08:00
Colin Patrick McCabe
9f86a79d71 configure.ac: default to --enable-gtk
Default to enabling gtk rather than disabling it. Gracefully handle
cases where the user tries to enable it but it cannot be enabled.

Makefile.am: Add missing headers to noinst_HEADERS.

Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2010-10-29 12:40:15 -07:00
Michael McThrow
65fbd2ec93 Add the Ceph monitoring GUI
This adds a graphical monitoring mode to the ceph cluster monitoring tool.  Its
functionality is similar to ./ceph -w. With ./ceph -g, you can watch over the
whole cluster graphically. It uses GTK2.

Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2010-10-28 15:51:19 -07:00
Colin Patrick McCabe
a14dd819a4 configure.ac: add ./configure option for gtk2
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2010-10-26 20:59:01 -07:00
Sage Weil
2ed57d2a6d Merge remote branch 'origin/testing' into unstable
Conflicts:
	configure.ac
	src/rados.cc
2010-10-26 12:04:17 -07:00
Sage Weil
e912e686de v0.22.1 2010-10-23 10:49:50 -07:00
Sage Weil
8a7c95f60a v0.22 2010-10-15 15:34:44 -07:00
Sage Weil
430377be32 v0.23~rc (new unstable branch) 2010-10-06 14:33:21 -07:00
Greg Farnum
fc37591522 tcmalloc: add support for tcmalloc.
Right now it's only used on the MDS and OSD, but it can be added to mons too.
2010-08-06 15:02:26 -07:00
Yehuda Sadeh
823c36c290 autoconf: detect existence of linux/fiemap.h 2010-08-05 17:19:16 -07:00
Sage Weil
f3ac22ab17 bump unstable version to v0.22~rc 2010-07-29 09:38:50 -07:00
Sage Weil
090436f56a v0.21 2010-07-29 09:37:16 -07:00
Christian Brunner
f5c4fc61b6 fix FCGI detection and specfile
configure is building radosgw as soon as libfcgi is installed, even
if --without-radosgw is given. Here is a fix for configure.in and the
specfile.

Regards,
Christian

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-09 13:51:14 -07:00
Sage Weil
33bf1a2bc2 version: use next version ~rc for unstable branch
This makes unstable always sort after stable, testing releases:
  0.21~rc-unstable... > 0.20.1-testing...
2010-05-14 09:14:00 -07:00
Sage Weil
a846236ba5 configure: remove second AM_INIT_AUTOMAKE line 2010-04-28 15:55:22 -07:00
Greg Farnum
282b242828 atomic: reverse if test so we don't break things on separately-compiled librados 2010-04-23 15:13:35 -07:00
Sage Weil
5b6cfff36d Merge branch 'atomic' into unstable 2010-04-23 14:22:41 -07:00
Sage Weil
756b251bac v0.20 2010-04-23 12:10:24 -07:00
Jim Schutt
65ec0241ab autoconf: Fix detection of sync_file_range.
Without this patch, on CentOS 5.4 ./configure reports that
sync_file_range is missing, but HAVE_SYNC_FILE_RANGE ends
up being defined in src/acconfig.h anyway.

Compile tested on CentOS 5.4 (which does not have sync_file_range(2)
in distro glibc) and Fedora 11 (which does).

Signed-off-by: Jim Schutt <jaschut@sandia.gov>
2010-04-16 15:55:43 -07:00
Greg Farnum
ca74b4bb3d atomic_t: Add a new version based on libatomic_ops.
Hopefully this version will take less CPU since it isn't running Spinlocks, but
we'll need to test for that.
Includes appropriate Makefile and configure changes.
2010-04-14 16:54:48 -07:00
Greg Farnum
d1d6da3b4b atomic_t: Remove (never used) unstable commonc++-based version 2010-04-14 16:54:48 -07:00
Sage Weil
3a76b63f8d autoconf: detect sync_file_range(2) 2010-03-04 09:45:44 -08:00
Sage Weil
5e36574c6e 0.19.1 2010-03-02 10:47:00 -08:00
Sage Weil
98f5be53f8 v0.19 2010-02-17 13:53:06 -08:00
Sage Weil
2f10137986 v0.18 2009-12-04 10:10:32 -08:00
Sage Weil
44bab24dc1 makefile: don't link libm and libpthread with crush 2009-10-28 14:47:08 -07:00
Sage Weil
dac3a8c35f v0.17 2009-10-19 15:19:51 -07:00
Sage Weil
53ca2a8511 v0.16.1 2009-10-06 10:44:36 -07:00
Sage Weil
38dbaa5175 v0.16 2009-10-05 14:53:35 -07:00
Sage Weil
8848973ed6 configure: kill more commas
CentOS sucks!
2009-09-25 09:07:58 -07:00
Sage Weil
2f50017097 configure: no commas? 2009-09-25 09:06:30 -07:00
Sage Weil
1d9f1615ac configure: whitespace 2009-09-25 08:45:32 -07:00
Sage Weil
dfa34dbffa configure: fix libexpat1, libfcgi checks (again) 2009-09-25 08:43:03 -07:00
Sage Weil
ab3c421eb9 v0.15 2009-09-22 10:13:11 -07:00
Sage Weil
71c1f4f41c configure: don't link expat, fcgi to everything
The default AC_CHECK_LIB action is to add -lfoo to the linker args,
which we don't want!
2009-09-16 10:34:04 -07:00
Sage Weil
3b0a6c9a37 configure: fix radosgw conditional compilation 2009-09-10 13:48:12 -07:00
Sage Weil
1ec1e8d6fb v0.14 2009-09-08 14:47:25 -07:00
Sage Weil
2b32297267 v0.13 2009-08-24 10:45:14 -07:00
Sage Weil
a23e25f1d0 configure: check for expat for radosgw 2009-08-20 16:02:46 -07:00
Sage Weil
6a78671cd3 configure: fix --with-radosgw 2009-08-13 11:23:54 -07:00
Yehuda Sadeh
a7995b79d2 radosgw: rename files to use the generic name 2009-08-07 10:26:07 -07:00
Sage Weil
f524150822 v0.12 2009-08-05 14:12:00 -07:00
Sage Weil
5f7581d223 Makefile: skip hadoop client if jni.h not present 2009-07-23 16:17:41 -07:00
Sage Weil
9fa6f5e7d0 v0.11 2009-07-22 12:40:52 -07:00
Sage Weil
f324172bed configure.ac: cleanup 2009-07-17 21:19:31 -07:00
Sage Weil
007313fe84 v0.10 2009-07-15 14:07:37 -07:00
Sage Weil
67822ef05a s3gw: make compilation optional (./configure --with-s3gw) 2009-07-09 16:28:18 -07:00
Sage Weil
c9b39bbade mark v0.9 2009-06-18 13:31:04 -07:00
Sage Weil
79b06b2a15 autoconf: check for openssl dev files 2009-05-29 14:39:12 -07:00
Sage Weil
6fd390d3af rados: build librados, libcrush using libtool
Finally?
2009-05-11 21:06:14 -07:00
Sage Weil
7c344e689c start v0.8 2009-05-01 07:27:32 -07:00
Sage Weil
5d466719ec start v0.7.3 2009-04-02 15:07:36 -07:00
Sage Weil
d67a4638d9 configure: check for histedit.h (libedit-dev) 2009-03-17 11:30:41 -07:00
Sage Weil
dbe3d7b4e9 bump version to v0.7.2 2009-03-16 11:04:13 -07:00