Sage Weil
f59d77be82
objectstore: track offset, alignment of largest data segment [encoding change]
2010-06-18 12:46:23 -07:00
Sage Weil
0995f28fe2
buffer: list::rebuild_page_aligned()
...
Rebuild bufferlist such that all segments/ptrs are page sized/aligned.
(Avoids copying/reallocating segments that are already aligned.)
2010-06-18 12:44:57 -07:00
Greg Farnum
25116b2738
client: if checking caps on a snap, return, don't assert
2010-06-18 11:38:45 -07:00
Sage Weil
bd4188a02a
filejournal: use buffer::write_fd() instead of open coding
...
Avoid dup code, and also handle short writes.
2010-06-18 10:10:53 -07:00
Sage Weil
ca9b756399
osd: implement bench command
...
'bench [bsize] [total bytes]'
Result is reported via logclient.
2010-06-18 09:40:01 -07:00
Sage Weil
e4b9dd4bba
msgr: avoid calculating data crc is peer didn't either
...
Otherwise we're just wasting CPU cycles!
2010-06-18 09:19:20 -07:00
Simone Gotti
2bb94b3626
msgr: Fix crash in policy.throttler->get(message_size) when message_size == 0
...
Signed-off-by: Simone Gotti <simone.gotti@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-18 08:34:14 -07:00
Sage Weil
35095434d9
qa: another mds test fix... wait long enough for the previous death to trigger
2010-06-17 13:44:12 -07:00
Sage Weil
c6067131bd
msgr: ref count Pipe to avoid use after free
...
The Connection has a Pipe pointer to facilitate
send_message(Message, Connection)
but the reaper() clears that pointer when tearing down old pipes. This
leads to a race in which submit_message dereferences the old Pipe pointer.
Instead, make Pipe ref counted, and only submit_message() if we get a
valid Pipe reference. This fixes races between send_message() and
reaper() (as well as any use of the Connection after the pipe is closed).
Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-17 13:37:34 -07:00
Sage Weil
920b2d8974
qa: fix mdstable failure tests
2010-06-17 13:09:22 -07:00
Sage Weil
4d66a72a5a
ceph: fix straggler header ifdef guards
2010-06-17 10:51:40 -07:00
Markus Elfring
f4b9d9d847
Bug #98 : Unique names for include guards
...
A couple of preprocessor symbols for include guards tampered with the reserved namespace.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-17 10:47:37 -07:00
Sage Weil
6de2dde762
ceph: remove leading _ from macro
...
Reported-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-17 10:36:39 -07:00
Markus Elfring
9013832c5d
Bug #98 : Movement of an underscore for a data structure identifier
...
A leading underscore was moved to the back of a data structure identifier.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-17 10:34:11 -07:00
Sage Weil
f6501564a9
Merge branch 'unstable' of ssh://ceph.newdream.net/home/sage/ceph.newdream.net/git/ceph into unstable
2010-06-17 10:04:20 -07:00
Sage Weil
57d79aaa5f
Revert "mkcephfs: cosd mkfs as root, then chown"
...
This reverts commit 0383878c4f
.
2010-06-17 10:13:04 -07:00
Sage Weil
081bbe15a5
mds: fix cdir head/snap items/null accounting
...
We were mixing up primary vs remote, partly due to the weird placement of
the counter adjustments. Make those sane and clean things up a bit.
2010-06-17 10:13:04 -07:00
Sage Weil
e6b033acbc
osd: make clean_up_local remove hardlinks from collection dirs
2010-06-17 10:13:04 -07:00
Sage Weil
af2d023caa
osd: don't requeue null OSDOp on apply_and_flush_repops
...
(this triggers during snap trimming)
2010-06-17 10:13:04 -07:00
Sage Weil
8c5ee65b21
osd: fix snap_trimmer AccessMode interaction
...
Recheck access mode every time we retake the pg lock (each object). Sleep
if necessary.
2010-06-17 10:13:04 -07:00
Sage Weil
f976bbdcf7
filejournal: journal write cache is safe on >= 2.6.33
2010-06-17 09:29:36 -07:00
Sage Weil
583f9f4296
mkcephfs: error out of journal dev is included in btrfs devs
2010-06-17 09:29:36 -07:00
Sage Weil
b472722940
osd: optionally periodically check pglog for corruption
...
...at least until we find this bug, periodically check pglog for corruption
and log it to the monitor when it happens.
Off by default.
2010-06-17 09:29:36 -07:00
Sage Weil
b30ff1710a
logclient: clean up interaction with monclient, monitor
...
Use monclient where available. Otherwise, we are a monitor, so send to
ourselves.
Conflicts:
src/mon/MonmapMonitor.cc
2010-06-17 09:29:36 -07:00
Sage Weil
d7b9f39d9a
filejournal: log if journal item is larger than journal
2010-06-16 14:15:10 -07:00
Yehuda Sadeh
5dfc4119fc
osd: warn when failing to mount journal on ENOTTY
...
suggest that the problem was due to journal size not configured
2010-06-16 10:53:08 -07:00
Yehuda Sadeh
5c001f4e5c
conf: can specify environment variables for substitution
2010-06-16 10:14:20 -07:00
Yehuda Sadeh
d5995661ea
conf: fix buffer initalization
...
This fixes a bug where we didn't initialize the variable
post processing buffer, which would sometimes lead to
garbage data.
2010-06-16 10:14:20 -07:00
Yehuda Sadeh
ce909c2c31
osd: error out when failing to read journal header
...
This fixes bug #201 .
2010-06-16 10:13:59 -07:00
Yehuda Sadeh
d971bb06f5
osd: mkfs failures are colored red
2010-06-14 12:22:54 -07:00
Sage Weil
658d51dae1
mon: make send_reply always consume reply ref (even if not sent); fix caller hackery
2010-06-11 10:12:24 -07:00
Sage Weil
e5ff518946
mds: add force_wrlock to lock states; use for filemax changes
...
This lets us write out a max_size change when we revoke caps from a client
(thus excl->sync) and the client releases dirty caps.
2010-06-11 10:12:24 -07:00
Yehuda Sadeh
3336d9d0fa
rgw: put_obj uses write_full
2010-06-10 16:01:34 -07:00
Yehuda Sadeh
0b0009cfe8
cls_rbd: use write_full when writing image header
2010-06-10 15:26:39 -07:00
Yehuda Sadeh
5d2e85d24a
class: implement write_full interface
2010-06-10 15:26:08 -07:00
Yehuda Sadeh
f34c5b9197
cls_rbd: fix snapshots seq number
2010-06-10 14:45:40 -07:00
Yehuda Sadeh
912e3c8524
osd: fix rollback when head points at the rolled back snapshot
2010-06-10 14:45:40 -07:00
Yehuda Sadeh
ae5bb84278
cclass: add some options
2010-06-10 14:45:40 -07:00
Yehuda Sadeh
3bb153c3b3
class: modify startup scripts to add classes on mon startup
2010-06-10 14:45:40 -07:00
Yehuda Sadeh
7584fef128
class: modify scripts, fix configuration
2010-06-10 14:45:40 -07:00
Yehuda Sadeh
e737e635c6
class: more flexible class loading, new cclass.sh script
2010-06-10 14:45:40 -07:00
Yehuda Sadeh
65371482dd
class: able to add classes when doing mkfs
2010-06-10 14:45:40 -07:00
Yehuda Sadeh
d87c057f50
cclsinfo.sh: better architecture detection
2010-06-10 14:45:40 -07:00
Yehuda Sadeh
057ccbbf70
cclsinfo.sh: shell script to dump class info
2010-06-10 14:45:40 -07:00
Yehuda Sadeh
203af22e74
cls: export relevant functions
2010-06-10 14:45:40 -07:00
Yehuda Sadeh
d071cb1c78
cclsinfo: replace error message
2010-06-10 14:45:40 -07:00
Yehuda Sadeh
e3b23bd069
cclsinfo: some fixes
2010-06-10 14:45:40 -07:00
Yehuda Sadeh
80d2afc1a8
cclsinfo: utility to display class information
2010-06-10 14:45:40 -07:00
Yehuda Sadeh
94308d13fb
cls-rbd: some adjustments, debug info
2010-06-10 14:45:39 -07:00
Yehuda Sadeh
e297aa0b25
rbd: snap revert header manipulation fixes
2010-06-10 14:45:39 -07:00