Commit Graph

10899 Commits

Author SHA1 Message Date
Sage Weil
eeeaf7a1c5 moncaps: fix array out of bounds in parsing 2010-09-12 09:18:13 -07:00
Sage Weil
5f7a9997be osd: handle nonexistant file in ager 2010-09-11 21:00:06 -07:00
Sage Weil
ca4bb65ef4 osd: check for errors in open, write in write_meta() 2010-09-11 20:59:08 -07:00
Sage Weil
c7658de255 str_list: fix buffer index when start<0
find_first_no_of() can return a negative value.
2010-09-11 20:57:40 -07:00
Sage Weil
ed1f0caf29 mon: less log noise 2010-09-10 13:54:58 -07:00
Sage Weil
a34eddbe76 osdmap: allow blacklist of an entire ip
We can backlist either a specific instance (1.2.3.4:1234/5678) or an
entire IP, in which case the table has something like "1.2.3.4:0/0" (a port
and nonce of 0).
2010-09-09 15:37:09 -07:00
Sage Weil
33fdb9d385 mon: add 'osd blacklist ls' 2010-09-09 15:26:11 -07:00
Henry C Chang
ad40652bdc common: close fd after parsed config file
Signed-off-by: Sage Weil <sage@newdream.net>
2010-09-09 15:18:47 -07:00
Paul Chiang
6bc8090539 mount.ceph: exit with error code from mount
Signed-off-by: Sage Weil <sage@newdream.net>
2010-09-09 15:18:40 -07:00
Sage Weil
bdd5c168fa mon: 'osd blacklist (add|rm) addr [duration]'
Manipulate the OSDMap blacklist.
2010-09-09 15:18:40 -07:00
Sage Weil
797950ef39 mon: fix up variable names to be more clear this is an inclusive range 2010-09-09 11:09:57 -07:00
Sage Weil
2a07960828 mon: fix osdmap subscribe range
Send incremental starting with the next map they want, not the one they
already have.
2010-09-09 11:04:27 -07:00
Sage Weil
6cefd5f1e3 mon: fix send_incremental ranges; behave when sending just 1 inc.
The build_incremental range is inclusive.  And we should behave when
sending a single inc map to get up to date.
2010-09-09 11:03:46 -07:00
Sage Weil
e7462f9003 mon: handle subscribe to osdmap=1
We would send an incremental for anything >1, or the latest map, but not
osdmap e1 itself.  Fix the condition, and make send_incremental() smart
about starting with the full map at 1 as needed.
2010-09-09 10:56:22 -07:00
Sage Weil
448d3d5100 mds: fix journal replay of session close->open after reconnect
If the client reconnects, the journal 'close' replay doesn't remove the
session, which leaves the session state intact.  It needs to reset it in
that case, or else we get problems if the session is reopened and the
state doesn't match up.

Reported-by: Nat N <phenisha@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-09-09 10:01:24 -07:00
Sage Weil
9e383c786b objectcacher: fix use-after-free atomic_sync_readx
readx() releases rd; copy snapid so we can use it later.
2010-09-08 15:42:08 -07:00
Sage Weil
717f458e23 mds: fix use-after-free
We copied the name, but forgot to use it.
2010-09-08 15:38:11 -07:00
Sage Weil
bb4d45d14e mds: fix use-after-free in snaprealm_create_finish
We pass mut's log segment to snapclient->commit().
2010-09-08 15:36:37 -07:00
Sage Weil
5e98e2de4d objectcacher: cleanup release(), just to be clear 2010-09-08 15:33:42 -07:00
Sage Weil
4ccf69b3b3 objecter: add missing return in list_objects
This fixes a use-after-free, and generally bad behavior.
2010-09-08 15:30:32 -07:00
Sage Weil
c30fde48ca objectcacher: fix use-after-free
Move waiter check above close_object(ob) call.
2010-09-08 15:28:21 -07:00
Sage Weil
3eb332aa88 mount: fix scope of secret[]
We use value pointer outside of this block; move declaration up to function
level.
2010-09-08 15:26:28 -07:00
Sage Weil
066a588c14 crushtool: fix bucket type array bound check 2010-09-08 15:24:29 -07:00
Sage Weil
9434b12a02 rados: fix delete[] in aio_bencher 2010-09-08 15:22:17 -07:00
Sage Weil
d7a8bbb301 Merge branch 'uclient_readdir' into testing 2010-09-08 15:14:55 -07:00
Sage Weil
1de5617720 client: move readdir code around 2010-09-08 14:44:26 -07:00
Sage Weil
c8be0a5a86 client: reimplement getdir() with readdir_r_cb()
More efficient.
2010-09-08 14:10:31 -07:00
Sage Weil
d558674934 client: reimplement readdir
Reimplement core readdir (readdir_r_cb), using kclient as a template.
Reimplement all other readdir variants in terms of readdir_r_cb.

Main change is support for frag chunking, and hopefully lots of subtle bugs
that have been fixed in the kclient code we're based on.
2010-09-08 14:02:43 -07:00
Sage Weil
eefabc7bde cfuse: use readdir_r_cb 2010-09-08 11:32:00 -07:00
Sage Weil
561f302207 uclient: implement readdir_r_cb (callback based readdir)
This lets us know whether the caller is able to consume an entry before
advancing our position.
2010-09-08 11:31:19 -07:00
Sage Weil
c2c09be383 Merge branch 'mds_replay_lock_states' into testing 2010-09-07 12:12:41 -07:00
Sage Weil
86986925fc mds: rename process_reconnected_caps() 2010-09-07 12:10:27 -07:00
Sage Weil
ae7dcdfb8c mds: make is_dirty() const in parent and child
Otherwise we're overriding the wrong method!  Der.
2010-09-07 12:10:27 -07:00
Sage Weil
f6f8e5cf20 mds: choose lock states for nestlock and dftlock too
All scatterlocks need it, in case we replay dirty scatterlock data.
2010-09-07 12:10:27 -07:00
Sage Weil
4205b7deb5 mds: choose lock states on all inodes, not just those with caps
This is necessary because we want to select lock states for inodes with
no caps that got replayed scatterlock dirty state from the journal.
2010-09-07 12:10:27 -07:00
Sage Weil
a478ab5ffb mds: choose LOCK if !replicated and dirty scatterlock 2010-09-07 12:10:27 -07:00
Sage Weil
c80a1d02a3 mds: fix bad iterator usage in process_reconnected_caps()
We use p->second, so don't increment p++ early in the loop block.
2010-09-07 12:10:27 -07:00
Sage Weil
f24cee3438 ceph v0.21.2 2010-08-26 15:27:13 -07:00
Sage Weil
412a1c8b06 osd: less log noise 2010-08-26 12:56:40 -07:00
Sage Weil
c3b97ffc1f osd: mark down old _from connections too; and fix old _from debug output 2010-08-26 12:31:53 -07:00
Sage Weil
41cd1ea5b4 osd: don't mark down old _to peers that are still _from peers
It's harmless, but not ideal.
2010-08-26 12:31:53 -07:00
Sage Weil
d273c99d71 osd: always mark down old hb peers; send map update via cluster link
If we don't mark down the hb link immediately, we'll forget about it
because it won't be in the from or to set anymore, and if it does go down
later we'll end up with garbage in the logs.

Instead, always mark it down.  Since we want to share our map with old
peers that are still up, do that via the cluster link instead, which is
reliably marked down if/when the peer goes down.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-26 11:28:25 -07:00
Sage Weil
7d1179e656 filejournal: clean up journal initialization sequence, error codes, output
EOPNOTSUPP was getting returned to the user without much explanation.  This
should fix that!
2010-08-26 10:00:18 -07:00
Sage Weil
49636759b0 debian: don't need to add .git_version in release script 2010-08-25 14:46:36 -07:00
Sage Weil
7fde620487 makefile: include .git_version in tarball 2010-08-25 14:45:55 -07:00
Sage Weil
b33c0511f9 mon: error out gracefully when we can't read the magic 2010-08-25 14:42:06 -07:00
Henry C Chang
d636223b29 msgr: release dispatch_throttle on reset connection
Signed-off-by: Henry C Chang <henry_c_chang@tcloudcomputing.com>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-22 21:39:35 -07:00
Sage Weil
f669adb0ab mds: drop old thrash_exports time limit 2010-08-20 09:57:07 -07:00
Sage Weil
cfdc5f0ef2 osdmaptool: print useful error instead of crashing if osdmap is corrupt 2010-08-20 09:31:49 -07:00
Sage Weil
ec80b10f28 crush: return error instead of BUGing on bad forcefed mapping
The forcefed mapping relies on a parent map.  However, the current
implementation assumes that the parent mapping is unique for all rules. If
that is not the case (i.e., some osd exists in multiple hierarchies) then
we cannot assert that the TAKE matches the calculated force_context.

For now, we can just fail the mapping in that case (we don't use forcefed
mappings yet).  The real solution is probably to define parent maps for
all possible hierarchies (i.e., starting at each unique TAKE starting
point).

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-20 09:26:34 -07:00