Commit Graph

14028 Commits

Author SHA1 Message Date
Colin Patrick McCabe
604e76f534 test-obsync.py: add tests with --no-preserve-acls
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-26 10:07:16 -07:00
Sage Weil
a31a6c12d1 objectstore: drop decode support for <= v0.19 encoded transactions
This only affects online upgrade or journal replay of v0.19 generated
transactions.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-04-26 09:53:08 -07:00
Sage Weil
08265b1d74 mon: fix pg stat summary
Had the pg state counts in there twice.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-26 09:53:03 -07:00
Sage Weil
9b30040d94 mds: undump-journal
Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-26 09:40:15 -07:00
Sage Weil
a4c0cfaca2 buffer: break out read_fd method
Read N bytes from the provided fd into the bufferlist.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-26 09:40:03 -07:00
Yehuda Sadeh
55ae580e0c rgw: check if bucket is empty before removing it 2011-04-25 17:15:05 -07:00
Colin Patrick McCabe
87ad8da63a obsync: another fix for --no-preserve-acls
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-25 16:39:57 -07:00
Colin Patrick McCabe
010cc35dbd obsync: fix bug in --no-preserve-acls
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-25 16:03:42 -07:00
Greg Farnum
dcca146067 mds: Don't twiddle lock states in the middle of an import.
This should have gone in a028c8954c.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-04-25 15:09:02 -07:00
Sage Weil
3f8204136a Merge branch 'stable'
Conflicts:
	src/mds/MDLog.cc
	src/osdc/Journaler.cc
	src/osdc/Journaler.h
2011-04-25 14:34:49 -07:00
Yehuda Sadeh
904af336e5 rgw: send content length on put operation 2011-04-25 14:32:16 -07:00
Sage Weil
e8847b2cdd mds: only move the journaler expire_pos forward
We were seeing weird trim errors because expire_pos was getting moved
backwards after a standby-replay -> replay transition.  Make sure the two
places that update the expire_pos only move it forward--never backward.

Fixes: #1023
Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-25 14:14:41 -07:00
Sage Weil
b31400d75f mds: always trim standby segments after rereading the head
When we re-read the head we may get an expire_pos that has moved forward in
time.  That is the appropriate time to trim segments during standby-replay.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-25 14:14:41 -07:00
Sage Weil
68bafc0665 mds: only write head once after expiring logsegments
Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-25 14:14:41 -07:00
Sage Weil
746447327e mds: small journaler cleanups
Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-25 14:14:41 -07:00
Sage Weil
885acf58c3 journaler: separate out trimmed_pos setter
Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-25 14:14:41 -07:00
Sage Weil
6cc6788066 mds: wait for blacklisting osdmap on standby-replay -> replay final pass
Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-25 14:14:41 -07:00
Colin Patrick McCabe
a59153eee0 librados python binding: always use 64-bit offsets
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-25 11:07:09 -07:00
Colin Patrick McCabe
57cfd7673d pybind-rados: fix read API
Read should have the arguments in the same order as pread.
Add a test for reading from a nonzero offset.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-25 11:05:44 -07:00
Colin Patrick McCabe
6b830d8b8f hypertable: update bindings to use new libceph API
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-25 11:05:44 -07:00
Colin Patrick McCabe
8cb9018314 hadoop: re-add ceph_set_default_preferred_pg
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-25 11:05:44 -07:00
Sage Weil
5b4690d8c5 libceph: re-add set_default_preferred_pg
Hadoop needs it.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-25 11:05:44 -07:00
Colin Patrick McCabe
e8ac7b5cb3 hadoop: get hadoop bindings to build again
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-25 11:05:44 -07:00
Colin Patrick McCabe
4ebf73def1 Client.cc: fix mode/flags confusion
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-25 11:05:44 -07:00
Colin Patrick McCabe
34a72e1f0b libceph: Remove *_precise
In Linux, struct stat includes nanosecond resolution already. No need to
create a separate stat structure that duplicates the fields of struct stat.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-25 11:05:44 -07:00
Sage Weil
0da60eadd7 client, libceph: clean up layout methods
Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-25 11:05:44 -07:00
Colin Patrick McCabe
ed7c583eb0 CephFSInterface: don't include Timer.h
We don't use it.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-25 11:05:44 -07:00
Colin Patrick McCabe
4d41507183 hadoop: convert to new libceph interface
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-25 11:05:43 -07:00
Colin Patrick McCabe
e9fb106a59 do_autogen: add -H for --with-hadoop
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-25 11:05:43 -07:00
Colin Patrick McCabe
0bd7ee506e do_autogen.sh: don't clear CFLAGS, CXXFLAGS
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-25 11:05:43 -07:00
Colin Patrick McCabe
f7e515504a testceph: add more tests
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-25 11:05:43 -07:00
Colin Patrick McCabe
d3c0b42037 libceph: fix some bugs
Fix some bugs in libceph and testceph.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-25 11:05:43 -07:00
Colin Patrick McCabe
529ef2d566 libceph: avoid DIR*, combine connect and mount
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-25 11:05:43 -07:00
Colin Patrick McCabe
66b84fa786 hadoop: whitespace fixes
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-25 11:05:43 -07:00
Colin Patrick McCabe
bff3004f50 Client: unmount should not be able to fail
If unmount fails, what is the API users supposed to do?
The client needs to be able to clean up after itself.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-25 11:05:43 -07:00
Colin Patrick McCabe
54782bf91e libceph API change
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-25 11:05:43 -07:00
Tommi Virtanen
e38fc4f243 mkcephfs: Fail if there are no mons defined.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-25 10:21:54 -07:00
Tommi Virtanen
21504a06dc mkcephfs: Fail if a mon has no address set.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-25 10:21:39 -07:00
Tommi Virtanen
3207c5df64 mkcephfs: Remove temp dir, not just its contents.
Also fixes the case where no temp files were created in the dir.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-25 10:20:34 -07:00
Sage Weil
829ca52616 journaler: fix flush completion when nothing to flush
Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-25 10:01:31 -07:00
Sage Weil
aca14f99af journaler: default to readonly; fix asserts
Previously were were never in a readonly state, which made all the existing
asserts meaningless.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-25 09:44:17 -07:00
Sage Weil
0c38da26ef vstart.sh: fix -s
Signed-off-by: Sage Weil <sage@newdream.net>
2011-04-25 09:14:09 -07:00
Sage Weil
a6ac930361 mon: consisder osd recovery state in health check
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-04-23 21:05:12 -07:00
Sage Weil
2f95d92094 mon: include unfound count in pg recovery summary
Fixes: #1003
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-04-23 21:04:52 -07:00
Sage Weil
52b7481197 mon: fix up osd health report
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-04-23 16:02:13 -07:00
Sage Weil
a9d12cb50a mon: fix up pg health report
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-04-23 15:08:39 -07:00
Sage Weil
70640bf185 mon: generalize health check a bit
Any PaxosService can return a status (or not).

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-04-23 15:07:32 -07:00
Sage Weil
fcf095c7a6 Merge branch 'master' of ssh://ceph.newdream.net/home/sage/ceph.newdream.net/git/ceph 2011-04-23 13:09:49 -07:00
Colin Patrick McCabe
4368e974b9 Makefile.am: add -fno-strict-aliasing
Until we audit every place we have a typecast to make sure it's safe,
this should be off.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-22 17:22:18 -07:00
Colin Patrick McCabe
4fe53fcab3 Makefile.am: Wpointer-arith, Wstrict-null-sentinel
Add Wpointer-arith, Wstrict-null-sentinel, Winit-self

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