]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
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 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: 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 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 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 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 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>
14 years agodebian: obsync depends on python-xattr
Sage Weil [Fri, 24 Jun 2011 18:05:23 +0000 (11:05 -0700)]
debian: obsync depends on python-xattr

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agocleanup
Sage Weil [Thu, 23 Jun 2011 23:08:08 +0000 (16:08 -0700)]
cleanup

14 years agomon: order degraded before unfound
Sage Weil [Thu, 23 Jun 2011 23:00:38 +0000 (16:00 -0700)]
mon: order degraded before unfound

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: clean up pool/pg_stat_t structs slightly
Sage Weil [Thu, 23 Jun 2011 23:00:19 +0000 (16:00 -0700)]
osd: clean up pool/pg_stat_t structs slightly

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoFileStore: ensure that CLONE_RANGE ranges are aligned
Samuel Just [Thu, 23 Jun 2011 18:13:40 +0000 (11:13 -0700)]
FileStore: ensure that CLONE_RANGE ranges are aligned

Signed-off-by: Samuel Just <samuel.just@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 agoReplicatedPG: make sure that rollback target is not degraded
Samuel Just [Fri, 24 Jun 2011 18:03:34 +0000 (11:03 -0700)]
ReplicatedPG: make sure that rollback target is not degraded

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoReplicatedPG,OSD: clone srces need to be non-degraded
Samuel Just [Fri, 24 Jun 2011 18:03:01 +0000 (11:03 -0700)]
ReplicatedPG,OSD: clone srces need to be non-degraded

do_op: check that clone_range src sobjects are present on
replicas as well.  Also, clean up src_obc map if we encounter an error
before returning.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agolibceph: build without globals
Colin Patrick McCabe [Fri, 24 Jun 2011 17:44:28 +0000 (10:44 -0700)]
libceph: build without globals

libceph, libosdc, libclient: depend on libcommon rather than libglobal.
No more globals in libceph.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibceph: de-globalize
Colin Patrick McCabe [Thu, 23 Jun 2011 22:51:39 +0000 (15:51 -0700)]
libceph: de-globalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agofilestore: remove warning
Yehuda Sadeh [Fri, 24 Jun 2011 17:44:54 +0000 (10:44 -0700)]
filestore: remove warning

14 years agoFiler, Journaler: deglobalize
Colin Patrick McCabe [Fri, 24 Jun 2011 17:32:35 +0000 (10:32 -0700)]
Filer, Journaler: deglobalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoObjectCacher.cc: de-globalize
Colin Patrick McCabe [Fri, 24 Jun 2011 00:25:27 +0000 (17:25 -0700)]
ObjectCacher.cc: de-globalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: restructure permissions verification
Yehuda Sadeh [Fri, 24 Jun 2011 00:04:47 +0000 (17:04 -0700)]
rgw: restructure permissions verification

apparently 100-continue was broken

14 years agofilestore: don't bother doing fiemap on small ranges
Yehuda Sadeh [Thu, 23 Jun 2011 22:11:16 +0000 (15:11 -0700)]
filestore: don't bother doing fiemap on small ranges

14 years agoMerge remote branch 'origin/osd_metrics'
Sage Weil [Thu, 23 Jun 2011 23:27:29 +0000 (16:27 -0700)]
Merge remote branch 'origin/osd_metrics'

14 years agoupdate .gitignore
Sage Weil [Thu, 23 Jun 2011 23:26:16 +0000 (16:26 -0700)]
update .gitignore

14 years agoclient/Client.cc: deglobalize
Colin Patrick McCabe [Thu, 23 Jun 2011 23:16:40 +0000 (16:16 -0700)]
client/Client.cc: deglobalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoqa: wget -q for kenrel_untar_build.sh
Sage Weil [Thu, 23 Jun 2011 22:55:58 +0000 (15:55 -0700)]
qa: wget -q for kenrel_untar_build.sh

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agolibrgw: eliminate globals
Colin Patrick McCabe [Thu, 23 Jun 2011 22:26:08 +0000 (15:26 -0700)]
librgw: eliminate globals

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoupdate .gitignore
Sage Weil [Thu, 23 Jun 2011 22:46:13 +0000 (15:46 -0700)]
update .gitignore

14 years agolibrados, librbd, librgw: remove dep on libglobal
Colin Patrick McCabe [Thu, 23 Jun 2011 21:06:20 +0000 (14:06 -0700)]
librados, librbd, librgw: remove dep on libglobal

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoosd: reorder, cleanup prologger metrics
Sage Weil [Thu, 23 Jun 2011 22:03:29 +0000 (15:03 -0700)]
osd: reorder, cleanup prologger metrics

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: rip out old peer stat sharing
Sage Weil [Thu, 23 Jun 2011 21:57:07 +0000 (14:57 -0700)]
osd: rip out old peer stat sharing

This never really worked, and has bitrotted, and the stats it's calculating
are mostly redundant anyway.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: rename peer_stat_lock -> stat_lock
Sage Weil [Thu, 23 Jun 2011 21:39:10 +0000 (14:39 -0700)]
osd: rename peer_stat_lock -> stat_lock

It protects osd_stat too.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: instrument osdmap updates
Sage Weil [Thu, 23 Jun 2011 21:36:07 +0000 (14:36 -0700)]
osd: instrument osdmap updates

Messages, epochs, dup epochs.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: clean up numpg*, hb*
Sage Weil [Thu, 23 Jun 2011 21:32:52 +0000 (14:32 -0700)]
osd: clean up numpg*, hb*

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: instrument readable latency too
Sage Weil [Thu, 23 Jun 2011 21:26:34 +0000 (14:26 -0700)]
osd: instrument readable latency too

Time before a write is readable (not necessarily on disk).  Note that if we
get the commit first (e.g. writeahead journal) this value isn't calculated
or logged.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: remove lame rlsum/num
Sage Weil [Thu, 23 Jun 2011 20:45:02 +0000 (13:45 -0700)]
osd: remove lame rlsum/num

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: fix loadavg check
Sage Weil [Thu, 23 Jun 2011 20:44:10 +0000 (13:44 -0700)]
osd: fix loadavg check

Use the syscall, stupid.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>