]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
14 years agolibrados: get reference to the io context for the pending async ops
Yehuda Sadeh [Fri, 3 Jun 2011 21:09:34 +0000 (14:09 -0700)]
librados: get reference to the io context for the pending async ops

14 years agorgw: use clone_range for multi upload completion
Yehuda Sadeh [Fri, 3 Jun 2011 21:02:51 +0000 (14:02 -0700)]
rgw: use clone_range for multi upload completion

14 years agolibrados: support clone_range
Yehuda Sadeh [Fri, 3 Jun 2011 18:22:11 +0000 (11:22 -0700)]
librados: support clone_range

14 years agoMerge branch 'osd_clonerange' into rgw-multipart
Yehuda Sadeh [Fri, 3 Jun 2011 16:14:39 +0000 (09:14 -0700)]
Merge branch 'osd_clonerange' into rgw-multipart

14 years agorgw: multipart: use locator on created parts
Yehuda Sadeh [Thu, 2 Jun 2011 23:58:27 +0000 (16:58 -0700)]
rgw: multipart: use locator on created parts

14 years agorgw: multipart additions and fixes
Yehuda Sadeh [Thu, 2 Jun 2011 22:24:11 +0000 (15:24 -0700)]
rgw: multipart additions and fixes

14 years agorgw: some more multipard upload list
Yehuda Sadeh [Thu, 2 Jun 2011 20:45:20 +0000 (13:45 -0700)]
rgw: some more multipard upload list

14 years agorgw: extend multipart list parts response
Yehuda Sadeh [Thu, 2 Jun 2011 20:33:49 +0000 (13:33 -0700)]
rgw: extend multipart list parts response

14 years agoosd: implement clonerange
Sage Weil [Thu, 2 Jun 2011 20:22:59 +0000 (13:22 -0700)]
osd: implement clonerange

Clone ranges of bytes between objects, provided

 - src object locators match dest object
 - src objects are not missing
 - src objects are all head (CEPH_NOSNAP)
 -

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: give obc refs to RepGather
Sage Weil [Thu, 2 Jun 2011 20:24:03 +0000 (13:24 -0700)]
osd: give obc refs to RepGather

Just give the ref to RepGather instead of doing a get and put.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorgw: more cleanup
Yehuda Sadeh [Thu, 2 Jun 2011 17:39:18 +0000 (10:39 -0700)]
rgw: more cleanup

14 years agorgw: some cleanup
Yehuda Sadeh [Thu, 2 Jun 2011 17:28:24 +0000 (10:28 -0700)]
rgw: some cleanup

14 years agorgw: multipart upload parser test util
Yehuda Sadeh [Thu, 2 Jun 2011 16:49:30 +0000 (09:49 -0700)]
rgw: multipart upload parser test util

14 years agorgw: fix multipart upload complete parser
Yehuda Sadeh [Thu, 2 Jun 2011 16:39:30 +0000 (09:39 -0700)]
rgw: fix multipart upload complete parser

14 years agorgw: multipart complete fix
Yehuda Sadeh [Thu, 2 Jun 2011 16:30:48 +0000 (09:30 -0700)]
rgw: multipart complete fix

14 years agofilestore: allow clone_range to different offsets
Sage Weil [Thu, 2 Jun 2011 16:19:39 +0000 (09:19 -0700)]
filestore: allow clone_range to different offsets

The old OP_CLONERANGE would only clone a range of bytes at the same offset
in both objects.  Add an OP_CLONERANGE2 op code that adds a dst offset.
Continue to support the old op code so that we can decode old transactions.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agofilestore: fix fallback/slow do_clone_range
Sage Weil [Thu, 2 Jun 2011 16:17:02 +0000 (09:17 -0700)]
filestore: fix fallback/slow do_clone_range

We need to seek to the appropriate offsets on the src and destination
fd's for this to do the right thing.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw: implement list multipart
Yehuda Sadeh [Wed, 1 Jun 2011 22:13:49 +0000 (15:13 -0700)]
rgw: implement list multipart

still partially implemented

14 years agorgw: handle multipart completion
Yehuda Sadeh [Tue, 31 May 2011 23:05:45 +0000 (16:05 -0700)]
rgw: handle multipart completion

still wip

14 years agorgw: parser for multi upload completion
Yehuda Sadeh [Tue, 31 May 2011 22:32:47 +0000 (15:32 -0700)]
rgw: parser for multi upload completion

14 years agorgw: some more xml reshuffling
Yehuda Sadeh [Tue, 31 May 2011 21:59:40 +0000 (14:59 -0700)]
rgw: some more xml reshuffling

14 years agorgw: move generic xml parsing code to some shared location
Yehuda Sadeh [Tue, 31 May 2011 21:31:57 +0000 (14:31 -0700)]
rgw: move generic xml parsing code to some shared location

14 years agoobjecter, osd: clonerange operation
Sage Weil [Tue, 31 May 2011 21:28:52 +0000 (14:28 -0700)]
objecter, osd: clonerange operation

Add a src_oids field to MOSDOp, referenced by a new CLONERANGE osd op type
that will clone data from one object to another.

- The src_oids will need to have the same locator as the destination object
  type to ensure this operation can succeed.
- The OSD is going to have to do extra work to ensure the src object(s)
  are readable, etc., at the time of the clone.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agolibrados: implement aio_flush
Sage Weil [Thu, 28 Apr 2011 04:28:26 +0000 (21:28 -0700)]
librados: implement aio_flush

Implement a per-ioctx flush that blocks until all previously submitted
aio operations on the ioctx are safe.  Each aio gets a sequence number and
is put on a linked list attached to the ioctx.  The flush operation waits
for it to drain to the watermark set when flush is first called.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agocrushtool: error out if uniform weights vary
Sage Weil [Tue, 31 May 2011 20:45:51 +0000 (13:45 -0700)]
crushtool: error out if uniform weights vary

Fixes: #1075
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: fix ScrubFinalizeWQ::_clear condition
Josh Durgin [Tue, 31 May 2011 20:26:58 +0000 (13:26 -0700)]
osd: fix ScrubFinalizeWQ::_clear condition

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agodebian: depend on libboost-dev >= 1.34
Sage Weil [Tue, 31 May 2011 19:58:35 +0000 (12:58 -0700)]
debian: depend on libboost-dev >= 1.34

for statechart.  Partially fixes #1124.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: don't leak Connection reference
Sage Weil [Wed, 25 May 2011 23:22:19 +0000 (16:22 -0700)]
osd: don't leak Connection reference

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: ignore old/stale heartbeat messages
Sage Weil [Wed, 25 May 2011 23:22:06 +0000 (16:22 -0700)]
osd: ignore old/stale heartbeat messages

If we get heartbeat messages from old epochs from peers that are not
current, drop them and mark the connection down.  Even if they are peers
we _should_ have (because we haven't gotten a notify yet to learn about
a pg we should have but don't yet) we have a newer map epoch and will learn
about them shortly, reopening the connection.

Fixes: #1107
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: fix map sharing due to heartbeats
Sage Weil [Wed, 25 May 2011 23:20:26 +0000 (16:20 -0700)]
osd: fix map sharing due to heartbeats

- share the map with the cluster addr
- use the new {note,get}_peer_epoch helpers to do it sanely
- don't share if we're booting; see 818fa33a661

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agocrushtool: add -v verbose for --test mode
Sage Weil [Mon, 30 May 2011 19:37:31 +0000 (12:37 -0700)]
crushtool: add -v verbose for --test mode

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agohadoop: track Hadoop API changes
Colin Patrick McCabe [Fri, 27 May 2011 21:46:19 +0000 (14:46 -0700)]
hadoop: track Hadoop API changes

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: generate random upload id
Yehuda Sadeh [Fri, 27 May 2011 21:22:55 +0000 (14:22 -0700)]
rgw: generate random upload id

14 years agoSimpleMessenger: allow multiple calls to shutdown
Colin Patrick McCabe [Fri, 27 May 2011 21:04:36 +0000 (14:04 -0700)]
SimpleMessenger: allow multiple calls to shutdown

Fixes a case where radostool crashed on an error shutdown.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocommon/Thread.h: const cleanup
Colin Patrick McCabe [Fri, 27 May 2011 21:01:45 +0000 (14:01 -0700)]
common/Thread.h: const cleanup

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: fix signing for some requests
Yehuda Sadeh [Fri, 27 May 2011 20:35:47 +0000 (13:35 -0700)]
rgw: fix signing for some requests

14 years agorgw: serve multipard init upload
Yehuda Sadeh [Fri, 27 May 2011 19:50:27 +0000 (12:50 -0700)]
rgw: serve multipard init upload

still needs to generate a random hidden object, and use rados locator
for accessing it.

14 years agoMerge branch 'wip-obsync'
Colin Patrick McCabe [Fri, 27 May 2011 17:59:21 +0000 (10:59 -0700)]
Merge branch 'wip-obsync'

14 years agomkcephfs: pass config to osdmaptool
Sage Weil [Fri, 27 May 2011 04:37:03 +0000 (21:37 -0700)]
mkcephfs: pass config to osdmaptool

This lets OSDMap::create_simple() see g_conf.osd_pool_default_size when
creating the initial data, metadata, and rbd pools.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agodrop useless cm.txt
Sage Weil [Fri, 27 May 2011 04:31:18 +0000 (21:31 -0700)]
drop useless cm.txt

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosdmap: take default pool size from config
Sage Weil [Fri, 27 May 2011 04:20:55 +0000 (21:20 -0700)]
osdmap: take default pool size from config

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorgw: handle POST requests for s3
Yehuda Sadeh [Thu, 26 May 2011 22:18:48 +0000 (15:18 -0700)]
rgw: handle POST requests for s3

14 years agocrushtool: update help
Sage Weil [Thu, 26 May 2011 22:07:37 +0000 (15:07 -0700)]
crushtool: update help

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoobysnc: rgw target: validate all users
Colin Patrick McCabe [Thu, 26 May 2011 20:28:39 +0000 (13:28 -0700)]
obysnc: rgw target: validate all users

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMerge branch 'wip-obsync'
Colin Patrick McCabe [Thu, 26 May 2011 20:17:03 +0000 (13:17 -0700)]
Merge branch 'wip-obsync'

14 years agomon: remove pg_temp mappings when we delete pools
Sage Weil [Thu, 26 May 2011 20:17:12 +0000 (13:17 -0700)]
mon: remove pg_temp mappings when we delete pools

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agotest-obsync: test sync directly from s3->rgw
Colin Patrick McCabe [Thu, 26 May 2011 20:15:50 +0000 (13:15 -0700)]
test-obsync: test sync directly from s3->rgw

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocrushtool: fix --add-item weight being zero when parent bucket(s) created
Sage Weil [Thu, 26 May 2011 20:12:04 +0000 (13:12 -0700)]
crushtool: fix --add-item weight being zero when parent bucket(s) created

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoobsync: fix bucket creation through rgw target
Colin Patrick McCabe [Thu, 26 May 2011 18:21:23 +0000 (11:21 -0700)]
obsync: fix bucket creation through rgw target

The rgw: target can now create buckets. Add a test.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMerge branch 'stable'
Sage Weil [Thu, 26 May 2011 18:04:03 +0000 (11:04 -0700)]
Merge branch 'stable'

14 years agotest-obsync: test big objects, user-defined xattr
Colin Patrick McCabe [Thu, 26 May 2011 17:25:40 +0000 (10:25 -0700)]
test-obsync: test big objects, user-defined xattr

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomkcephfs: set rdir for local mon setup
Sage Weil [Thu, 26 May 2011 17:19:04 +0000 (10:19 -0700)]
mkcephfs: set rdir for local mon setup

Fixes: #1113
Reported-by: Bernard Grymonpon <bernard@openminds.be>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoinit-ceph: ssh
Sage Weil [Thu, 26 May 2011 16:55:37 +0000 (09:55 -0700)]
init-ceph: ssh

Another bell/whistle.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoobysnc: fix content-type on RGWStore
Colin Patrick McCabe [Thu, 26 May 2011 00:48:02 +0000 (17:48 -0700)]
obysnc: fix content-type on RGWStore

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest-obsync: compare_directory now compares xattrs
Colin Patrick McCabe [Thu, 26 May 2011 00:36:36 +0000 (17:36 -0700)]
test-obsync: compare_directory now compares xattrs

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoceph-pybind-test: test embedded NULLs in data
Colin Patrick McCabe [Wed, 25 May 2011 22:55:22 +0000 (15:55 -0700)]
ceph-pybind-test: test embedded NULLs in data

Test embedded nulls in rados data. Fix a bug in rados.Object.__str__

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoobsync: more fixes for RgwStore
Colin Patrick McCabe [Wed, 25 May 2011 22:49:10 +0000 (15:49 -0700)]
obsync: more fixes for RgwStore

* Fix content-type handling

* add vvprint and use it in Object::equals.

* support RgwStore::prefix

* more tests

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agopybind/rados: correctly return data with NULLs
Colin Patrick McCabe [Wed, 25 May 2011 22:48:31 +0000 (15:48 -0700)]
pybind/rados: correctly return data with NULLs

Correctly handle returning data with embedded NULLs in it.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agopybind/rados.py: throw NoData on ENODATA
Colin Patrick McCabe [Wed, 25 May 2011 22:21:37 +0000 (15:21 -0700)]
pybind/rados.py: throw NoData on ENODATA

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomds: fix canceled lock attempt
Sage Weil [Wed, 25 May 2011 21:54:15 +0000 (14:54 -0700)]
mds: fix canceled lock attempt

If client tries to lock a file, has to wait, and then cancels the attempt,
the client will send an unlock request to unwind its state.

 - the unlock now removes the waiting lock attempt from the wait list
 - when the lock request retries and finds it is no longer on the wait
   list it will fail.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agopybind/rados.py: rados.Object.key should be string
Colin Patrick McCabe [Wed, 25 May 2011 21:22:51 +0000 (14:22 -0700)]
pybind/rados.py: rados.Object.key should be string

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoobysnc: RgwStore: make sure destination users exist
Colin Patrick McCabe [Wed, 25 May 2011 19:58:39 +0000 (12:58 -0700)]
obysnc: RgwStore: make sure destination users exist

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoobsync: fix DST_OWNER
Colin Patrick McCabe [Wed, 25 May 2011 19:36:37 +0000 (12:36 -0700)]
obsync: fix DST_OWNER

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: return EACCES if acl xattr doesn't exist
Yehuda Sadeh [Wed, 25 May 2011 19:32:50 +0000 (12:32 -0700)]
rgw: return EACCES if acl xattr doesn't exist

14 years agoobsync: Add boto_retries, remove rgw_store.prefix
Colin Patrick McCabe [Wed, 25 May 2011 19:05:15 +0000 (12:05 -0700)]
obsync: Add boto_retries, remove rgw_store.prefix

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorados python bindings: handle xattrs with NULL
Colin Patrick McCabe [Wed, 25 May 2011 18:01:16 +0000 (11:01 -0700)]
rados python bindings: handle xattrs with NULL

Handle extended attributes that contain NULL bytes correctly, rather
than treating everything as zero-terminated C strings.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoPG: fix race in _activate_committed
Samuel Just [Wed, 25 May 2011 17:54:27 +0000 (10:54 -0700)]
PG: fix race in _activate_committed

Previously, _activate_committed would access the osdmap epoch racing
with handle_osd_map's osdmap update.  This would allow a message to be
sent from a replica to the primary tagged with the same epoch as
last_warm_restart, though the event actually occured before
last_warm_restart.  Thus the primary would fail to ignore the event and
transition to crashed.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoRgwStore: fix some ACL issues
Colin Patrick McCabe [Wed, 25 May 2011 17:50:15 +0000 (10:50 -0700)]
RgwStore: fix some ACL issues

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest-obysnc.py: support librgw testing
Colin Patrick McCabe [Tue, 24 May 2011 22:39:58 +0000 (15:39 -0700)]
test-obysnc.py: support librgw testing

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoRename RadosStore to RgwStore
Colin Patrick McCabe [Tue, 24 May 2011 21:15:53 +0000 (14:15 -0700)]
Rename RadosStore to RgwStore

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest-obsync: refactor a little bit
Colin Patrick McCabe [Thu, 19 May 2011 23:33:13 +0000 (16:33 -0700)]
test-obsync: refactor a little bit

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoProper ACL support for rados targets
Colin Patrick McCabe [Wed, 18 May 2011 23:39:18 +0000 (16:39 -0700)]
Proper ACL support for rados targets

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomds: do not shift to EXCL or MIX while rdlocked
Sage Weil [Wed, 18 May 2011 04:29:33 +0000 (21:29 -0700)]
mds: do not shift to EXCL or MIX while rdlocked

There was an old change in file_eval() that was allowing us to switch from
SYNC to MIX or EXCL while there were rdlocks, which either caused lots of
lock thrashing or could (I think) hang things up completely.  This was
from ea10a672, an ancient fix for something related that appears to have
taken out the rdlocked check by accident.

In my tests (one writer, one stat-er), this took things from long stalls
(up to 20 seconds) to very responsive stats.  Yay!

Fixes: #791
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agocrushtool: clean up add-item a bit; don't add item to same bucket twice
Sage Weil [Wed, 25 May 2011 04:14:59 +0000 (21:14 -0700)]
crushtool: clean up add-item a bit; don't add item to same bucket twice

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agocrushtool: fix remove-item
Sage Weil [Wed, 25 May 2011 04:05:47 +0000 (21:05 -0700)]
crushtool: fix remove-item

Scan all buckets instead of doing a tree traverse.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoradosgw_admin: update clitest
Sage Weil [Wed, 25 May 2011 03:30:38 +0000 (20:30 -0700)]
radosgw_admin: update clitest

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomkcephfs.in: print out usage if no actions given
Colin Patrick McCabe [Wed, 25 May 2011 01:16:08 +0000 (18:16 -0700)]
mkcephfs.in: print out usage if no actions given

If the user didn't specify any actions, print out a usage message rather
than silently exiting.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: Fix RGWAccess::init_storage_provider
Colin Patrick McCabe [Wed, 25 May 2011 00:50:24 +0000 (17:50 -0700)]
rgw: Fix RGWAccess::init_storage_provider

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomkcephfs: error out on bad usage
Sage Weil [Wed, 25 May 2011 00:05:30 +0000 (17:05 -0700)]
mkcephfs: error out on bad usage

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomake: fix build for rgw
Yehuda Sadeh [Tue, 24 May 2011 23:40:12 +0000 (16:40 -0700)]
make: fix build for rgw

14 years agorgw_admin: clean warning
Yehuda Sadeh [Tue, 24 May 2011 23:33:11 +0000 (16:33 -0700)]
rgw_admin: clean warning

14 years agoMerge commit 'origin/master' into rgw-multiuser
Yehuda Sadeh [Tue, 24 May 2011 22:30:17 +0000 (15:30 -0700)]
Merge commit 'origin/master' into rgw-multiuser

14 years agorgw_admin: add key create
Yehuda Sadeh [Tue, 24 May 2011 21:29:50 +0000 (14:29 -0700)]
rgw_admin: add key create

14 years agorgw_admin: subuser and key removal
Yehuda Sadeh [Tue, 24 May 2011 21:17:59 +0000 (14:17 -0700)]
rgw_admin: subuser and key removal

14 years agojournaler: tolerate ENOENT when prezeroing
Sage Weil [Wed, 11 May 2011 04:35:50 +0000 (21:35 -0700)]
journaler: tolerate ENOENT when prezeroing

ENOENT is okay and expected.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agotest_common.sh: skip rm before put
Colin Patrick McCabe [Tue, 24 May 2011 19:36:07 +0000 (12:36 -0700)]
test_common.sh: skip rm before put

The rm before the put is unecessary and actually incorrect now.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoradostool: rados put should use write_full
Colin Patrick McCabe [Tue, 24 May 2011 19:34:56 +0000 (12:34 -0700)]
radostool: rados put should use write_full

If "rados put" uses write instead of write_full, the resulting object on
the server may be a mismash of old and new objects, if the old object
was longer than the new one. This is fairly counterintuitive behavior
for radostool, so remove it.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMerge branch 'wip_ceph_context'
Colin Patrick McCabe [Tue, 24 May 2011 19:22:30 +0000 (12:22 -0700)]
Merge branch 'wip_ceph_context'

14 years agoCreate a libcommon service thread
Colin Patrick McCabe [Mon, 23 May 2011 23:25:57 +0000 (16:25 -0700)]
Create a libcommon service thread

Create a libcommon service thread. Use it to handle SIGHUP.

Handle it by means of a flag that gets set. Using a queue would raise
the complicated question of what to do when the queue was full.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibrados: len should be size_t
Sage Weil [Tue, 24 May 2011 17:00:23 +0000 (10:00 -0700)]
librados: len should be size_t

Unsigned, and size_t because it's a buffer size.

Fixes signedness warning in testrados.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: add ability to explicitly mark unfound as lost
Sage Weil [Tue, 24 May 2011 16:47:06 +0000 (09:47 -0700)]
osd: add ability to explicitly mark unfound as lost

Instead of automatically marking unfound objects lost (once we've tried
every location we can think of), do it when the administator explicitly
says to.  This avoids marking things wrong incorrectly when there are
peering issues, and also allows the administrator to decide whether there
may be offline osds that are worth bringing online.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: make automatically marking of unfound as lost optional
Sage Weil [Tue, 24 May 2011 16:42:39 +0000 (09:42 -0700)]
osd: make automatically marking of unfound as lost optional

We may not want to do this automatically until we have more confidense in
the recovery code.  Even then, possible not.  In particular, the OSDs may
believe they have contact all possible homes for the data even though there
is some long-lost OSD that has the data on disk that if offline.

For now, we make the marking process explicit so that the administrator can
make the call.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: clean up get_or_create_stray
Sage Weil [Tue, 24 May 2011 16:26:40 +0000 (09:26 -0700)]
mds: clean up get_or_create_stray

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: initialize stray_index on startup
Sage Weil [Tue, 24 May 2011 16:24:42 +0000 (09:24 -0700)]
mds: initialize stray_index on startup

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoMerge branch 'stable'
Sage Weil [Tue, 24 May 2011 16:17:24 +0000 (09:17 -0700)]
Merge branch 'stable'

14 years agov0.28.1 v0.28.1
Sage Weil [Tue, 24 May 2011 04:11:44 +0000 (21:11 -0700)]
v0.28.1

14 years agolibrads, libceph: store CephContext
Colin Patrick McCabe [Mon, 23 May 2011 21:02:15 +0000 (14:02 -0700)]
librads, libceph: store CephContext

Don't use the global g_ceph_context. Instead, store the CephContext in
the structures provided by the library user.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd CephContext
Colin Patrick McCabe [Mon, 23 May 2011 17:11:15 +0000 (10:11 -0700)]
Add CephContext

A CephContext represents the context held by a single library user.
There can be multiple CephContexts in the same process.

For daemons and utility programs, there will be only one CephContext.
The CephContext contains the configuration, the dout object, and
anything else that you might want to pass to libcommon with every
function call.

Move some non-config things out of md_config_t and into CephContext.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoSplit common_init_daemonize from common_init_finish
Colin Patrick McCabe [Mon, 23 May 2011 23:29:49 +0000 (16:29 -0700)]
Split common_init_daemonize from common_init_finish

Split off common_init_daemonize from common_init_finish. cfuse is a
daemon that calls common_init_finish, but handles daemonization itself.
This fixes cfuse.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw_admin: make interface a bit more explicit
Yehuda Sadeh [Mon, 23 May 2011 23:52:59 +0000 (16:52 -0700)]
rgw_admin: make interface a bit more explicit