Commit Graph

16 Commits

Author SHA1 Message Date
Sage Weil
4b09c1ad45 osdN -> osd.N
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-09-27 21:34:44 -07:00
Colin Patrick McCabe
ff626f0ea9 bufferlist: get rid of derr usage
bufferlist doesn't need to use dout/derr. Only one function used it, and
that was only to return an error string.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-20 16:22:26 -07:00
Colin Patrick McCabe
431a5bf7c3 Rename config.h -> common/config.h
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-02-23 10:17:30 -08: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
Greg Farnum
212a9fd6a6 OSDMap: get_pg_pool now returns a pointer
This lets us return NULL if the pool isn't in the map, which is
needed functionality for pool deletion. Meanwhile, code which
expects the pool to exist will continue to cause a crash if it doesn't.
2010-02-16 09:27:41 -08:00
Yehuda Sadeh
fa0a0c5bdf replace sprintf with snprintf all around
Also pass buffer size to relevant functions when required.
2010-01-14 16:11:51 -08:00
Sage Weil
a4bfaa6e0c psim: ifdef out dead code 2009-08-11 16:14:41 -07:00
Sage Weil
55e713b553 psim: calc stddev 2009-08-04 15:33:36 -07:00
Sage Weil
bc58419f99 crush: fix crush_perm_choose; optimize r=0 case.
This was misbehaving for x=0, among other things.

Avoid filling in perm array for the initial (p)r=0 call.  We only
need to do a full permutation for subsequent r.
2009-05-13 16:46:20 -07:00
Sage Weil
0c2871fb0d psim: count result set sizes 2009-05-13 14:57:14 -07:00
Sage Weil
1f1eeff5b8 makefile: make --with-debug work, fix build errors 2008-10-31 12:49:46 -07:00
Sage Weil
f8ec9d6c03 psim: test localized placement groups 2008-09-18 14:30:47 -07:00
Sage Weil
466d94f8ab osd: replay cleanup, send_alive fix 2008-05-19 21:28:42 -07:00
Sage Weil
d141049572 automagic endian conversions for userland 2008-04-30 11:20:21 -07:00
Sage Weil
26901950d3 kclient: invalidate pages outside i_lock; carry inode ref for delayed work 2008-04-15 19:41:27 -07:00
Sage Weil
a1abca48fa psim crush placement sim 2008-04-15 10:07:23 -07:00