Sage Weil
52e544bf45
mon: return correct state machine epoch in replies
2010-05-13 10:47:07 -07:00
Sage Weil
ecc4f68679
testrados: fix aio api usage
2010-05-13 10:46:47 -07:00
Sage Weil
c3a8adaa57
librados: implement rados_stat_pool()
2010-05-13 10:46:38 -07:00
Sage Weil
4ee1e26125
Merge branch 'unstable' of ceph.newdream.net:git/ceph into unstable
2010-05-12 16:13:36 -07:00
Sage Weil
e741d43fdf
rados: fix typo
2010-05-12 16:13:03 -07:00
Sage Weil
342fc87191
osd: add CEPH_PG_MAX_SIZE to header
2010-05-12 16:06:56 -07:00
Sage Weil
7f43cf8a87
filestore: update btrfs ioctl.h
2010-05-12 16:06:52 -07:00
Sage Weil
856bdf2f21
client: un-"fix" u64 types in client/ioctl.h
2010-05-12 16:06:49 -07:00
Sage Weil
c9b1aee18e
msgr: fix possible overflow when sending seq
2010-05-12 16:06:45 -07:00
Sage Weil
65074e5a6b
msgr: print message encoding version to aid debugging
2010-05-12 16:06:41 -07:00
Yehuda Sadeh
afa1993e02
ceph_strings: checkpatch fix
2010-05-12 15:10:04 -07:00
Yehuda Sadeh
80dcc28a46
ceph_fs.h: checkpatch fixes
2010-05-12 15:10:04 -07:00
Yehuda Sadeh
a902bf027c
cmpxattr: null termination fixes
2010-05-12 15:10:04 -07:00
Sage Weil
07fdde4b48
rados: add 'tmap dump'
2010-05-12 11:55:17 -07:00
Sage Weil
b5029166d5
osd: set obs.exists in projected object state during recovery
2010-05-12 11:55:13 -07:00
Sage Weil
dbcb4f8223
mds: warn, don't crash, on trailing garbage in dir objects
2010-05-12 11:55:10 -07:00
Sage Weil
8fbabe03e1
msgr: put msgvec on heap
...
It can get too big for the stack.
2010-05-11 21:30:19 -07:00
Sage Weil
876a0ccdee
msgr: tolerate incoming seq #'s that skip ahead
...
This is necessary because the kclient may pull messages out of the out/sent
queues, and we can't renumber previously sent (and possibly received)
messages without breaking things entirely.
2010-05-11 21:14:39 -07:00
Sage Weil
a576e6e27d
ceph: return error code returned by server
2010-05-11 14:46:14 -07:00
Sage Weil
12f7c0b400
mds: drop 'closed' bit from MClientReconnect
2010-05-11 13:28:53 -07:00
Sage Weil
7a23b5fbd1
msgr: set outgoing msg connection before encoding
...
This allows encode_payload to adjust behavior based on the target peer's
feature bits.
2010-05-11 13:13:24 -07:00
Sage Weil
f6c2e1c49a
poolop: make new encoding backward compatible
...
This makes cea221c64
behave when messages using the old encoding (that is,
older versions of the client talk to us).
2010-05-11 09:59:23 -07:00
Sage Weil
ffc3e63fa1
osd: fix compile error from cmpxattr, cleanup.
...
I think the xattr bufferlist still needs to be null terminated...
2010-05-11 09:36:16 -07:00
Sage Weil
0ebf259999
osd: fix layout return type
2010-05-11 09:36:16 -07:00
Sage Weil
4a7118e220
msgr: be less noisy about msgr throttling
2010-05-11 09:36:15 -07:00
Yehuda Sadeh
f857a2e138
osd: add cmpxattr op handling
2010-05-10 16:18:52 -07:00
Sage Weil
4d667dde83
debian: remove pull.sh calls from helper .sh scripts
2010-05-10 16:00:22 -07:00
Sage Weil
324fe8273a
atomic: cast away const on read()
...
(Only needed to build on lenny, this can go away someday)
2010-05-10 15:53:52 -07:00
Sage Weil
99cdd5251d
osd: 'stop' command
2010-05-10 13:40:39 -07:00
Sage Weil
d37c9dc495
mds: fix max_size==1 bug
...
We should provide a minimum of one stripe unit.
2010-05-07 15:57:37 -07:00
Sage Weil
4d2d5d03b1
Merge branch 'string' into unstable
...
Conflicts:
src/client/Client.h
src/messages/MAuthReply.h
src/messages/MClientLease.h
src/osd/ReplicatedPG.cc
src/osd/osd_types.h
src/osdc/Journaler.h
2010-05-07 15:00:22 -07:00
Sage Weil
6f00c8f71f
types: clean up printf format warnings
...
bah
2010-05-07 14:55:31 -07:00
Sage Weil
0aa2208f32
rgw: clean up dup #define
2010-05-07 14:50:20 -07:00
Sage Weil
edc92490b5
types: standardize on uint64_t
...
The problem is that on some platforms __u64 == uint64_t (x86_64), and on
others it's doesn't (ppc64). Which means we don't know whether to define
different versions of overloaded functions for both types or just one.
So, standardize on uint64_t. This plays nicer with STL, which defines
hash<uint64_t> on 64 bit arches but not 32 bit. Which means we can't
standarzie on __u64 or else hash<__u64> won't work. Bah!
2010-05-07 14:50:20 -07:00
Sage Weil
737b504357
endian: simplify __le* type hackery
...
Instead of preventing linux/types.h from being included, instead name
our types ceph_le*, and remap using #define _only_ when including the
shared kernel/userspace headers.
Also redefine some templates for both __u64 and uint64_t, which are
apparently not the same on x86_64.
2010-05-07 14:50:20 -07:00
Sage Weil
2741e1833a
ceph.spec.in: --without-hadoop --without-debug
...
to sync up with f13
2010-05-07 14:50:20 -07:00
Yehuda Sadeh
91b9f01aae
rbdtool: --list on empty pool returns correct message
...
and also command doesn't hang. This fixes bug #115 .
2010-05-07 13:49:13 -07:00
Sage Weil
404938c46f
time: include _ between date and time
2010-05-07 11:58:22 -07:00
Sage Weil
a8579ebd79
osd: remove bad assert in get_object_context()
...
This has always been fishy, and it's original purpose isn't quite clear.
The '!obc->obs.ssc' is clearly the create case, but the head_exists check
is only the case if we are getting the context for a _head, which in
many cases we're not. In parituclarly, it fails for a snapped object
where the head doesn't exist. We _do_ have teh ssc (from the _snapdir
object) but there is no head.
Just remove the assert entirely.. it's not clear what it's really catching.
2010-05-07 11:58:21 -07:00
Sage Weil
906d3e6740
mds: always release snap cap after flushsnap
...
The old condition makes no sense. It appears to have been broken since
2008, commit a5d5e679? Yikes.
The problem is that a flushsnap will 'release' the caps, but still leave
an open Capability on the CInode. Then, CInode::encode_inodestat() would
& issued() when issuing caps, and a client ceph_open() would get no
caps. The kclient is fixed up to at least not crash in that case, but even
with the fix it deadlocked.
2010-05-07 11:58:16 -07:00
Sage Weil
76e40e3dfe
osd: don't put() null ctx->op (message)
2010-05-07 09:34:48 -07:00
Sage Weil
8580aa596b
scripts: fix check_pglog.sh
2010-05-07 09:05:14 -07:00
Sage Weil
fe7a8be13b
script: add check_pglog.sh
...
Check pglog for zero segments, normally caused by a race between
pg log replacement (rm log, rewrite log) vs append race.
For example, see 686192a03e
2010-05-07 08:52:18 -07:00
Sage Weil
a290fc5720
mdsmap: lose angle braces, use tabs
2010-05-06 15:30:14 -07:00
Sage Weil
f0e6af935c
osdmap: initially osds don't exist; create them as they boot
2010-05-06 15:27:07 -07:00
Sage Weil
dc24ab0dac
osd: resurrect CEPH_OSD_EXISTS flag
...
Mainly so we can track how many osds are in the cluster, even if they
don't start at 0.
2010-05-06 14:04:35 -07:00
Sage Weil
1959f87496
logger: be more careful calculating variance
2010-05-06 11:30:38 -07:00
Sage Weil
a8fa5286f6
debian: use 'testing' or 'unstable' in place of 'git' in version suffix
2010-05-06 11:30:25 -07:00
Sage Weil
e9cc4a37ae
librados: separate callbacks for aio ack/complete and safe
2010-05-06 11:30:25 -07:00
Sage Weil
66350d2b2b
osd: clear pg REPLAY when we reinitiate peering
...
Among other things, a stray/bad REPLAY flag can trigger a false activation
like so:
osd/PG.cc: In function 'void PG::activate(ObjectStore::Transaction&, std::list<Context*, std::allocator<Context*> >&, std::map<int, MOSDPGInfo*, std::less<int>, std::allocator<std::pair<const int, MOSDPGInfo*> > >*)':
osd/PG.cc:1641: FAILED assert(peer_info.count(peer))
1: (PG::activate(ObjectStore::Transaction&, std::list<Context*, std::allocator<Context*> >&, std::map<int, MOSDPGInfo*, std::less<int>, std::allocator<std::pair<int const, MOSDPGInfo*> > >*)+0x817) [0x75e637]
2: (OSD::activate_pg(pg_t, utime_t)+0x136) [0x6bfe86]
3: (OSD::check_replay_queue()+0x134) [0x6c0074]
4: (OSD::tick()+0x1db) [0x6d96eb]
5: (OSD::C_Tick::finish(int)+0x1c) [0x74844e]
6: (SafeTimer::EventWrapper::finish(int)+0x6d) [0x7fa2cf]
7: (Timer::timer_entry()+0x454) [0x7fb52a]
8: (Timer::TimerThread::entry()+0x19) [0x647c09]
9: (Thread::_entry_func(void*)+0x20) [0x659f18]
10: /lib/libpthread.so.0 [0x7fceb73d473a]
11: (clone()+0x6d) [0x7fceb65fe69d]
2010-05-06 11:31:05 -07:00