]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
14 years agomds: add scatterpins
Sage Weil [Wed, 22 Sep 2010 22:41:24 +0000 (15:41 -0700)]
mds: add scatterpins

14 years agobacktrace: include ceph version
Greg Farnum [Thu, 23 Sep 2010 16:39:59 +0000 (09:39 -0700)]
backtrace: include ceph version

14 years agoqa: add simple rgw test
Yehuda Sadeh [Thu, 23 Sep 2010 05:32:40 +0000 (22:32 -0700)]
qa: add simple rgw test

14 years agomds: fix eval_gather() for non-auth inodes
Sage Weil [Wed, 22 Sep 2010 21:02:08 +0000 (14:02 -0700)]
mds: fix eval_gather() for non-auth inodes

For non-auth nodes, we want a can_* policy that's < AUTH, not <= AUTH.
Adjust macro accordingly.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoMerge branch 'testing' into unstable
Sage Weil [Wed, 22 Sep 2010 20:45:13 +0000 (13:45 -0700)]
Merge branch 'testing' into unstable

14 years agomon: return errors (not 0) from MonitorStore::get_bl_ss()
Sage Weil [Wed, 22 Sep 2010 20:32:11 +0000 (13:32 -0700)]
mon: return errors (not 0) from MonitorStore::get_bl_ss()

Checked callers, should be fine.

14 years agomon: move election start reset to starting_election() helper
Sage Weil [Wed, 22 Sep 2010 18:31:12 +0000 (11:31 -0700)]
mon: move election start reset to starting_election() helper

An election can start either because we call it, or because someone else
calls it.  Either way, we need to reset our state, so move that code into
the election_starting() callback, which is called by the elector's
start()/call_election() anyway.

This hopefully fixes a case where we see a timeout expire on the monitor
and fail the assertion

mon/Paxos.cc: In function 'void Paxos::lease_timeout()':
mon/Paxos.cc:684: FAILED assert(mon->is_peon())
 1: (SafeTimer::EventWrapper::finish(int)+0x259) [0x52da29]
 2: (Timer::timer_entry()+0x8e3) [0x52f523]
 3: (Timer::TimerThread::entry()+0xd) [0x46d45d]
 4: (Thread::_entry_func(void*)+0xa) [0x458aca]
 5: (()+0x6a3a) [0x7fe0bd6a4a3a]
 6: (clone()+0x6d) [0x7fe0bc8c277d]

The Paxos::election_starting() hook resets the timer, and will at least
close this possible cause.

Reported-by: Henry C Chang <henry_c_chang@tcloudcomputing.com>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: distribute flocklock properly!
Greg Farnum [Wed, 22 Sep 2010 18:40:23 +0000 (11:40 -0700)]
mds: distribute flocklock properly!

Previously we weren't handling it in a lot of our distributed system
areas, which would have broken stuff if it were being used.

14 years agomds: Make SimpleLock wait shift bits unique like they should be.
Greg Farnum [Wed, 22 Sep 2010 18:14:08 +0000 (11:14 -0700)]
mds: Make SimpleLock wait shift bits unique like they should be.

This wasn't actually breaking stuff before, but it did mean
we woke up stuff we didn't need to.

14 years agomon: Fix infinite looping, if failed_notes is empty.
Greg Farnum [Wed, 22 Sep 2010 16:49:58 +0000 (09:49 -0700)]
mon: Fix infinite looping, if failed_notes is empty.

Reported-by: Henry C Chang <henry_c_chang@tcloudcomputing.com>
14 years agomon: add debug output
Sage Weil [Wed, 22 Sep 2010 16:25:32 +0000 (09:25 -0700)]
mon: add debug output

14 years agomsgr: do no open connection when policy indicates we are lossy server
Sage Weil [Wed, 22 Sep 2010 16:25:22 +0000 (09:25 -0700)]
msgr: do no open connection when policy indicates we are lossy server

We should not initiate a connection if we are a lossy server; just drop
the message.

14 years agorgw: url_decode url prefix
Yehuda Sadeh [Tue, 21 Sep 2010 22:05:29 +0000 (15:05 -0700)]
rgw: url_decode url prefix

14 years agorgw: url_decode delimiter
Yehuda Sadeh [Tue, 21 Sep 2010 19:46:02 +0000 (12:46 -0700)]
rgw: url_decode delimiter

14 years agoMakefile: move tcmalloc checks outside of FUSE checks. Whoops.
Greg Farnum [Tue, 21 Sep 2010 22:04:38 +0000 (15:04 -0700)]
Makefile: move tcmalloc checks outside of FUSE checks. Whoops.

14 years agoMerge branch 'profiling' into unstable
Greg Farnum [Tue, 21 Sep 2010 21:56:26 +0000 (14:56 -0700)]
Merge branch 'profiling' into unstable

Conflicts:
src/Makefile.am

14 years agomds: enable tcmalloc profiling on MDSes. Add commands to start/dump/stop.
Greg Farnum [Sat, 18 Sep 2010 00:17:48 +0000 (17:17 -0700)]
mds: enable tcmalloc profiling on MDSes. Add commands to start/dump/stop.

14 years agoosd: enable tcmalloc profiling on OSDs. Add commands to start/dump/stop.
Greg Farnum [Sat, 18 Sep 2010 00:17:33 +0000 (17:17 -0700)]
osd: enable tcmalloc profiling on OSDs. Add commands to start/dump/stop.

14 years agoconfig: build infrastructure for handling tcmalloc's profiling.
Greg Farnum [Sat, 18 Sep 2010 00:16:57 +0000 (17:16 -0700)]
config: build infrastructure for handling tcmalloc's profiling.

14 years agoqa: add snaptest-git-ceph.sh
Sage Weil [Tue, 21 Sep 2010 20:39:43 +0000 (13:39 -0700)]
qa: add snaptest-git-ceph.sh

14 years agomds: correctly set straydn->first for rename target
Sage Weil [Tue, 21 Sep 2010 20:41:13 +0000 (13:41 -0700)]
mds: correctly set straydn->first for rename target

Make sure the straydn->first matches the rename target (destdnl->inode).
Unfortunately the cow happens _after_ the destdn->first is set, so instead
of trivially copying it, we dup the MAX calculation.  Add some temp
variables to clean up similar code in this method.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoMerge branch 'testing' into unstable
Sage Weil [Tue, 21 Sep 2010 20:54:57 +0000 (13:54 -0700)]
Merge branch 'testing' into unstable

Conflicts:
src/mds/MDCache.cc

14 years agomds: do full pre_dirty()/mark_dirty() on cowed dentries
Sage Weil [Tue, 21 Sep 2010 20:44:02 +0000 (13:44 -0700)]
mds: do full pre_dirty()/mark_dirty() on cowed dentries

The dir commit/fetch and LogSegment::try_to_expire() rely on any new or
items in the directory getting new versions that correspond to a bump in
the dirfrag version.  This must include dentries/inodes that are created
by the cow process, or else we have problems during dir commit/fetch or
segment expire.

Change the dirty list in the Mutation to include the pv so that we can
properly mark them dirty later.

Leave the inode one alone.  We could theoretically do the same for the
dirty inodes, but this way we avoid projecting them and copying stuff
around.  Any dirty cowed inode will also have a dirty dentry, so it will
still get saved regardless.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: only return pdnvec for full path_traverse
Sage Weil [Tue, 21 Sep 2010 20:54:00 +0000 (13:54 -0700)]
mds: only return pdnvec for full path_traverse

We should only return the pdnvec for a full traverse.  i.e., either a
success, or a failure in which we instantiate a null dn for the trailing
entry.  This makes pdnvec well defined, and allows callers like
rdlock_path_pin_ref() to reply with a null lease when appropriate.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: don't instantiate null dentries for snapped namespace
Sage Weil [Tue, 21 Sep 2010 02:59:00 +0000 (19:59 -0700)]
mds: don't instantiate null dentries for snapped namespace

The dentry needs a [first,last] range and we don't know what first is when
we miss a lookup.  And part of the point of instantiating null dentires is
to issue leases against them, which we don't do.  The client will cache
the null result.

14 years agorgw: url_decode delimiter
Sage Weil [Tue, 21 Sep 2010 20:52:42 +0000 (13:52 -0700)]
rgw: url_decode delimiter

14 years agomakefile: build cfuse with tcmalloc
Greg Farnum [Tue, 21 Sep 2010 18:20:34 +0000 (11:20 -0700)]
makefile: build cfuse with tcmalloc

14 years agoMerge remote branch 'origin/objecter_ratelimit' into unstable
Sage Weil [Tue, 21 Sep 2010 18:00:23 +0000 (11:00 -0700)]
Merge remote branch 'origin/objecter_ratelimit' into unstable

14 years agolibrados: throttle messages via the objecter
Greg Farnum [Mon, 20 Sep 2010 16:58:41 +0000 (09:58 -0700)]
librados: throttle messages via the objecter

14 years agoobjecter: enable automatic throttling of all messages
Greg Farnum [Mon, 20 Sep 2010 16:58:29 +0000 (09:58 -0700)]
objecter: enable automatic throttling of all messages

14 years agoobjecter: add accounting to keep track of total in-flight messages.
Greg Farnum [Mon, 20 Sep 2010 16:33:06 +0000 (09:33 -0700)]
objecter: add accounting to keep track of total in-flight messages.

If the user wishes, they can call throttle_op to hold an operation
until it fits within the limits. The user is responsible for
consistency guarantees and making sure the locking will work!

14 years agoRevert "throttle: make count an atomic_t"
Greg Farnum [Mon, 20 Sep 2010 16:24:36 +0000 (09:24 -0700)]
Revert "throttle: make count an atomic_t"

Sage doesn't think this is likely to matter and doesn't want to risk such
a large change.

This reverts commit 3f8b3f7dc1023342ceb355bd09eab1db5d57703c.

14 years agoMerge branch 'testing' into unstable
Sage Weil [Sat, 18 Sep 2010 21:08:35 +0000 (14:08 -0700)]
Merge branch 'testing' into unstable

Conflicts:
configure.ac

14 years agov0.21.3 v0.21.3
Sage Weil [Fri, 17 Sep 2010 22:47:52 +0000 (15:47 -0700)]
v0.21.3

14 years agocauthtool: update man page
Sage Weil [Fri, 17 Sep 2010 18:48:57 +0000 (11:48 -0700)]
cauthtool: update man page

14 years agoclient: increase default cache size to 16K dentries and lru insertion point .25
Sage Weil [Sat, 18 Sep 2010 03:30:55 +0000 (20:30 -0700)]
client: increase default cache size to 16K dentries and lru insertion point .25

14 years agodebian: allow builddebs.sh build a specific dist
Sage Weil [Sat, 18 Sep 2010 03:19:59 +0000 (20:19 -0700)]
debian: allow builddebs.sh build a specific dist

14 years agorgw: get_data should not be initialized after being set
Yehuda Sadeh [Sat, 18 Sep 2010 01:26:48 +0000 (18:26 -0700)]
rgw: get_data should not be initialized after being set

14 years agorgw: make gateway dns name configurable
Yehuda Sadeh [Fri, 6 Aug 2010 21:13:21 +0000 (14:13 -0700)]
rgw: make gateway dns name configurable

14 years agodebian: make update_pbuilder.sh update a single dist at a time
Sage Weil [Fri, 17 Sep 2010 22:52:43 +0000 (15:52 -0700)]
debian: make update_pbuilder.sh update a single dist at a time

14 years agomakefile: add some flags recommended for use with tcmalloc.
Greg Farnum [Fri, 17 Sep 2010 22:07:45 +0000 (15:07 -0700)]
makefile: add some flags recommended for use with tcmalloc.

14 years agomkcephfs: use new cauthtool --cap syntax
Sage Weil [Fri, 17 Sep 2010 18:38:10 +0000 (11:38 -0700)]
mkcephfs: use new cauthtool --cap syntax

14 years agovstart.sh: use new cauthtool --cap syntax
Sage Weil [Fri, 17 Sep 2010 18:38:04 +0000 (11:38 -0700)]
vstart.sh: use new cauthtool --cap syntax

14 years agocauthtool: add simpler '--cap key val' syntax
Sage Weil [Fri, 17 Sep 2010 18:37:21 +0000 (11:37 -0700)]
cauthtool: add simpler '--cap key val' syntax

This lets you avoid creating a temp filename and doing '--caps filename'.
Instead, add each cap individually, like

--cap mon 'allow *' --cap mds 'allow' --cap osd 'allow rwx'

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: drop x/wrlocks before, rdlocks after sending reply
Sage Weil [Tue, 17 Aug 2010 19:16:02 +0000 (12:16 -0700)]
mds: drop x/wrlocks before, rdlocks after sending reply

This lets us issue the most leases/caps possible.  It also ensure we can
issue caps in the snapped namespace when we are still on the head inode
(previously, releasing the rdlock twiddled the state, the client didn't
get say Frc, and hung indefinitely).

14 years agomds: touch missed dentry when fetching dir on path traverse
Sage Weil [Fri, 17 Sep 2010 16:46:29 +0000 (09:46 -0700)]
mds: touch missed dentry when fetching dir on path traverse

We can get into a loop when doing a path traverse if we miss on a large
directory and then end up trimming the result we need before handling the
original request.  To avoid this, we simply put the wanted dentry at the
top of the LRU (instead of midpoint).

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoqa: update snaptests, add snaptest-multi-capsnaps.sh
Sage Weil [Fri, 17 Sep 2010 15:09:19 +0000 (08:09 -0700)]
qa: update snaptests, add snaptest-multi-capsnaps.sh

14 years agoclient: Make truncation work properly
Greg Farnum [Thu, 26 Aug 2010 21:04:45 +0000 (14:04 -0700)]
client: Make truncation work properly
The previous if block didn't work because inode->size was usually
changed well before handle_cap_trunc was ever invoked, so it never
did the truncation in the objectcacher! This was okay if you just truncated
a file and then closed it, but if you wrote a file, truncated part of it out,
and then wrote past the (new) end you would get reads that returned
the previously-truncated data out of what should have been a hole.

Now, we do the actual objectcacher truncation in update_inode_file_bits,
because all methods of truncation will move through there and this maintains
proper ordering.

14 years agoMerge branch 'testing' into unstable
Sage Weil [Thu, 16 Sep 2010 23:16:32 +0000 (16:16 -0700)]
Merge branch 'testing' into unstable

Conflicts:
src/osd/ReplicatedPG.cc

14 years agoosd: copy truncate_seq et al to clone oi
Sage Weil [Thu, 16 Sep 2010 23:15:30 +0000 (16:15 -0700)]
osd: copy truncate_seq et al to clone oi

These fields are logically object attributes that should be preserved
across the clone COW process.  (Not copying truncate_seq in particular
corrupts snapshot file data, depending on the order of arrival of racing
trimtrunc and writes.

14 years agoosd: fix is_pool_snaps_mode() for empty pools
Sage Weil [Thu, 16 Sep 2010 22:50:50 +0000 (15:50 -0700)]
osd: fix is_pool_snaps_mode() for empty pools

The data pool in particular has seq 0 and (initially) no removed snaps.  We
must not return true for that case, or else the OSD will use an empty
pool snap context and not the user/mds provided one.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agothrottle: make count an atomic_t
Greg Farnum [Thu, 16 Sep 2010 21:47:41 +0000 (14:47 -0700)]
throttle: make count an atomic_t

This means we don't need to take a mutex (and possibly force
ourselves to sleep!) in order to take or put. This is about to
be important since we're adding accounting to the Objecter.

14 years agoupdate TODO
Sage Weil [Thu, 16 Sep 2010 16:53:12 +0000 (09:53 -0700)]
update TODO

14 years agoinit-ceph: fix log_dir creation
Sage Weil [Thu, 16 Sep 2010 04:04:12 +0000 (21:04 -0700)]
init-ceph: fix log_dir creation

Use do_cmd so that it works for remote hosts.

14 years agorgw: fix cleanup for certain ops
Yehuda Sadeh [Wed, 15 Sep 2010 23:22:29 +0000 (16:22 -0700)]
rgw: fix cleanup for certain ops

This fixes bug #412

14 years agorgw: fix cleanup for certain ops
Yehuda Sadeh [Wed, 15 Sep 2010 23:22:29 +0000 (16:22 -0700)]
rgw: fix cleanup for certain ops

This fixes bug #412

14 years agomds: update realm parent pointer and pin parent inode changing realm past_parents
Sage Weil [Wed, 15 Sep 2010 16:56:51 +0000 (09:56 -0700)]
mds: update realm parent pointer and pin parent inode changing realm past_parents

All open past_parents need to be pinned.  Also the realm parent pointer
needs to be correct.

14 years agomds: need_snapflush for all snaps intersecting cowed inode range
Sage Weil [Tue, 14 Sep 2010 23:45:05 +0000 (16:45 -0700)]
mds: need_snapflush for all snaps intersecting cowed inode range

If the inode is [2,3], and the realm has snaps 2,3 both defined, then we
expect flushed snap info for both 2 and 3.

14 years agotime: format dates based on ISO 8601
Sage Weil [Tue, 14 Sep 2010 23:34:36 +0000 (16:34 -0700)]
time: format dates based on ISO 8601

e.g., 2010-09-14 16:33:34.280735

14 years agomds: include tid in MClientCaps printout
Sage Weil [Mon, 13 Sep 2010 23:43:10 +0000 (16:43 -0700)]
mds: include tid in MClientCaps printout

14 years agothrottle: add non-blocking get_or_fail method
Greg Farnum [Tue, 31 Aug 2010 18:38:35 +0000 (11:38 -0700)]
throttle: add non-blocking get_or_fail method

14 years agoaddr_parsing: make more resilient; turn down debugging
Greg Farnum [Tue, 14 Sep 2010 17:56:49 +0000 (10:56 -0700)]
addr_parsing: make more resilient; turn down debugging

14 years agomonclient: parse named addresses, not just IPs
Greg Farnum [Tue, 14 Sep 2010 17:44:06 +0000 (10:44 -0700)]
monclient: parse named addresses, not just IPs

14 years agoclient: in choose_target_mds, break parent lookup if inode is unlinked.
Greg Farnum [Tue, 14 Sep 2010 17:00:31 +0000 (10:00 -0700)]
client: in choose_target_mds, break parent lookup if inode is unlinked.

This can happen now with the recent frag changes and there's no way around it.

14 years agomon: only remove laggy standby mds's; mark others laggy
Sage Weil [Mon, 13 Sep 2010 20:21:36 +0000 (13:21 -0700)]
mon: only remove laggy standby mds's; mark others laggy

This fixes botched ad8a0d9b364ce4c1e3ac0b0f29d23a135f53a37e.

14 years agomds: don't suppress cap on eval following do_cap_update
Sage Weil [Mon, 13 Sep 2010 19:52:29 +0000 (12:52 -0700)]
mds: don't suppress cap on eval following do_cap_update

Case in point:
 - client updates wanted, and writes back data.
 - do_cap_update journals something
 - suppress
 - eval issues wanted caps
 - unsuppress
 - do_cap_update does flush

I think this is just old code.  What does the flush_ack have to do with
what eval() does here?  They're unrelated!

14 years agoRevert "msgr: Test reconnect protocol changes."
Greg Farnum [Mon, 13 Sep 2010 19:17:32 +0000 (12:17 -0700)]
Revert "msgr: Test reconnect protocol changes."

This reverts commit 7349bce8a304231855468503eb32d0167d6955bb.
Only testing; we don't want it live! But keep in-tree.

14 years agoMerge branch 'msgr' into unstable
Greg Farnum [Mon, 13 Sep 2010 19:17:05 +0000 (12:17 -0700)]
Merge branch 'msgr' into unstable

14 years agoobjecter: remove unused bufferlist
Greg Farnum [Thu, 26 Aug 2010 23:30:09 +0000 (16:30 -0700)]
objecter: remove unused bufferlist

14 years agoMerge branch 'unstable' into msgr
Greg Farnum [Mon, 13 Sep 2010 19:14:51 +0000 (12:14 -0700)]
Merge branch 'unstable' into msgr

14 years agoobjecter: remove unused bufferlist
Greg Farnum [Thu, 26 Aug 2010 23:30:09 +0000 (16:30 -0700)]
objecter: remove unused bufferlist

14 years agomsgr: Test reconnect protocol changes.
Greg Farnum [Mon, 13 Sep 2010 19:02:30 +0000 (12:02 -0700)]
msgr: Test reconnect protocol changes.

14 years agomsgr: when both ends support it, exchange in_seq values on reconnect
Greg Farnum [Mon, 13 Sep 2010 18:42:59 +0000 (11:42 -0700)]
msgr: when both ends support it, exchange in_seq values on reconnect
to prevent gratuitously re-sending messages.

This adds a new feature "CEPH_FEATURE_RECONNECT_SEQ" which goes into
the defaul msgr features, as well as a CEPH_MSGR_TAG_SEQ which indicates
this step is being taken and substitutes for CEPH_MSGR_TAG_READY.

14 years agomsgr: Let requeue_sent remove items completely, given a seq to remove from.
Greg Farnum [Tue, 7 Sep 2010 20:55:17 +0000 (13:55 -0700)]
msgr: Let requeue_sent remove items completely, given a seq to remove from.

14 years agomsgr: If one Connection/Pipe replaces an old one that faulted, fully replace.
Greg Farnum [Fri, 10 Sep 2010 21:22:44 +0000 (14:22 -0700)]
msgr: If one Connection/Pipe replaces an old one that faulted, fully replace.

We were previously losing messages because they were associated with an old
Connection that had lost its Pipe.

14 years agoclient: don't crash on cache readdir of empty dir
Sage Weil [Mon, 13 Sep 2010 18:31:53 +0000 (11:31 -0700)]
client: don't crash on cache readdir of empty dir

14 years agoclient: implement readdir from cache
Sage Weil [Mon, 13 Sep 2010 18:24:55 +0000 (11:24 -0700)]
client: implement readdir from cache

This largely mirrors the kclient implementation (but simpler, due to
simpler locking).

14 years agoclient: maintain dn->offset
Sage Weil [Mon, 13 Sep 2010 18:23:54 +0000 (11:23 -0700)]
client: maintain dn->offset

In preparation for readdir from cache.

14 years agoclient: remove stray dcache items while insert readdir results
Sage Weil [Mon, 13 Sep 2010 17:18:03 +0000 (10:18 -0700)]
client: remove stray dcache items while insert readdir results

Walk the dir entry map while we parse the directory results and remove
old entries (while inserting/updating existing entries).

14 years agoclient: buffer name->ino linkage only; do stat at time of readdir
Sage Weil [Mon, 13 Sep 2010 17:03:17 +0000 (10:03 -0700)]
client: buffer name->ino linkage only; do stat at time of readdir

This makes the results more correct/consistent with the current state of
the cache at the time of the readdir(plus).  It also means we buffer less
data for the readdir result.  And pin inodes for the duration.

14 years agoclient: only parse readdir result once
Sage Weil [Mon, 13 Sep 2010 16:47:51 +0000 (09:47 -0700)]
client: only parse readdir result once

..when inserting into the cache.  Set up our result cache at the same time.

14 years agoclient: keep map<> _and_ hash_map<> of dir names
Sage Weil [Mon, 13 Sep 2010 16:35:02 +0000 (09:35 -0700)]
client: keep map<> _and_ hash_map<> of dir names

This will give us a sorted map (good for readdir) and fast lookup.

14 years agoclient: avoid trivial helper _readdir_add_dirent
Sage Weil [Mon, 13 Sep 2010 16:32:03 +0000 (09:32 -0700)]
client: avoid trivial helper _readdir_add_dirent

14 years agoMerge branch 'testing' into unstable
Sage Weil [Mon, 13 Sep 2010 16:24:47 +0000 (09:24 -0700)]
Merge branch 'testing' into unstable

Conflicts:
src/mon/ClassMonitor.cc
src/mon/Session.h

14 years agoconfig: fix buffer overrun in env_to_{vec,deq}()
Sage Weil [Mon, 13 Sep 2010 03:38:05 +0000 (20:38 -0700)]
config: fix buffer overrun in env_to_{vec,deq}()

14 years agoosd: fix osdcaps parsing negative return value
Sage Weil [Mon, 13 Sep 2010 03:26:57 +0000 (20:26 -0700)]
osd: fix osdcaps parsing negative return value

14 years agofilestore: handle error opening fsid on mkjournal
Sage Weil [Mon, 13 Sep 2010 03:26:16 +0000 (20:26 -0700)]
filestore: handle error opening fsid on mkjournal

14 years agofilestore: handle error reading current_op_seq_fn
Sage Weil [Mon, 13 Sep 2010 03:24:53 +0000 (20:24 -0700)]
filestore: handle error reading current_op_seq_fn

14 years agofilestore: return on error creating fsid file
Sage Weil [Mon, 13 Sep 2010 03:22:41 +0000 (20:22 -0700)]
filestore: return on error creating fsid file

14 years agofilestore: fix error paths for _clone()
Sage Weil [Sun, 12 Sep 2010 16:19:35 +0000 (09:19 -0700)]
filestore: fix error paths for _clone()

14 years agomoncaps: fix array out of bounds in parsing
Sage Weil [Sun, 12 Sep 2010 16:18:13 +0000 (09:18 -0700)]
moncaps: fix array out of bounds in parsing

14 years agoosd: handle nonexistant file in ager
Sage Weil [Sun, 12 Sep 2010 04:00:06 +0000 (21:00 -0700)]
osd: handle nonexistant file in ager

14 years agoosd: check for errors in open, write in write_meta()
Sage Weil [Sun, 12 Sep 2010 03:59:08 +0000 (20:59 -0700)]
osd: check for errors in open, write in write_meta()

14 years agostr_list: fix buffer index when start<0
Sage Weil [Sun, 12 Sep 2010 03:57:23 +0000 (20:57 -0700)]
str_list: fix buffer index when start<0

find_first_no_of() can return a negative value.

14 years agomon: remove laggy standby nodes (instead of marking laggy)
Sage Weil [Sat, 11 Sep 2010 21:18:54 +0000 (14:18 -0700)]
mon: remove laggy standby nodes (instead of marking laggy)

This will implicitly clean out old standby nodes that go away.  Laggy
cmds's that don't will just re-add themselves.  Since the laggy flag is
a map change, this creates no more or less map churn.

14 years agomds: re-add if standby and removed from mdsmap
Sage Weil [Sat, 11 Sep 2010 21:17:58 +0000 (14:17 -0700)]
mds: re-add if standby and removed from mdsmap

Instead of shutting down, we should stay alive and try to re-add ourselves
to the MDSMap.

This paves the way for the monitor to remove laggy standby nodes instead
of just marking them laggy.

14 years agoosd: don't create clone_obc on replica
Sage Weil [Sat, 11 Sep 2010 21:06:43 +0000 (14:06 -0700)]
osd: don't create clone_obc on replica

We don't need the clone_obc on the replica, since we don't read from there.
We don't have head obc's either.

We do, however, keep the snapset_obc, since there are a few paths that
depend on whether it exists on disk (to clean it up) and that information
isn't currently fed through from the primary.

14 years agoosd: don't leak map_in_progress_cond
Sage Weil [Sat, 11 Sep 2010 16:54:09 +0000 (09:54 -0700)]
osd: don't leak map_in_progress_cond

14 years agomon: less log noise
Sage Weil [Fri, 10 Sep 2010 20:54:58 +0000 (13:54 -0700)]
mon: less log noise

14 years agoinit-ceph: mkdir log_sym_dir only if not default
Sage Weil [Fri, 10 Sep 2010 20:47:28 +0000 (13:47 -0700)]
init-ceph: mkdir log_sym_dir only if not default