]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
14 years agoMerge branch 'stable'
Sage Weil [Tue, 5 Jul 2011 17:07:11 +0000 (10:07 -0700)]
Merge branch 'stable'

14 years agologrotate.conf: Mark stat/*.log as "missingok"; it's not always there.
Tommi Virtanen [Tue, 5 Jul 2011 17:00:51 +0000 (10:00 -0700)]
logrotate.conf: Mark stat/*.log as "missingok"; it's not always there.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoMerge branch 'stable'
Sage Weil [Tue, 5 Jul 2011 16:18:27 +0000 (09:18 -0700)]
Merge branch 'stable'

14 years agoMove stat/*.log to the end of logrotate.conf
Alexandre Oliva [Mon, 4 Jul 2011 16:14:11 +0000 (13:14 -0300)]
Move stat/*.log to the end of logrotate.conf

Logrotate ignores entries after a rule that doesn't match any files.

Signed-off-by: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: fix file_excl assert
Sage Weil [Tue, 5 Jul 2011 15:58:26 +0000 (08:58 -0700)]
mds: fix file_excl assert

If we are in XSYN state and want to move to anything else, we must go via
EXCL, but we may not be loner anymore.  Weaken the file_excl() assert so we
don't crash.

Reported-by: Fyodor Ustinov <ufm@ufm.su>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoobsync: improve formatting a little bit
Colin Patrick McCabe [Fri, 1 Jul 2011 22:44:33 +0000 (15:44 -0700)]
obsync: improve formatting a little bit

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoobsync: add man page, documentation line
Colin Patrick McCabe [Fri, 1 Jul 2011 22:28:37 +0000 (15:28 -0700)]
obsync: add man page, documentation line

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agobuffer: remove do_cow, clone_in_place
Colin Patrick McCabe [Fri, 1 Jul 2011 17:56:06 +0000 (10:56 -0700)]
buffer: remove do_cow,  clone_in_place

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMerge remote branch 'origin/wip-client'
Sage Weil [Fri, 1 Jul 2011 15:52:07 +0000 (08:52 -0700)]
Merge remote branch 'origin/wip-client'

14 years agolibrados: close very small race condition
Colin Patrick McCabe [Fri, 1 Jul 2011 07:18:42 +0000 (00:18 -0700)]
librados: close very small race condition

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomon: add 'osd create [id]' command
Sage Weil [Fri, 1 Jul 2011 06:17:39 +0000 (23:17 -0700)]
mon: add 'osd create [id]' command

If the id is specified, mark a non-existant osd rank as existant.  The id
must fall within the current [0,max) range.  This is the counterpart of
'osd rm <id>'.

If the id is not specified, allocate an unused osd id and set the EXISTS
flag.  Increase max_osd as needed.

Closes: #1244
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: clean up cap flush methods
Sage Weil [Thu, 30 Jun 2011 20:01:29 +0000 (13:01 -0700)]
client: clean up cap flush methods

We grew several copies of this code, and it turns out none of them were correct.

- assign flush tid in send_cap() helper
- pin inode on (dirty | flushing), not either/both
- add a proper mark_caps_flushing helper

and a bunch of other stuff.  This brings this bit of code in alignment with
the kernel implementation.

And, flush_caps() on cap import.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoMakefile: libmds.a, not libmds.la
Sage Weil [Fri, 1 Jul 2011 05:15:11 +0000 (22:15 -0700)]
Makefile: libmds.a, not libmds.la

We never link this into a .so, so avoid building it again with -fPIC.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomds: fix off-by-one in cow_inode vs snap flushes
Sage Weil [Fri, 1 Jul 2011 05:04:42 +0000 (22:04 -0700)]
mds: fix off-by-one in cow_inode vs snap flushes

We need to wait for the client to flush snapped caps if the client has
not already flushed for the given snap.  If the client has already flushed
caps through the last snapid for the old inode, we do not need to set up
the snapped inode's locks to wait for that.

This fixes an occasional hang on the snaps/snaptest-multiple-capsnaps.sh
workunit.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorgw: fix of users are created suspended
Yehuda Sadeh [Thu, 30 Jun 2011 21:45:32 +0000 (14:45 -0700)]
rgw: fix of users are created suspended

14 years agoFix handling of CEPH_CONF
Colin Patrick McCabe [Thu, 30 Jun 2011 20:42:48 +0000 (13:42 -0700)]
Fix handling of CEPH_CONF

Formerly, CEPH_CONF was not respected by libraries. But now it is.
It overrides the default when reading the config file.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorados: fix warning
Yehuda Sadeh [Thu, 30 Jun 2011 21:00:23 +0000 (14:00 -0700)]
rados: fix warning

14 years agoclient: only send one flushsnap once per mds session
Sage Weil [Thu, 30 Jun 2011 20:44:24 +0000 (13:44 -0700)]
client: only send one flushsnap once per mds session

This mirrors a kclient change a while back (e835124).

We only want to send one flushsnap cap message per MDS session:
 - it's a waste to send multiples
 - the mds will only reply to the first one

If the mds restarts we need to resend.

This fixes a hang where we send multiples, the first (and only) reply is
ignored (due to tid mismatch), and we are left with dangling references to
the inode and hang on umount.  (Reliably reproduced by running the full
snaps/ workunit directory.)

Fixes: #1239
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoMerge branch 'rados-load-gen'
Yehuda Sadeh [Thu, 30 Jun 2011 20:33:28 +0000 (13:33 -0700)]
Merge branch 'rados-load-gen'

14 years agorados tool: load generator
Yehuda Sadeh [Thu, 30 Jun 2011 20:32:59 +0000 (13:32 -0700)]
rados tool: load generator

14 years agoAdd "How to use C_GatherBuilder" comment
Colin Patrick McCabe [Tue, 28 Jun 2011 19:55:45 +0000 (12:55 -0700)]
Add "How to use C_GatherBuilder" comment

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoC_GatherBuilder: add C_GatherBuilder::activate()
Colin Patrick McCabe [Tue, 28 Jun 2011 19:29:17 +0000 (12:29 -0700)]
C_GatherBuilder: add C_GatherBuilder::activate()

Add an activate() function that must be called before we call the
onfinish callback. This is especially important in multi-threaded
contexts, since otherwise if completions come in in the wrong order, we
may delete the C_Gather object right before calling new_sub on it!

Also delete rm_subs because it is redundant with sub_finish.

Finally, num_subs_created, num_subs_remaining are now methods on
C_GatherBuilder rather than C_Gather.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoC_Gather: remove unused "any" option
Colin Patrick McCabe [Tue, 28 Jun 2011 18:43:55 +0000 (11:43 -0700)]
C_Gather: remove unused "any" option

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoC_Gather: hide constructor, convert uses
Colin Patrick McCabe [Tue, 28 Jun 2011 18:40:02 +0000 (11:40 -0700)]
C_Gather: hide constructor, convert uses

Note: this fixes a small memory leak in MDCache::open_snap_parents.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoC_GatherBuilder: more uses, add set_finisher
Colin Patrick McCabe [Tue, 28 Jun 2011 16:53:08 +0000 (09:53 -0700)]
C_GatherBuilder: more uses, add set_finisher

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoFiler.h: use C_GatherBuilder
Colin Patrick McCabe [Tue, 28 Jun 2011 00:40:58 +0000 (17:40 -0700)]
Filer.h: use C_GatherBuilder

Filer.h now uses C_GatherBuilder to avoid memory leaks.

Also, C_GatherBuilder's constructor now takes a Context.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd C_GatherBuilder
Colin Patrick McCabe [Mon, 27 Jun 2011 23:35:36 +0000 (16:35 -0700)]
Add C_GatherBuilder

C_Gather objects are deleted by the last sub-context to execute.
If you create a C_Gather object manually, you must worry about the case
where there are no sub-contexts.

C_GatherBuilder is a little object that sits on the stack that allows
you to build C_Gather objects without worrying about this.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomds/journal.cc: remove deadcode
Colin Patrick McCabe [Mon, 27 Jun 2011 22:39:27 +0000 (15:39 -0700)]
mds/journal.cc: remove deadcode

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd compiler_extensions.h for warn_unused_result
Colin Patrick McCabe [Mon, 27 Jun 2011 22:07:57 +0000 (15:07 -0700)]
Add compiler_extensions.h for warn_unused_result

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoobsync: Depend on python-lxml on Debian derived platforms
Wido den Hollander [Thu, 30 Jun 2011 11:07:12 +0000 (13:07 +0200)]
obsync: Depend on python-lxml on Debian derived platforms

Signed-off-by: Wido den Hollander <wido@widodh.nl>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: don't spew spurious scrub unreserve messages
Samuel Just [Wed, 29 Jun 2011 22:37:23 +0000 (15:37 -0700)]
osd: don't spew spurious scrub unreserve messages

The past primary was sending out scrub unreserve messages to all the
non-primary OSDs in the acting set on a PG state change. They're
spurious since the other OSDs will cancel the scrubs themselves
on state change, and they weren't right anyway because the loop
was looking at all the non-primary OSDs and sending out a message,
which could have excluded the new primary (if it was a replica before)
included other OSDs new to the PG, and included the current OSD.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoclient: more inode ref counting debugging
Sage Weil [Thu, 30 Jun 2011 03:32:59 +0000 (20:32 -0700)]
client: more inode ref counting debugging

blech

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoclient: do not leak MetaRequests on get_or_create() failure
Sage Weil [Wed, 29 Jun 2011 21:57:16 +0000 (14:57 -0700)]
client: do not leak MetaRequests on get_or_create() failure

Avoid leaking in the error paths.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: do not assume MetaRequest's dentries are linked
Sage Weil [Wed, 29 Jun 2011 21:56:42 +0000 (14:56 -0700)]
client: do not assume MetaRequest's dentries are linked

The dentries we reference may have been unlinked prior to us sending this
request.  That's fine as long as we don't dereference a null dentry.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: pin dentries referenced by MetaRequest
Sage Weil [Wed, 29 Jun 2011 21:55:18 +0000 (14:55 -0700)]
client: pin dentries referenced by MetaRequest

Pin dentries referenced by MetaRequest.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: fix dentry ref counting
Sage Weil [Wed, 29 Jun 2011 21:54:28 +0000 (14:54 -0700)]
client: fix dentry ref counting

Before nobody ever pinned dentries except Dirs.  The only valid ref
counts were 0 and 1, and unlink, rename, etc would delete the unlinked
dentry.

Now, ref can by anything > 0.  > 1 means it is also pinned in the LRU.
Unlink/rename ->put() and the last put() deletes (via private destructor).

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorados: some more load-gen work
Yehuda Sadeh [Wed, 29 Jun 2011 22:52:40 +0000 (15:52 -0700)]
rados: some more load-gen work

14 years agomds: fix mds scatter_writebehind starvation
Sage Weil [Wed, 29 Jun 2011 22:23:40 +0000 (15:23 -0700)]
mds: fix mds scatter_writebehind starvation

scatter_writebehind is called by eval_gather on dirty locks, and
eval_gather is called by wrlock_finish on unstable locks when you
drop the last wrlock...and scatter_writebehind force-takes a wrlock.

This meant that a workload like:
seq 3000|xargs -i mkdir a/b/{} &
mkdir a/c
could cause the mkdir a/c to wait until after the other process
finished because rstats can propagate upwards asynchronously, but
mark the directory dirty synchronously, while the mkdir a/c requires
an actual wrlock in order to modify the rstats.

Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomsgr: simply set_ip by using is_blank_ip
Greg Farnum [Wed, 29 Jun 2011 18:00:08 +0000 (11:00 -0700)]
msgr: simply set_ip by using is_blank_ip

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomessenger: rename is_blank_addr to is_blank_ip.
Greg Farnum [Wed, 29 Jun 2011 17:54:15 +0000 (10:54 -0700)]
messenger: rename is_blank_addr to is_blank_ip.

This is a better description of the function.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoclient: make tdout() work in header
Sage Weil [Wed, 29 Jun 2011 22:03:44 +0000 (15:03 -0700)]
client: make tdout() work in header

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorgw: merge chunks for clone range, truncate to 0 before
Yehuda Sadeh [Wed, 29 Jun 2011 20:43:09 +0000 (13:43 -0700)]
rgw: merge chunks for clone range, truncate to 0 before

The truncation to 0 has two purposes: so that if dest was bigger than
source, and we also hit a btrfs bug which we can work around by
doing that.

14 years agoqa: add clone_range tool
Sage Weil [Wed, 29 Jun 2011 19:58:41 +0000 (12:58 -0700)]
qa: add clone_range tool

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoqa: file_layout.sh is kclient only
Sage Weil [Wed, 29 Jun 2011 16:54:55 +0000 (09:54 -0700)]
qa: file_layout.sh is kclient only

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomessenger: add a set_ip function to initialize the IP
Greg Farnum [Wed, 29 Jun 2011 17:46:06 +0000 (10:46 -0700)]
messenger: add a set_ip function to initialize the IP

Previously we only filled in IPs if they were set by the config file
(at startup) or after we connected to the monitor. Unfortunately this
could lead to conditions where the OSD connected to itself without
knowing that's what it was doing, because the cluster_addr IP wasn't
filled in until much too late. We've provided a mechanism for filling
in the IP and do so in OSD::boot_start.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoqa: fix file_layout.sh mode
Sage Weil [Wed, 29 Jun 2011 16:48:15 +0000 (09:48 -0700)]
qa: fix file_layout.sh mode

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoclient: improve debug output a bit
Sage Weil [Wed, 29 Jun 2011 16:15:05 +0000 (09:15 -0700)]
client: improve debug output a bit

...to help track down inode ref count leaks.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomds: fix snaprealm split for dir inode
Sage Weil [Wed, 29 Jun 2011 04:47:01 +0000 (21:47 -0700)]
mds: fix snaprealm split for dir inode

The snaprealm root directory inode belongs to the snaprealm, at least
currently.  This make split_at() consistent with the non-directory case
at the top of the method, and prevents a crash later down the line when we
try to tear down the parent snaprealm and we aren't part of it.

Fixes: #1238
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoqa: move file_layout into workunits/misc
Sage Weil [Wed, 29 Jun 2011 16:51:36 +0000 (09:51 -0700)]
qa: move file_layout into workunits/misc

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoradosgw_admin: fix cli test
Yehuda Sadeh [Wed, 29 Jun 2011 16:37:56 +0000 (09:37 -0700)]
radosgw_admin: fix cli test

14 years agoMerge branch 'master' of ssh://ceph.newdream.net/git/ceph
Yehuda Sadeh [Tue, 28 Jun 2011 23:33:49 +0000 (16:33 -0700)]
Merge branch 'master' of ssh://ceph.newdream.net/git/ceph

14 years agoMerge branch 'master' into rgw
Yehuda Sadeh [Tue, 28 Jun 2011 23:32:43 +0000 (16:32 -0700)]
Merge branch 'master' into rgw

14 years agoradostool: load gen, wip
Yehuda Sadeh [Tue, 28 Jun 2011 23:29:09 +0000 (16:29 -0700)]
radostool: load gen, wip

14 years agoqa: make kernel_untar_build.sh output more helpful
Sage Weil [Tue, 28 Jun 2011 18:09:45 +0000 (11:09 -0700)]
qa: make kernel_untar_build.sh output more helpful

- rm -rv
- list remaining files on failure

to help debug #1230

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agotestceph: test file opens with extra slashes
Greg Farnum [Tue, 28 Jun 2011 21:19:29 +0000 (14:19 -0700)]
testceph: test file opens with extra slashes

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agotestceph: expand test cases
Greg Farnum [Tue, 28 Jun 2011 21:18:58 +0000 (14:18 -0700)]
testceph: expand test cases

Signed-off-by: Richard Sharpe <realrichardsharpe@gmail.com>
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agofilepath: don't parse multiple slashes as multiple dname bits.
Greg Farnum [Tue, 28 Jun 2011 21:13:55 +0000 (14:13 -0700)]
filepath: don't parse multiple slashes as multiple dname bits.

This causes all kinds of trouble if it occurs because most of the
code isn't prepared for it. So prevent that from happening except
on messages that were explicitly created that way.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoResetter: Check return values from Journaler.
Greg Farnum [Tue, 28 Jun 2011 19:37:29 +0000 (12:37 -0700)]
Resetter: Check return values from Journaler.

And clean up the shutdown a bit.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoJournaler: pay attention to return codes from read head.
Greg Farnum [Tue, 28 Jun 2011 19:36:00 +0000 (12:36 -0700)]
Journaler: pay attention to return codes from read head.

Previously we ignored them, except for printing them out. This could
lead to bad things like creating new journals for non-existent MDSes
if you entered an invalid rank during --reset-journal.

Also assert that the stripe unit is valid
before using it as  a divisor.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoReplicatedPG: Fix some obc leaks
Samuel Just [Tue, 28 Jun 2011 16:59:35 +0000 (09:59 -0700)]
ReplicatedPG: Fix some obc leaks

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoPG: simplify merge_log, remove old objects
Samuel Just [Fri, 24 Jun 2011 21:47:19 +0000 (14:47 -0700)]
PG: simplify merge_log, remove old objects

Previously, some old objects could escape removal during a log merge.
This patch also simplifies merge_log somewhat.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoPG: fix add_next_event and merge add_event
Samuel Just [Fri, 24 Jun 2011 00:06:02 +0000 (17:06 -0700)]
PG: fix add_next_event and merge add_event

Previously, we would assume that we had an object at the prior_version
in the log event if we encounter it but don't see the object in missing.
Now, if prior_version < log_tail, we assume that we do not have the
object.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agofilestore: allow FIEMAP to be disabled via conf
Sage Weil [Tue, 28 Jun 2011 17:54:53 +0000 (10:54 -0700)]
filestore: allow FIEMAP to be disabled via conf

The ext4 fiemap ioctl is buggy in some older kernels.  Allow the admin to
disable it.

Fixes: #1222
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoqa: add file_layout.sh workunit
Greg Farnum [Tue, 28 Jun 2011 17:35:05 +0000 (10:35 -0700)]
qa: add file_layout.sh workunit

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomds: make cast explicit to suppress compiler warning.
Greg Farnum [Tue, 28 Jun 2011 16:37:23 +0000 (09:37 -0700)]
mds: make cast explicit to suppress compiler warning.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoMerge branch 'next'
Sage Weil [Tue, 28 Jun 2011 16:41:09 +0000 (09:41 -0700)]
Merge branch 'next'

14 years agotestradospp: fix compilation
Yehuda Sadeh [Tue, 28 Jun 2011 16:18:36 +0000 (09:18 -0700)]
testradospp: fix compilation

14 years agomon: Guard injectargs parsing to prevent crashes on bad input
Greg Farnum [Tue, 28 Jun 2011 15:28:28 +0000 (08:28 -0700)]
mon: Guard injectargs parsing to prevent crashes on bad input

While we're at it, reply to injectargs commands instead of
doing it silently.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomds: Explicitly initialize layout fields, and to the correct values.
Greg Farnum [Tue, 28 Jun 2011 00:03:42 +0000 (17:03 -0700)]
mds: Explicitly initialize layout fields, and to the correct values.

We were previously encoding an fl_pg_preferred of 0, which did
horrible things to the kernel client since 0 is a valid osd to ask for!
To make such things easier to track down in the future, explicitly
fill in defaults when memsetting the struct here.

(There remain other places that memset the struct to zero without
a lot of checks. But we definitely don't want to force them all
to fill in the individual fields, as that's fragile, and since they
don't seem to be breaking anything yet I'm inclined to leave them as
they are.)

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agov0.30 v0.30
Sage Weil [Tue, 28 Jun 2011 03:06:29 +0000 (20:06 -0700)]
v0.30

14 years agodebian: drop python-support version req
Sage Weil [Tue, 28 Jun 2011 05:23:40 +0000 (22:23 -0700)]
debian: drop python-support version req

14 years agorados: encode bufferlist in watch-notify
Yehuda Sadeh [Tue, 28 Jun 2011 00:20:34 +0000 (17:20 -0700)]
rados: encode bufferlist in watch-notify

14 years agorados: encode bufferlist in watch-notify
Yehuda Sadeh [Tue, 28 Jun 2011 00:20:34 +0000 (17:20 -0700)]
rados: encode bufferlist in watch-notify

14 years agorgw: fix some issues with call to clone_range
Yehuda Sadeh [Mon, 27 Jun 2011 19:20:22 +0000 (12:20 -0700)]
rgw: fix some issues with call to clone_range

14 years agorgw: fix clone_range
Yehuda Sadeh [Fri, 24 Jun 2011 23:50:48 +0000 (16:50 -0700)]
rgw: fix clone_range

14 years agorgw: radosgw_admin --help typo
Yehuda Sadeh [Fri, 24 Jun 2011 22:20:46 +0000 (15:20 -0700)]
rgw: radosgw_admin --help typo

14 years agorgw: implement atomic multipart upload, atomic copy
Yehuda Sadeh [Fri, 24 Jun 2011 21:50:01 +0000 (14:50 -0700)]
rgw: implement atomic multipart upload, atomic copy

14 years agorgw: atomic put
Yehuda Sadeh [Fri, 24 Jun 2011 21:09:30 +0000 (14:09 -0700)]
rgw: atomic put

14 years agorgw: radosgw_admin user rm --purge-data
Yehuda Sadeh [Fri, 24 Jun 2011 19:55:25 +0000 (12:55 -0700)]
rgw: radosgw_admin user rm --purge-data

14 years agoconfig: remove unused iat options
Josh Durgin [Mon, 27 Jun 2011 21:57:36 +0000 (14:57 -0700)]
config: remove unused iat options

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agotestceph: actually call closedir on opened directory.
Greg Farnum [Mon, 27 Jun 2011 19:07:36 +0000 (12:07 -0700)]
testceph: actually call closedir on opened directory.

Otherwise testceph hangs because it's still got things open!
Fixes #1228

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoqa: initial commit of file_layout.sh
Greg Farnum [Fri, 24 Jun 2011 01:06:01 +0000 (18:06 -0700)]
qa: initial commit of file_layout.sh

This tests the file layout functionality. Right now you need to
check the comparisons yourself. Expect that to change shortly.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agofiler: no need for tid_t here
Sage Weil [Mon, 27 Jun 2011 18:40:09 +0000 (11:40 -0700)]
filer: no need for tid_t here

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: print cache size during trim for debug
Sage Weil [Mon, 27 Jun 2011 17:10:35 +0000 (10:10 -0700)]
client: print cache size during trim for debug

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoFileStore: fix error in ALIGN and ALIGN_UP
Samuel Just [Sat, 25 Jun 2011 08:22:23 +0000 (01:22 -0700)]
FileStore: fix error in ALIGN and ALIGN_UP

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoradsogw_admin: fix clitest
Sage Weil [Sat, 25 Jun 2011 04:04:38 +0000 (21:04 -0700)]
radsogw_admin: fix clitest

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agotestrados_delete_pool_while_open: fix printf args
Sage Weil [Sat, 25 Jun 2011 03:53:35 +0000 (20:53 -0700)]
testrados_delete_pool_while_open: fix printf args

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoradosgw_admin: --help/-h
Sage Weil [Thu, 23 Jun 2011 03:51:26 +0000 (20:51 -0700)]
radosgw_admin: --help/-h

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agocreate testrados_delete_pool_while_open
Colin Patrick McCabe [Sat, 25 Jun 2011 00:18:16 +0000 (17:18 -0700)]
create testrados_delete_pool_while_open

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoPG: assemble_backlog - fix comparison error, tail is non-inclusive
Samuel Just [Wed, 22 Jun 2011 00:49:24 +0000 (17:49 -0700)]
PG: assemble_backlog - fix comparison error, tail is non-inclusive

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoclient: fix trim_caps
Sage Weil [Fri, 24 Jun 2011 18:19:48 +0000 (11:19 -0700)]
client: fix trim_caps

We can't blindly remove caps from inodes because we need at least one cap
for any inode in our cache.  Try to trim non-essential caps (when there's
>1), otherwise try to drop referring dentries and indirectly release caps
that way.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: fix mds touch
Sage Weil [Fri, 24 Jun 2011 17:51:36 +0000 (10:51 -0700)]
client: fix mds touch

14 years agoclient: prefer auth cap in caps_issued_mask()
Sage Weil [Fri, 24 Jun 2011 17:46:32 +0000 (10:46 -0700)]
client: prefer auth cap in caps_issued_mask()

If we have an auth cap, prefer to touch that one.  This helps consolidate
caps on a single mds and allows mds replicas to eventually recall their
state.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: touch cap on lookup even if we use the dentry lease
Sage Weil [Fri, 24 Jun 2011 17:45:46 +0000 (10:45 -0700)]
client: touch cap on lookup even if we use the dentry lease

Touch the dir cap for the lease's mds even if we use the lease to traverse.
This makes the trim_caps() behave better because it keeps the dentry and
session cap LRUs in sync.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: touch dentries during path traversal
Sage Weil [Fri, 24 Jun 2011 17:38:50 +0000 (10:38 -0700)]
client: touch dentries during path traversal

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agotestrados: add NUM_THREADS
Colin Patrick McCabe [Fri, 24 Jun 2011 23:37:50 +0000 (16:37 -0700)]
testrados: add NUM_THREADS

We can now test librados access with multiple simultaneous threads from
a single process.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years ago.gitignore: update for test_libceph_build
Josh Durgin [Fri, 24 Jun 2011 23:41:54 +0000 (16:41 -0700)]
.gitignore: update for test_libceph_build

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agoglobal_init: make global_init_set_globals static
Colin Patrick McCabe [Fri, 24 Jun 2011 21:30:36 +0000 (14:30 -0700)]
global_init: make global_init_set_globals static

Now that the libraries have been de-globalized, this funtion should only
be used by global_init itself.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoCephFSInterface: de-globalize
Colin Patrick McCabe [Fri, 24 Jun 2011 20:24:10 +0000 (13:24 -0700)]
CephFSInterface: de-globalize

CephFSInterface: de-globalize

liceph: add ceph_get_mount_context

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoFix C_NotifyComplete::notify
Colin Patrick McCabe [Fri, 24 Jun 2011 18:55:13 +0000 (11:55 -0700)]
Fix C_NotifyComplete::notify

C_NotifyComplete::notify was broken in an earlier change where I removed
a derr() without removing the if statement before it.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>