1
0
mirror of https://github.com/ceph/ceph synced 2024-12-19 01:46:00 +00:00
Commit Graph

11147 Commits

Author SHA1 Message Date
Greg Farnum
54d661aca6 qa: add blogbench test to qa 2010-08-25 16:10:57 -07:00
Greg Farnum
655199a482 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.
2010-08-25 12:06:08 -07:00
Sage Weil
98cf3c36cb client: don't improperly conclude COMPLETE on empty dir
We can't trust the MDS values when we hold FILE_EXCL.
2010-08-24 16:31:19 -07:00
Sage Weil
1c176ee009 qa: clean up snaptest-* suite a bit 2010-08-24 16:01:47 -07:00
Greg Farnum
4f3407de99 client: don't print inode, it might be NULL.
This is especially bad because you can't start cfuse with debug level 20.
2010-08-24 15:11:56 -07:00
Greg Farnum
5b099f5c65 Revert "qa: remove random ordering from runallonce, for predictable resource matching"
This snuck in by mistake in the leaks merge.

This reverts commit 8778bacf3b.
2010-08-24 13:55:30 -07:00
Sage Weil
f07fdeee6a client: only includee xattrs in caps msg if we are flushing that bit 2010-08-24 13:06:13 -07:00
Sage Weil
99674a5fae client: queue capsnap on any dirty metadata 2010-08-24 13:05:48 -07:00
Sage Weil
520706df3c Merge branch 'unstable' of ssh://ceph.newdream.net/home/sage/ceph.newdream.net/git/ceph into unstable 2010-08-24 12:58:00 -07:00
Sage Weil
bc8ee67cc7 Merge branch 'rootsnap' into unstable
Conflicts:
	src/mds/Server.cc
2010-08-24 12:17:57 -07:00
Sage Weil
d34c7789e1 mds: fix cow_old_inode to properly save xattrs 2010-08-24 12:15:05 -07:00
Sage Weil
c9b1c54ad5 mds: fix snaprealm create split
Need to check if diri->snaprealm is set _before_ popping the dirty inode
(and new snaprealm!).
2010-08-24 12:14:59 -07:00
Sage Weil
ec02fe38a7 mds: no snaps in system dirs, but root is ok 2010-08-24 12:14:46 -07:00
Sage Weil
2f2cccb4ca mds: drop old debug output 2010-08-24 12:14:41 -07:00
Sage Weil
f32a880bc2 mds: rename project_past_parent -> project_past_snaprealm_parent 2010-08-24 12:14:38 -07:00
Sage Weil
ac12b0cb78 mds: drop unused projected_srnode list 2010-08-24 12:14:35 -07:00
Sage Weil
7172a637b7 qa: snaptest-xattrwb.sh 2010-08-24 12:13:53 -07:00
Sage Weil
10ed52012b qa: chmod +x snaptest-authwb.sh 2010-08-24 12:13:53 -07:00
Sage Weil
08920f4e81 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).
2010-08-24 12:13:53 -07:00
Sage Weil
25cc1451c8 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.
2010-08-24 12:13:53 -07:00
Sage Weil
cd92072e71 mds: fix null deref of cap in do_cap_update when doing intermediate snap updates 2010-08-24 12:13:53 -07:00
Greg Farnum
c4ab621ed6 mon: add clock sync backoff to handle_lease_ack 2010-08-24 11:54:49 -07:00
Greg Farnum
6998372a8f 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.
2010-08-24 11:49:43 -07:00
Greg Farnum
09fbe8650e Merge branch 'leaks' into unstable
Conflicts:
	src/mds/Locker.cc
2010-08-24 10:35:35 -07:00
Greg Farnum
6ace230b8f Merge branch 'unstable' into leaks
Conflicts:
	src/mds/Locker.cc
2010-08-23 23:41:41 -07:00
Sage Weil
1d8770be27 Merge branch 'auth_change_waiters' into unstable 2010-08-23 20:31:17 -07:00
Sage Weil
067d8bb0d1 mds: don't auth_pin non-auth wrlock targets 2010-08-23 20:23:14 -07:00
Sage Weil
8d462435a7 mds: don't auth_pin non-auth rdlock targets
This generates lots of lock traffic that is unneeded with the authchange
notification machinery.
2010-08-23 20:23:14 -07:00
Sage Weil
aa226df5ca mds: add wait on auth change machinery
Special wait mask is passed through lock wait mask to parent object.
Caller adds item to a list on the subtree root.
Removal of wait item automatically removes from said list.
Subtree topology changes adjust authchange wait lists.
Migrator auth change update waits waiters.  Import/export should be
protected by freeze/thaw or the blanket wakeups.
2010-08-23 20:23:14 -07:00
Greg Farnum
fa11800a1f Revert librados portions of b0a8f6be81
and 6289b3e409.
These were never meant to occur, just a tool failure.
2010-08-23 14:42:03 -07:00
Sage Weil
46bf806a77 mon: ignore osd boot with bad addr
This sort of masks a bug in the msgr layer.
2010-08-23 12:53:24 -07:00
Sage Weil
cde89c5a49 mds: only revoke client leases when there are leases in AC_LOCK handler
Fixes crash, bc the revoke func assumes it's a CDentry
2010-08-23 11:50:30 -07:00
Sage Weil
45ab5ac1fb mds: fix retry on discover_*
The discover_* methods can block on an ambiguous base auth, so we need to
retry in that case.
2010-08-23 11:39:39 -07:00
Sage Weil
8588100ef7 mds: ignore reqrdlock if frozen 2010-08-23 11:38:43 -07:00
Sage Weil
3adccf5018 mds: handle REQRDLOCK on simple locks too
Use a helper.
2010-08-23 11:16:42 -07:00
Sage Weil
73c6ee9be8 Merge remote branch 'origin/testing' into unstable 2010-08-23 10:32:18 -07:00
Sage Weil
5ec305db70 mds: eval inodes with caps after import 2010-08-23 09:36:10 -07:00
Sage Weil
fc8176c892 qa: add test for snapcap writeback of auth bits 2010-08-22 15:19:53 -07:00
Sage Weil
8950599aef qa: test xattr snap wb 2010-08-22 15:18:21 -07:00
Sage Weil
c85a499b8d osd: disable potentially dangerous dead code
Greg got a segfault accessing the OSDOP& first reference. Not clear why,
but this whole block is dead code.
2010-08-20 13:46:38 -07:00
Greg Farnum
1ac5675500 backtrace: fix segfault in tcmalloc.
The print function is only called when we're about to crash anyway,
and the datamember 'foo' is allocated by ptmalloc, not tcmalloc. Freeing
it via tcmalloc causes its own crash which pollutes our debugging and
incorrectly sticks tcmalloc into the stack. So, just don't free.
2010-08-20 13:46:25 -07:00
Greg Farnum
0a9820265e mds: fix get_projected_srnode. We might have projected nodes without projected snaprealms 2010-08-20 13:38:10 -07:00
Greg Farnum
ee912be751 mds: remove compiler warning in CInode 2010-08-20 13:24:33 -07:00
Greg Farnum
34dbf80ece mds: fix get_projected_srnode to actually find an srnode,
instead of returning the (possibly NULL) last projected_node has set

Also, add brief documentation.
2010-08-20 13:16:22 -07:00
Greg Farnum
5835a792fb mds: remove unnecessary silent fallout from add_primary_dentry. 2010-08-20 11:47:03 -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
Sage Weil
80c8902d78 mds: return error to client on invalid mds op
e.g., if the client sends a filelock request and we don't support it :)
2010-08-19 22:01:54 -07:00
Sage Weil
4007669c46 mds: fix ENOTEMPTY checking on rmdir/rename
We can't trust the inode rstat size without holding the locks.  We can
look at our auth frags and though without fear of a false positive
ENOTEMPTY, however.

Rename the function, introduce a helper for the locked check, update
comments, etc.
2010-08-19 21:47:19 -07:00