]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
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 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

14 years agomds: propagate accounted_* into dirfrags on scatterwriteback
Sage Weil [Fri, 10 Sep 2010 20:47:09 +0000 (13:47 -0700)]
mds: propagate accounted_* into dirfrags on scatterwriteback

The accounted_ updates need to propagate into the dirfrag fnodes in the
journal for auth frags during scatterwriteback.

14 years agomds: don't xlock and wrlock same dn->versionlock
Sage Weil [Fri, 10 Sep 2010 19:57:46 +0000 (12:57 -0700)]
mds: don't xlock and wrlock same dn->versionlock

We deadlock if we try to wrlock and xlock the same lock.  This was
happening during multi-mds rename when the versionlock was in the xlock
set.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: drop useless virtual-ness for finish_scatter_gather_update
Sage Weil [Fri, 10 Sep 2010 18:01:48 +0000 (11:01 -0700)]
mds: drop useless virtual-ness for finish_scatter_gather_update

If/when we do this on dentries, _then_ we can use a virtual function, and
rewrite the single user (scatter_writebehind) to generalize to non-inodes.

14 years agomds: journal dirfrag accounted_{r,frag}stat on inode update
Sage Weil [Thu, 9 Sep 2010 22:53:10 +0000 (15:53 -0700)]
mds: journal dirfrag accounted_{r,frag}stat on inode update

When the inode sucks in the dir's updated frag info, we need to journal
the dirfrag update as well.  This ensures that any subsequent changes in
the dirfrag will be reflected by the difference between rstat and
accounted_rstat from the perspective of the journal contents (in case we
fail/recover during that process).

14 years agomds: in cinode debug, only show nl= if != 1
Sage Weil [Thu, 9 Sep 2010 22:42:44 +0000 (15:42 -0700)]
mds: in cinode debug, only show nl= if != 1

14 years agoinit-ceph: mkdir log_dir and log_sym_dir
Paul Chiang [Tue, 6 Jul 2010 03:24:42 +0000 (11:24 +0800)]
init-ceph: mkdir log_dir and log_sym_dir

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomon: be a little more conservating in MOSDBoot handling
Sage Weil [Thu, 9 Sep 2010 23:40:03 +0000 (16:40 -0700)]
mon: be a little more conservating in MOSDBoot handling

If we see the osd is being marked up, retry the message after commit,
don't just assume we're a dup and it's the same instance.

14 years agoMerge branch 'testing' into unstable
Sage Weil [Thu, 9 Sep 2010 18:11:15 +0000 (11:11 -0700)]
Merge branch 'testing' into unstable

14 years agomon: fix up variable names to be more clear this is an inclusive range
Sage Weil [Thu, 9 Sep 2010 18:09:57 +0000 (11:09 -0700)]
mon: fix up variable names to be more clear this is an inclusive range

14 years agomon: fix osdmap subscribe range
Sage Weil [Thu, 9 Sep 2010 18:04:27 +0000 (11:04 -0700)]
mon: fix osdmap subscribe range

Send incremental starting with the next map they want, not the one they
already have.

14 years agomon: fix send_incremental ranges; behave when sending just 1 inc.
Sage Weil [Thu, 9 Sep 2010 18:03:46 +0000 (11:03 -0700)]
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.

14 years agomon: handle subscribe to osdmap=1
Sage Weil [Thu, 9 Sep 2010 17:56:22 +0000 (10:56 -0700)]
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.

14 years agomds: fix journal replay of session close->open after reconnect
Sage Weil [Thu, 9 Sep 2010 17:01:24 +0000 (10:01 -0700)]
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>
14 years agoobjectcacher: fix use-after-free atomic_sync_readx
Sage Weil [Wed, 8 Sep 2010 22:42:08 +0000 (15:42 -0700)]
objectcacher: fix use-after-free atomic_sync_readx

readx() releases rd; copy snapid so we can use it later.

14 years agomds: fix use-after-free
Sage Weil [Wed, 8 Sep 2010 22:38:11 +0000 (15:38 -0700)]
mds: fix use-after-free

We copied the name, but forgot to use it.

14 years agomds: fix use-after-free in snaprealm_create_finish
Sage Weil [Wed, 8 Sep 2010 22:36:37 +0000 (15:36 -0700)]
mds: fix use-after-free in snaprealm_create_finish

We pass mut's log segment to snapclient->commit().

14 years agoobjectcacher: cleanup release(), just to be clear
Sage Weil [Wed, 8 Sep 2010 22:33:42 +0000 (15:33 -0700)]
objectcacher: cleanup release(), just to be clear

14 years agoobjecter: add missing return in list_objects
Sage Weil [Wed, 8 Sep 2010 22:30:32 +0000 (15:30 -0700)]
objecter: add missing return in list_objects

This fixes a use-after-free, and generally bad behavior.

14 years agoobjectcacher: fix use-after-free
Sage Weil [Wed, 8 Sep 2010 22:28:21 +0000 (15:28 -0700)]
objectcacher: fix use-after-free

Move waiter check above close_object(ob) call.

14 years agomount: fix scope of secret[]
Sage Weil [Wed, 8 Sep 2010 22:26:28 +0000 (15:26 -0700)]
mount: fix scope of secret[]

We use value pointer outside of this block; move declaration up to function
level.

14 years agocrushtool: fix bucket type array bound check
Sage Weil [Wed, 8 Sep 2010 22:24:29 +0000 (15:24 -0700)]
crushtool: fix bucket type array bound check

14 years agorados: fix delete[] in aio_bencher
Sage Weil [Wed, 8 Sep 2010 22:22:17 +0000 (15:22 -0700)]
rados: fix delete[] in aio_bencher

14 years agoMerge branch 'uclient_readdir' into testing
Sage Weil [Wed, 8 Sep 2010 22:14:55 +0000 (15:14 -0700)]
Merge branch 'uclient_readdir' into testing

14 years agoclient: move readdir code around
Sage Weil [Wed, 8 Sep 2010 21:44:26 +0000 (14:44 -0700)]
client: move readdir code around

14 years agoclient: reimplement getdir() with readdir_r_cb()
Sage Weil [Wed, 8 Sep 2010 21:10:31 +0000 (14:10 -0700)]
client: reimplement getdir() with readdir_r_cb()

More efficient.

14 years agoclient: reimplement readdir
Sage Weil [Wed, 8 Sep 2010 21:02:43 +0000 (14:02 -0700)]
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.

14 years agocfuse: use readdir_r_cb
Sage Weil [Wed, 8 Sep 2010 18:32:00 +0000 (11:32 -0700)]
cfuse: use readdir_r_cb

14 years agouclient: implement readdir_r_cb (callback based readdir)
Sage Weil [Wed, 8 Sep 2010 18:31:19 +0000 (11:31 -0700)]
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.

14 years agomds: sync replicas after finishing XLOCK gather
Sage Weil [Tue, 7 Sep 2010 22:46:20 +0000 (15:46 -0700)]
mds: sync replicas after finishing XLOCK gather

The replicas are in the LOCK state; sync them.  We had the XLOCKDONE but
not the XLOCK case.

14 years agomds: fix replica state for mix->sync
Sage Weil [Tue, 7 Sep 2010 21:57:49 +0000 (14:57 -0700)]
mds: fix replica state for mix->sync

Should be mix->sync(2): the same as a replica who already go the first
SYNC message and is waiting in mix->sync(2) for the final SYNC to indicate
the gather is completed.

14 years agomds: don't export any system dirs
Sage Weil [Tue, 7 Sep 2010 21:47:13 +0000 (14:47 -0700)]
mds: don't export any system dirs

Skip dir if it is any system dir.

14 years agomds: authpin non-auth items we may need to REQSCATTER or REQRDLOCK for any lock type
Sage Weil [Tue, 7 Sep 2010 21:40:33 +0000 (14:40 -0700)]
mds: authpin non-auth items we may need to REQSCATTER or REQRDLOCK for any lock type

We were doing just filelock, but this is needed for any lock.

14 years agoRevert "Merge branch 'auth_change_waiters' into unstable"
Sage Weil [Tue, 7 Sep 2010 21:38:48 +0000 (14:38 -0700)]
Revert "Merge branch 'auth_change_waiters' into unstable"

This reverts commit 1d8770be2747c43a1aef05a6439b7e23a87f0419, reversing
changes made to 46bf806a774a3cd28b3a1da4ec79fb9e61124ba8.

14 years agomds: lock path, parent dir scatterlocks _after_ freezing
Sage Weil [Tue, 7 Sep 2010 20:59:37 +0000 (13:59 -0700)]
mds: lock path, parent dir scatterlocks _after_ freezing

This fixes a ABBA deadlock between
  acquire_locks(): auth_pins items, then locks in order
  export_dir: locks paths, then freezes.

Instead, we check for lockability (but don't lock), do the freeze, and then
try to take the locks after.  If we can't do so atomically, we currently
just fail.  In theory this could wait for the distributed locks, but it's
probably not worth the complexity at this stage; export_dir is currently
still opportunistic and can bail out for a variety of reasons.

14 years agomds: can next state lockability checks in eval_gather
Sage Weil [Mon, 23 Aug 2010 22:36:14 +0000 (15:36 -0700)]
mds: can next state lockability checks in eval_gather

The can_* fields need to be ANY or AUTH.. not REQ or XCL (at least not
without trickier checks).  Otherwise we progress to the next state too
early and violate the locking rules.

14 years agomds: don't allow read in sync->mix2 state, request rdlock in sync->mix
Sage Weil [Mon, 23 Aug 2010 22:35:00 +0000 (15:35 -0700)]
mds: don't allow read in sync->mix2 state, request rdlock in sync->mix

14 years agoMerge branch 'testing' into unstable
Sage Weil [Tue, 7 Sep 2010 19:13:39 +0000 (12:13 -0700)]
Merge branch 'testing' into unstable

Conflicts:
configure.ac
src/mds/MDCache.cc

14 years agoMerge branch 'mds_replay_lock_states' into testing
Sage Weil [Tue, 7 Sep 2010 19:12:41 +0000 (12:12 -0700)]
Merge branch 'mds_replay_lock_states' into testing

14 years agomds: rename process_reconnected_caps()
Sage Weil [Tue, 7 Sep 2010 18:06:54 +0000 (11:06 -0700)]
mds: rename process_reconnected_caps()

14 years agomds: make is_dirty() const in parent and child
Sage Weil [Tue, 7 Sep 2010 18:03:34 +0000 (11:03 -0700)]
mds: make is_dirty() const in parent and child

Otherwise we're overriding the wrong method!  Der.

14 years agomds: choose lock states for nestlock and dftlock too
Sage Weil [Tue, 7 Sep 2010 17:57:21 +0000 (10:57 -0700)]
mds: choose lock states for nestlock and dftlock too

All scatterlocks need it, in case we replay dirty scatterlock data.

14 years agomds: choose lock states on all inodes, not just those with caps
Sage Weil [Mon, 30 Aug 2010 19:55:07 +0000 (12:55 -0700)]
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.

14 years agomds: choose LOCK if !replicated and dirty scatterlock
Sage Weil [Mon, 30 Aug 2010 19:54:35 +0000 (12:54 -0700)]
mds: choose LOCK if !replicated and dirty scatterlock

14 years agomds: fix bad iterator usage in process_reconnected_caps()
Sage Weil [Mon, 30 Aug 2010 19:51:31 +0000 (12:51 -0700)]
mds: fix bad iterator usage in process_reconnected_caps()

We use p->second, so don't increment p++ early in the loop block.

14 years agomkcephfs: fix bad |
Sage Weil [Tue, 7 Sep 2010 17:18:52 +0000 (10:18 -0700)]
mkcephfs: fix bad |

Reported-by: Jim Schutt <jaschut@sandia.gov>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: log error instead of crashing on failed pull attempt
Sage Weil [Tue, 7 Sep 2010 17:01:58 +0000 (10:01 -0700)]
osd: log error instead of crashing on failed pull attempt

If peering screws up and the primary mistakenly tries to pull an object
from us we don't have, log an error instead of crashing.  This will still
throw off recovery (it will hang), but that's better than crashing
outright.

15 years agorgw: send status: 100 after auth code to signal fastcgi module
Yehuda Sadeh [Sat, 4 Sep 2010 00:27:41 +0000 (17:27 -0700)]
rgw: send status: 100 after auth code to signal fastcgi module

Shouldn't make any difference with older modules, and patched fastcgi
module should know how to handle it.

15 years agorgw: update the rgw_admin usage
Yehuda Sadeh [Thu, 2 Sep 2010 19:04:03 +0000 (12:04 -0700)]
rgw: update the rgw_admin usage

15 years agoclass: fix adding of class library, when previously existed
Yehuda Sadeh [Mon, 30 Aug 2010 21:57:27 +0000 (14:57 -0700)]
class: fix adding of class library, when previously existed

15 years agomds: fix bad iterator usage in process_reconnected_caps()
Sage Weil [Mon, 30 Aug 2010 19:51:31 +0000 (12:51 -0700)]
mds: fix bad iterator usage in process_reconnected_caps()

We use p->second, so don't increment p++ early in the loop block.

15 years agomon: more useful class debug output
Sage Weil [Sat, 28 Aug 2010 14:34:04 +0000 (07:34 -0700)]
mon: more useful class debug output

15 years agoceph v0.21.2 v0.21.2
Sage Weil [Thu, 26 Aug 2010 22:27:13 +0000 (15:27 -0700)]
ceph v0.21.2

15 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.

15 years agoosd: fix class timeouts
Sage Weil [Thu, 26 Aug 2010 20:29:34 +0000 (13:29 -0700)]
osd: fix class timeouts

15 years agoosd: clean up class loading code a bit
Sage Weil [Thu, 26 Aug 2010 20:22:49 +0000 (13:22 -0700)]
osd: clean up class loading code a bit

15 years agoosd: less log noise
Sage Weil [Thu, 26 Aug 2010 19:56:40 +0000 (12:56 -0700)]
osd: less log noise

15 years agoosdmap: whitespace
Sage Weil [Thu, 26 Aug 2010 18:29:37 +0000 (11:29 -0700)]
osdmap: whitespace

15 years agoosd: use cluster msgr to share map with old hb peers
Sage Weil [Thu, 26 Aug 2010 18:29:09 +0000 (11:29 -0700)]
osd: use cluster msgr to share map with old hb peers

15 years agoMerge branch 'testing' into unstable
Sage Weil [Thu, 26 Aug 2010 19:33:05 +0000 (12:33 -0700)]
Merge branch 'testing' into unstable

15 years agoosd: mark down old _from connections too; and fix old _from debug output
Sage Weil [Thu, 26 Aug 2010 19:31:44 +0000 (12:31 -0700)]
osd: mark down old _from connections too; and fix old _from debug output

15 years agoosd: don't mark down old _to peers that are still _from peers
Sage Weil [Thu, 26 Aug 2010 18:34:32 +0000 (11:34 -0700)]
osd: don't mark down old _to peers that are still _from peers

It's harmless, but not ideal.

15 years agoosd: always mark down old hb peers; send map update via cluster link
Sage Weil [Thu, 26 Aug 2010 18:28:25 +0000 (11:28 -0700)]
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>
15 years agoMerge branch 'testing' into unstable
Sage Weil [Thu, 26 Aug 2010 17:00:37 +0000 (10:00 -0700)]
Merge branch 'testing' into unstable

15 years agofilejournal: clean up journal initialization sequence, error codes, output
Sage Weil [Thu, 26 Aug 2010 17:00:18 +0000 (10:00 -0700)]
filejournal: clean up journal initialization sequence, error codes, output

EOPNOTSUPP was getting returned to the user without much explanation.  This
should fix that!

15 years agomds: omit lock state in debug output when it's uninteresting (sync, no locks)
Sage Weil [Thu, 26 Aug 2010 04:31:34 +0000 (21:31 -0700)]
mds: omit lock state in debug output when it's uninteresting (sync, no locks)

15 years agoqa: rename snapmove -> snaptest-parents
Sage Weil [Tue, 24 Aug 2010 23:37:15 +0000 (16:37 -0700)]
qa: rename snapmove -> snaptest-parents

15 years agoosd: don't reply on missing class
Sage Weil [Wed, 25 Aug 2010 23:24:25 +0000 (16:24 -0700)]
osd: don't reply on missing class

Instead, we queue ourselves in the waiting_for_class list.  Broken by
f1eb9a8751d48.

15 years agomds: only wrlock filelock during max_size changes on the head
Sage Weil [Wed, 25 Aug 2010 21:41:18 +0000 (14:41 -0700)]
mds: only wrlock filelock during max_size changes on the head

15 years agoqa: add snaptest-dir-rename.sh
Sage Weil [Wed, 25 Aug 2010 19:05:19 +0000 (12:05 -0700)]
qa: add snaptest-dir-rename.sh

15 years agoqa: add blogbench test to qa
Greg Farnum [Wed, 25 Aug 2010 23:10:57 +0000 (16:10 -0700)]
qa: add blogbench test to qa

15 years agodebian: don't need to add .git_version in release script
Sage Weil [Wed, 25 Aug 2010 21:46:36 +0000 (14:46 -0700)]
debian: don't need to add .git_version in release script

15 years agomakefile: include .git_version in tarball
Sage Weil [Wed, 25 Aug 2010 21:45:55 +0000 (14:45 -0700)]
makefile: include .git_version in tarball

15 years agomon: error out gracefully when we can't read the magic
Sage Weil [Wed, 25 Aug 2010 21:41:29 +0000 (14:41 -0700)]
mon: error out gracefully when we can't read the magic

15 years agomds: fix invalid comparison.
Greg Farnum [Wed, 25 Aug 2010 19:04:53 +0000 (12:04 -0700)]
mds: fix invalid comparison.

We just want the code in this if block to execute if the previous if block did.
But the previous if block unlinked destdnl, so the comparison always fails! Use
a bool and set it appropriately to fix.

15 years agoclient: don't improperly conclude COMPLETE on empty dir
Sage Weil [Tue, 24 Aug 2010 23:31:19 +0000 (16:31 -0700)]
client: don't improperly conclude COMPLETE on empty dir

We can't trust the MDS values when we hold FILE_EXCL.

15 years agoqa: clean up snaptest-* suite a bit
Sage Weil [Tue, 24 Aug 2010 23:01:47 +0000 (16:01 -0700)]
qa: clean up snaptest-* suite a bit

15 years agoclient: don't print inode, it might be NULL.
Greg Farnum [Tue, 24 Aug 2010 22:03:24 +0000 (15:03 -0700)]
client: don't print inode, it might be NULL.
This is especially bad because you can't start cfuse with debug level 20.

15 years agoRevert "qa: remove random ordering from runallonce, for predictable resource matching"
Greg Farnum [Tue, 24 Aug 2010 20:55:30 +0000 (13:55 -0700)]
Revert "qa: remove random ordering from runallonce, for predictable resource matching"
This snuck in by mistake in the leaks merge.

This reverts commit 8778bacf3bee80e37a1898ba87fd7d2f37b56b8d.

15 years agoclient: only includee xattrs in caps msg if we are flushing that bit
Sage Weil [Tue, 24 Aug 2010 20:06:13 +0000 (13:06 -0700)]
client: only includee xattrs in caps msg if we are flushing that bit

15 years agoclient: queue capsnap on any dirty metadata
Sage Weil [Tue, 24 Aug 2010 20:05:48 +0000 (13:05 -0700)]
client: queue capsnap on any dirty metadata

15 years agoMerge branch 'unstable' of ssh://ceph.newdream.net/home/sage/ceph.newdream.net/git...
Sage Weil [Tue, 24 Aug 2010 19:58:00 +0000 (12:58 -0700)]
Merge branch 'unstable' of ssh://ceph.newdream.net/home/sage/ceph.newdream.net/git/ceph into unstable

15 years agoMerge branch 'rootsnap' into unstable
Sage Weil [Tue, 24 Aug 2010 19:17:57 +0000 (12:17 -0700)]
Merge branch 'rootsnap' into unstable

Conflicts:
src/mds/Server.cc

15 years agomds: fix cow_old_inode to properly save xattrs
Sage Weil [Tue, 24 Aug 2010 18:57:19 +0000 (11:57 -0700)]
mds: fix cow_old_inode to properly save xattrs

15 years agomds: fix snaprealm create split
Sage Weil [Tue, 24 Aug 2010 19:12:16 +0000 (12:12 -0700)]
mds: fix snaprealm create split

Need to check if diri->snaprealm is set _before_ popping the dirty inode
(and new snaprealm!).

15 years agomds: no snaps in system dirs, but root is ok
Sage Weil [Tue, 24 Aug 2010 18:24:27 +0000 (11:24 -0700)]
mds: no snaps in system dirs, but root is ok

15 years agomds: drop old debug output
Sage Weil [Tue, 24 Aug 2010 18:23:30 +0000 (11:23 -0700)]
mds: drop old debug output

15 years agomds: rename project_past_parent -> project_past_snaprealm_parent
Sage Weil [Tue, 24 Aug 2010 18:23:22 +0000 (11:23 -0700)]
mds: rename project_past_parent -> project_past_snaprealm_parent

15 years agomds: drop unused projected_srnode list
Sage Weil [Tue, 24 Aug 2010 18:20:40 +0000 (11:20 -0700)]
mds: drop unused projected_srnode list

15 years agoqa: snaptest-xattrwb.sh
Sage Weil [Tue, 24 Aug 2010 17:46:23 +0000 (10:46 -0700)]
qa: snaptest-xattrwb.sh

15 years agoqa: chmod +x snaptest-authwb.sh
Sage Weil [Tue, 24 Aug 2010 17:45:58 +0000 (10:45 -0700)]
qa: chmod +x snaptest-authwb.sh

15 years agomds: expose projected values for all locks to loner (not just filelock)
Sage Weil [Tue, 24 Aug 2010 17:38:21 +0000 (10:38 -0700)]
mds: expose projected values for all locks to loner (not just filelock)

There is nothing special about filelock in this case.  If the client is
the loner, we should use the projected values.  This is important when
we are looking at a snapid on the head (see snaptest-authwb.sh).

15 years agomds: do null snapflush as soon as we have all file wr caps
Sage Weil [Tue, 24 Aug 2010 17:37:06 +0000 (10:37 -0700)]
mds: do null snapflush as soon as we have all file wr caps

The snapflush only gets delayed on the client by data writeback, so we can
do the null snapflush as soon as we have those bits.

15 years agomds: fix null deref of cap in do_cap_update when doing intermediate snap updates
Sage Weil [Tue, 24 Aug 2010 15:57:30 +0000 (08:57 -0700)]
mds: fix null deref of cap in do_cap_update when doing intermediate snap updates

15 years agomon: add clock sync backoff to handle_lease_ack
Greg Farnum [Tue, 24 Aug 2010 18:54:49 +0000 (11:54 -0700)]
mon: add clock sync backoff to handle_lease_ack

15 years agomon: Adjust lease time checks.
Greg Farnum [Tue, 24 Aug 2010 18:49:43 +0000 (11:49 -0700)]
mon: Adjust lease time checks.

For some reason this fixes (apparently incorrect) warnings I saw
while running a 2-mon system on my dev server.

15 years agoMerge branch 'leaks' into unstable
Greg Farnum [Tue, 24 Aug 2010 17:35:35 +0000 (10:35 -0700)]
Merge branch 'leaks' into unstable

Conflicts:
src/mds/Locker.cc

15 years agoMerge branch 'unstable' into leaks
Greg Farnum [Tue, 24 Aug 2010 06:41:41 +0000 (23:41 -0700)]
Merge branch 'unstable' into leaks

Conflicts:
src/mds/Locker.cc