Commit Graph

13924 Commits

Author SHA1 Message Date
Tommi Virtanen
eb08daaba2 libceph: Make header usable from plain old C.
Fixes: #986
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 14:53:45 -07:00
Tommi Virtanen
eee1f920e4 crush: Remove dead code.
The Makefile never integrated with the surrounding automake
setup, and is unused.

The test helper has failed to compile for quite a long time.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 14:42:05 -07:00
Alexandre Oliva
c494689062 Don't crash during initialization when working without an osd journal.
Signed-off-by: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-07 14:35:27 -07:00
Tommi Virtanen
aefa10464f crush: Remove dead code.
Looks like these never went anywhere.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 14:34:37 -07:00
Wido den Hollander
38c6831c38 radosgw: Remove PHP setting from VirtualHost documentation
Signed-off-by: Wido den Hollander <wido@widodh.nl>
Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-07 14:32:31 -07:00
Tommi Virtanen
05596d7e62 osd: Remove dead code.
RAID4PG has been "temporarily ripped out" for 3.5 years.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 14:25:12 -07:00
Tommi Virtanen
f81b505c37 msg, os: Remove dead code.
Looks like these never went anywhere.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 14:22:39 -07:00
Colin Patrick McCabe
033e29a49d test-obsync.py: add test for --follow-symlinks
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-07 14:22:30 -07:00
Colin Patrick McCabe
2506819d90 test-obsync: some fixes, be more verbose
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-07 14:22:30 -07:00
Colin Patrick McCabe
2653361007 boto_tool.py: fix rmbucket
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-07 14:22:30 -07:00
Colin Patrick McCabe
42975b12de obsync: add --follow-symlinks
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-07 14:22:30 -07:00
Greg Farnum
9599b66fba ReplicatedPG: tolerate ENOENT when statting.
This got broken in commit f842bcf893
so that on any MDS restart the OSD would die. Bad OSD! Bad!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-04-07 14:37:23 -07:00
Tommi Virtanen
a66da4af25 qa: Remove fsx workunit.
Covered better by autotest, these days.
2011-04-07 14:07:24 -07:00
Tommi Virtanen
d55e98b520 common, msg: Remove dead code.
Looks like these never went anywhere.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 14:06:53 -07:00
Tommi Virtanen
4537d92d9a crush.old: Remove dead code.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 13:45:04 -07:00
Tommi Virtanen
e01cd3b558 ebofs: Remove dead code.
Nothing has used the EboFS object storage in years.

Fix usage string of dupstore.

FileJournal and Journal are now part of OSD proper, not
EboFS.

The old scripts in src/jobs are probably broken, but
not touching them further right now.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 12:40:26 -07:00
Tommi Virtanen
b293d45114 osbdb: Remove dead code.
Nothing has used the BerkeleyDB-backed object storage in years.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 12:24:06 -07:00
Tommi Virtanen
78716a4c3f clitest: Disabled problematic rados test, for now.
Failed on gitbuilder due to odd libtool interaction.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 12:03:36 -07:00
Tommi Virtanen
fe1572795c clitest: Add more simple basic functionality tests.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 11:12:38 -07:00
Tommi Virtanen
8c30f535d3 librados-config: Distribute the librados-config.8 manpage.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 10:58:47 -07:00
Tommi Virtanen
536ae0caa7 librados: Stop bundling the now-unused headers.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 10:53:19 -07:00
Tommi Virtanen
bcacb13751 buffer: Move atomic.h include from buffer.h to buffer.cc
Fix up other places that failed to include atomic.h even
if they used atomic_t directly.

Fixes: #979
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 10:53:19 -07:00
Tommi Virtanen
699c6949f9 buffer, atomic: Explicitly include assert.h where asserts are used.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 10:53:19 -07:00
Tommi Virtanen
c26158bfd0 buffer: Move buffer::raw* out of the header.
This paves the way for getting librados.hpp clean of atomic_t
leaking to client code.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 10:53:19 -07:00
Tommi Virtanen
ce76798404 buffer: Move functions touching buffer::raw internals into buffer.cc
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 10:53:19 -07:00
Tommi Virtanen
2bd9ce11b3 buffer: Move functions touching buffer::raw internals into buffer.cc
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 10:53:19 -07:00
Tommi Virtanen
a752d83e3f buffer: Move functions touching buffer::raw internals into buffer.cc
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 10:53:19 -07:00
Tommi Virtanen
f0f4b80f6f buffer: Move functions touching buffer::raw internals into buffer.cc
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 10:53:19 -07:00
Tommi Virtanen
14cff95885 buffer: Move functions touching buffer::raw internals into buffer.cc
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 10:53:19 -07:00
Tommi Virtanen
4878575076 buffer: Move functions touching buffer::raw internals into buffer.cc
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 10:53:19 -07:00
Tommi Virtanen
3a80cc62cf buffer: Move buffer accounting into functions, don't expose atomic_t.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 10:53:19 -07:00
Tommi Virtanen
456f2fc55d pybind: Distribute the test script, too. Fixes "make distcheck".
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-07 10:53:19 -07:00
Sage Weil
e5fce7b8c6 Revert "mds: rip out rename linkmerge support"
This reverts commit d467fbfd17.

The linkmerge stuff _is_ needed for reintegrating multi-linked stray
inodes back into the hierarchy.  E.g.,

 touch a
 ln a b
 rm a

The MDS will want to renamed the stray inode to the b dentry.

Conflicts:

	src/mds/Server.cc

Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-06 16:34:36 -07:00
Colin Patrick McCabe
7470cc4eb5 config: complain if --name gives an invalid type
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-06 12:35:38 -07:00
Colin Patrick McCabe
cbb4861be5 ConfFile: add support for backslashes
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-06 11:51:07 -07:00
Colin Patrick McCabe
24caedc8f5 pybind: install ceph-pybind-test on debug builds
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-05 17:45:11 -07:00
Sage Weil
31496495a6 rgw: fix decl vs goto error 2011-04-05 15:18:14 -07:00
Colin Patrick McCabe
64185b6878 conf: small code cleanups
md_config_t: store a ConfFile by value rather than by pointer.

ConfFile::parse_file: negate error when returning errors.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-05 14:41:25 -07:00
Sage Weil
2dcfe21416 osd: fix signed/unsigned comp
warning: osd/ReplicatedPG.cc:1208: comparison between signed and unsigned integer expressions

Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-05 14:39:14 -07:00
Colin Patrick McCabe
f3a00ce610 ConfUtils: new parser
A new parser for ConfUtils that outputs a list of syntax errors when
files are wrong.

It also checks that configuration files are valid utf-8 and don't contain
embedded nulls.

Also added a few more unit tests.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-05 14:12:27 -07:00
Sage Weil
f842bcf893 osd: simplify stat
We don't actually need to stat the object (again) since we have the size
(and mtime) in the object_info_t.  Keep the existing stat in there, tho,
and assert the answer matches for the time being, since I saw behavior
that suggested they were out of sync.  See #933.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-05 12:36:10 -07:00
Sage Weil
b0f817ac19 osd: process missing when log is empty
There are important cases where the replica will send a missing set and
empty log to the primary during peer (e.g., when the primary asks for it).
In that case, we need to go into pg->proc_replica_log so that peer_missing
gets updated and peering can complete.  It is okay from proc_replica_log's
perspective to pass in an empty log; it will have no effect.  Fix the
if() guard appropriately.

Note that the only path into _process_pg_info where missing is NULL is
the handle_pg_info path, which is used for primary->replica "activate now"
messages, updates after already active, and for replica->primary "ok i
activated" messages.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-05 11:57:27 -07:00
Josh Durgin
0139be7e7f librbd: remove unnecessary includes
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-04-04 21:10:17 -07:00
Colin Patrick McCabe
b6084cf916 config: expand metavariables when needed
md_config_t::get_val_from_config_file now has an option that causes it
to expand metavariables. This is necessary because many callers want
metavariables to be expanded in the results they get back.

md_config_t::set_val should expand metavariables.

Remove some unecessary typecasts from
md_config_t::get_val_from_config_file()

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-04 14:00:25 -07:00
Colin Patrick McCabe
94fade29af config: add ability to complain about parse errs
Change the ConfUtils interface so that we have a way to return
information about parse errors.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-04 14:00:22 -07:00
Colin Patrick McCabe
4a27cec8d3 confutils: test unicode parsing
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-04 14:00:20 -07:00
Colin Patrick McCabe
0e26ece4e3 config: fix metavariable substitution
common_init: Do metavariable expansion as a separate step after the
configuration, argv, and env have been read. This ensures that we get
the correct values for the metavariables.

Change librados to follow suit.

config: Enforce the "no metavariables in default values" restriction.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-04 11:51:00 -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
Colin Patrick McCabe
3227405061 config: remove some unecessary g_conf references
Class methods of md_config_t should refer to the enclosing config.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-04 09:25:37 -07:00