]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
14 years agoOSD: ReplicatedPG: commits should be high priority, like acks.
Greg Farnum [Wed, 30 Mar 2011 20:30:32 +0000 (13:30 -0700)]
OSD: ReplicatedPG: commits should be high priority, like acks.

This was consistently breaking stuff for some people, as the acks were
high priority but the commits weren't. They should match.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agocosd: fix bind to specific address
Sage Weil [Tue, 29 Mar 2011 23:23:55 +0000 (16:23 -0700)]
cosd: fix bind to specific address

Do not default to public_addr for cluster, heartbeat messengers.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agocmon: fix typo
Sage Weil [Tue, 29 Mar 2011 21:49:09 +0000 (14:49 -0700)]
cmon: fix typo

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoMerge branch 'stable' into next
Sage Weil [Tue, 29 Mar 2011 21:47:57 +0000 (14:47 -0700)]
Merge branch 'stable' into next

Conflicts:
configure.ac
debian/changelog
src/msg/SimpleMessenger.cc

14 years agocmon: add --inject-monmap option
Sage Weil [Tue, 29 Mar 2011 18:58:13 +0000 (11:58 -0700)]
cmon: add --inject-monmap option

This lets you manually inject a monmap into a down monitor.  This is useful
in cases where you need to change the monmap but aren't able to get a
quorum with the old map.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomkcephfs: don't clobber osdmap when importing crushmap
Sage Weil [Tue, 29 Mar 2011 18:20:49 +0000 (11:20 -0700)]
mkcephfs: don't clobber osdmap when importing crushmap

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: include .ceph is root directory
Sage Weil [Fri, 25 Mar 2011 21:34:17 +0000 (14:34 -0700)]
mds: include .ceph is root directory

If the dentry isn't marked dirty _commit_partial won't save it.  This is
caught later by the check_rstats() (or anyone actually trying to use the
/.ceph directory).

Fixes: #938
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: fix client session removal on journal replay
Sage Weil [Fri, 25 Mar 2011 20:50:45 +0000 (13:50 -0700)]
mds: fix client session removal on journal replay

We want to remove the client session from the map as long as it is not
attached to an actual messenger Connection.  This key point got lost
somewhere the last time the session states were restructured.  It is now
explicit.

This fixes the symptom where a recovering MDS reconnect has to time out on
clients that cleanly closed their sessions.

Also, fix a use-after-free when (uselessly) printing the session state.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoFix Debian librados1 -> librados2 package renames
Laszlo Boszormenyi [Fri, 25 Mar 2011 18:47:26 +0000 (19:47 +0100)]
Fix Debian librados1 -> librados2 package renames

The librados2{,-dbg,-dev} packages should conflict with and replace their
librados1{,-dbg,-dev} counterpart.

14 years agoobsync: Remove deadcode
Colin Patrick McCabe [Fri, 25 Mar 2011 19:30:27 +0000 (12:30 -0700)]
obsync: Remove deadcode

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agounits: remove "performance test" from crypto units
Colin Patrick McCabe [Fri, 25 Mar 2011 17:37:49 +0000 (10:37 -0700)]
units: remove "performance test" from crypto units

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agounits: fix cauthtool usage test
Colin Patrick McCabe [Fri, 25 Mar 2011 17:37:33 +0000 (10:37 -0700)]
units: fix cauthtool usage test

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: escape XML attributes
Colin Patrick McCabe [Fri, 25 Mar 2011 00:29:21 +0000 (17:29 -0700)]
rgw: escape XML attributes

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoboto_tool.py: usage fix
Colin Patrick McCabe [Fri, 25 Mar 2011 00:54:59 +0000 (17:54 -0700)]
boto_tool.py: usage fix

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: don't reject requests that don't have bucket
Colin Patrick McCabe [Fri, 25 Mar 2011 17:21:36 +0000 (10:21 -0700)]
rgw: don't reject requests that don't have bucket

Some requests don't specify a bucket. Allow those!

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocommon_init: allow init without config file
Colin Patrick McCabe [Fri, 25 Mar 2011 00:01:51 +0000 (17:01 -0700)]
common_init: allow init without config file

Add a flag, CINIT_FLAG_NO_DEFAULT_CONFIG_FILE, that specifies that the
program should not read a config file by default.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMDSMon: Add mon_force_standby_active config option.
Greg Farnum [Thu, 24 Mar 2011 23:52:06 +0000 (16:52 -0700)]
MDSMon: Add mon_force_standby_active config option.

If this is set to true (which it defaults to), then the mon
will force MDSes configured as mds_standby_replay to become active.
For #893.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agofilestore: fix journaling for writeahead, parallel modes
Sage Weil [Thu, 24 Mar 2011 23:13:21 +0000 (16:13 -0700)]
filestore: fix journaling for writeahead, parallel modes

This was broken by c866536bff5bdd9c31772dfa1e63e2: build_op() clobbers
the local tls, so we need to use o->tls instead.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agofilestore: include stat result (size) in debug output
Sage Weil [Thu, 24 Mar 2011 21:22:05 +0000 (14:22 -0700)]
filestore: include stat result (size) in debug output

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: let single large ops through the throttler
Sage Weil [Thu, 24 Mar 2011 21:21:52 +0000 (14:21 -0700)]
osd: let single large ops through the throttler

Otherwise we block indefinitely on a single op that's larger than the
throttler limit.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw: fix str_to_bool
Yehuda Sadeh [Thu, 24 Mar 2011 21:24:11 +0000 (14:24 -0700)]
rgw: fix str_to_bool

14 years agorgw: don't validate bucket/object names if name is empty
Yehuda Sadeh [Thu, 24 Mar 2011 21:16:15 +0000 (14:16 -0700)]
rgw: don't validate bucket/object names if name is empty

14 years agoboto_tool rework
Colin Patrick McCabe [Thu, 24 Mar 2011 18:46:28 +0000 (11:46 -0700)]
boto_tool rework

Change boto_tool to have more functionality.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMerge branch 'master' of ssh://ceph.newdream.net/git/ceph
Yehuda Sadeh [Thu, 24 Mar 2011 19:12:10 +0000 (12:12 -0700)]
Merge branch 'master' of ssh://ceph.newdream.net/git/ceph

14 years agorgw: path paramter for pseudo folders
Yehuda Sadeh [Thu, 24 Mar 2011 19:11:41 +0000 (12:11 -0700)]
rgw: path paramter for pseudo folders

14 years agomds: drop dead journal flush code
Sage Weil [Thu, 24 Mar 2011 18:54:37 +0000 (11:54 -0700)]
mds: drop dead journal flush code

This is now obsolete.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoMerge branch 'rgw'
Yehuda Sadeh [Thu, 24 Mar 2011 18:48:52 +0000 (11:48 -0700)]
Merge branch 'rgw'

Conflicts:

src/rgw/rgw_common.h

14 years agomds: remove mds_log_unsafe mode
Sage Weil [Thu, 24 Mar 2011 03:58:03 +0000 (20:58 -0700)]
mds: remove mds_log_unsafe mode

The mds_log_unsafe mode would wait for ack for some journal writes, and
safe for others.  Now that we can reply to client requests without waiting
for the journal to flush (as of ~2 years ago), this distinction is no
longer useful.  It is also more error-prone, as it complicates the code
and vastly expands the possible combinations of MDS failures and replay
scenarios we need to verify.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agobucket name: better ip addr detection, allow caps
Colin Patrick McCabe [Thu, 24 Mar 2011 17:41:08 +0000 (10:41 -0700)]
bucket name: better ip addr detection, allow caps

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agovalidate_bucket_name: loosen up
Colin Patrick McCabe [Thu, 24 Mar 2011 17:27:18 +0000 (10:27 -0700)]
validate_bucket_name: loosen up

Allow users to create bucket names that don't meet the S3
recommendations, but which do meet the spec.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoboto_tool.py: add more bucket interaction stuff
Colin Patrick McCabe [Thu, 24 Mar 2011 17:11:43 +0000 (10:11 -0700)]
boto_tool.py: add more bucket interaction stuff

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomds: reimplement laggy
Sage Weil [Thu, 24 Mar 2011 00:17:44 +0000 (17:17 -0700)]
mds: reimplement laggy

The goal is for the MDS to stop processing requests when it hasn't heard
from the monitors, to avoid a situation where a rogue process goes off
doing its own thing.  Yes, if we fail it over the cmds can't write to the
object store, but it can reply to clients when it may not be appropriate
or good to do so.

The old logic was fragile and wonky, with messages getting deferred, and
then re-deferred.  This implementation is much cleaner and should be much
more efficient and less fragile.  There are still improvements to be made
as far as which messages we do/do not process when we think we're laggy.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomds: check safe_pos for _expired check
Sage Weil [Thu, 24 Mar 2011 03:50:12 +0000 (20:50 -0700)]
mds: check safe_pos for _expired check

Don't expire a log segment until it's committed (not acked).

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomds: skip redundant flush before journal segment trim
Sage Weil [Thu, 24 Mar 2011 03:37:04 +0000 (20:37 -0700)]
mds: skip redundant flush before journal segment trim

Back in olden times when we would would wait for acks for some journal
writes, we did an extra wait_for_safe() before discarding a journal segment
to make sure anything being discarded was safely committed in newers
segments.  These days mds_log_unsafe is always false (and
journaler_safe is true), so we can skip this check.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomds: assert on mds table write error
Sage Weil [Thu, 24 Mar 2011 03:19:08 +0000 (20:19 -0700)]
mds: assert on mds table write error

Do not silently ignore a write failure.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: factor pg get-or-create code into common helper
Sage Weil [Tue, 22 Mar 2011 04:38:36 +0000 (21:38 -0700)]
osd: factor pg get-or-create code into common helper

handle_pg_notify and _process_pg_info both lookup or create a PG based
on an incoming message.  Factor that code into a common helper.  There
were a few differences in that the pg notify handler code deals with
more cases (namely, pg creation), but this is harmless for the more
general _process_pg_info caller.

Closes: #577
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agocalc_hmac_sha: fix access-past-end-of-buffer
Colin Patrick McCabe [Thu, 24 Mar 2011 05:42:02 +0000 (22:42 -0700)]
calc_hmac_sha: fix access-past-end-of-buffer

Fix a place where we access a buffer past the end of its length. Clean
up the function a bit.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoUse macro for digest size, part 2: tests
Colin Patrick McCabe [Thu, 24 Mar 2011 01:49:04 +0000 (18:49 -0700)]
Use macro for digest size, part 2: tests

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomkcephfs: minor fixes
Samuel Just [Wed, 23 Mar 2011 20:52:28 +0000 (13:52 -0700)]
mkcephfs: minor fixes

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agodo_autogen: create radosgw
Colin Patrick McCabe [Thu, 24 Mar 2011 00:33:35 +0000 (17:33 -0700)]
do_autogen: create radosgw

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoRGW: validate bucket names and object names
Colin Patrick McCabe [Wed, 23 Mar 2011 17:02:17 +0000 (10:02 -0700)]
RGW: validate bucket names and object names

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomds: add FIXME for renames between snaprealms
Sage Weil [Wed, 23 Mar 2011 23:54:33 +0000 (16:54 -0700)]
mds: add FIXME for renames between snaprealms

The lock gather may be sufficient to propagate the updated snaprealm to
the replica; it might not. See #925.

See: #926
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoFileStore: replace op_queue_throttle with op_queue_reserve_throttle
Samuel Just [Tue, 22 Mar 2011 21:52:15 +0000 (14:52 -0700)]
FileStore: replace op_queue_throttle with op_queue_reserve_throttle

Previously, queue_op would call op_queue_throttle while holding the
journal_lock.  op_queue_throttle, however, can sleep.

We fix the problem by:
1) Factor build_op out of queue_op
2) op_queue_throttle is now op_queue_reserve_throttle and takes an op as
an argument.  op_queue_reserve_throttle can be called before the journal
lock is taken.  This also avoids the race between calling throttle and
incrementing op_queue_bytes and op_queue_len.
3) queue_op now takes the op generated using build_op as an argument.
4) _journaled_ahead no longer needs to call throttle as
queue_transactions has already reserved space.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agomds: add FIXME for snaprealm on rename slave
Sage Weil [Wed, 23 Mar 2011 23:53:10 +0000 (16:53 -0700)]
mds: add FIXME for snaprealm on rename slave

Replicas don't get the snaprealm opened or updated on rename.

For example:
  everything on mds0
  mksnap on /foo
  /foo/bar has a replica on mds1
  rename /foo/bar /bar
  -> a snaprealm will get created for /bar on mds0
  -> mds1 currently does not do anything about that... it needs to get an
     accurate replica of the snaprealm portion of the inode, either from
     the master, or via a lock update, or something.

See: #925
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw: dump content type when listing objects (swift)
Yehuda Sadeh [Wed, 23 Mar 2011 23:50:21 +0000 (16:50 -0700)]
rgw: dump content type when listing objects (swift)

14 years agomds: remove bad open_snaprealm()
Sage Weil [Wed, 23 Mar 2011 23:46:07 +0000 (16:46 -0700)]
mds: remove bad open_snaprealm()

This was added in b438b3d65b478a25ae1b9cab2cdd16c851d65fc8.  We don't
want it here, though, because this is a _remote_ dentry rename and all
we are doing to the inode is adjusting nlink.  No snaprealms are involved
because the inode isn't moving in the namespace.

The question is what realm we meant to open... :/

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: simplify _rename_apply branching
Sage Weil [Wed, 23 Mar 2011 23:36:01 +0000 (16:36 -0700)]
mds: simplify _rename_apply branching

No need to set temporary; just move the second block into the first.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw: support pseudo folders in swift
Yehuda Sadeh [Wed, 23 Mar 2011 22:56:21 +0000 (15:56 -0700)]
rgw: support pseudo folders in swift

14 years agoceph_crypto: fix undefined references
Colin Patrick McCabe [Wed, 23 Mar 2011 22:23:57 +0000 (15:23 -0700)]
ceph_crypto: fix undefined references

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoboto_del.py -> boto_tool.py
Colin Patrick McCabe [Wed, 23 Mar 2011 21:43:25 +0000 (14:43 -0700)]
boto_del.py -> boto_tool.py

boto_tool.py has some additional functionality.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoobsync: remove obsolete cmdline options
Colin Patrick McCabe [Wed, 23 Mar 2011 21:41:33 +0000 (14:41 -0700)]
obsync: remove obsolete cmdline options

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: generated swift urls are more compatble with openstack
Yehuda Sadeh [Wed, 23 Mar 2011 20:53:52 +0000 (13:53 -0700)]
rgw: generated swift urls are more compatble with openstack

14 years agoMerge branch 'master' of ssh://ceph.newdream.net/git/ceph
Yehuda Sadeh [Wed, 23 Mar 2011 20:22:49 +0000 (13:22 -0700)]
Merge branch 'master' of ssh://ceph.newdream.net/git/ceph

14 years agorgw: fix compilation warning
Yehuda Sadeh [Wed, 23 Mar 2011 20:22:23 +0000 (13:22 -0700)]
rgw: fix compilation warning

14 years agorgw: change the swift auth config a bit
Yehuda Sadeh [Wed, 23 Mar 2011 19:07:25 +0000 (12:07 -0700)]
rgw: change the swift auth config a bit

14 years agocontext: conditional context debugging
Sage Weil [Wed, 23 Mar 2011 16:43:51 +0000 (09:43 -0700)]
context: conditional context debugging

Mainly C_Gather, which is a reasonably frequent source of pain.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoRename objsync -> obsync
Colin Patrick McCabe [Wed, 23 Mar 2011 16:29:57 +0000 (09:29 -0700)]
Rename objsync -> obsync

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd boto_del.py
Colin Patrick McCabe [Wed, 23 Mar 2011 01:05:19 +0000 (18:05 -0700)]
Add boto_del.py

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd boto_del.py
Colin Patrick McCabe [Wed, 23 Mar 2011 01:05:19 +0000 (18:05 -0700)]
Add boto_del.py

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: save roundtrip when reading user info
Yehuda Sadeh [Wed, 23 Mar 2011 00:07:15 +0000 (17:07 -0700)]
rgw: save roundtrip when reading user info

14 years agoMerge branch 'rgw' of ssh://ceph.newdream.net/git/ceph into rgw
Yehuda Sadeh [Tue, 22 Mar 2011 23:41:05 +0000 (16:41 -0700)]
Merge branch 'rgw' of ssh://ceph.newdream.net/git/ceph into rgw

14 years agorgw: self signed tokens
Yehuda Sadeh [Tue, 22 Mar 2011 23:40:12 +0000 (16:40 -0700)]
rgw: self signed tokens

14 years agorgw: keep user info copy in the indexes
Yehuda Sadeh [Tue, 22 Mar 2011 19:10:00 +0000 (12:10 -0700)]
rgw: keep user info copy in the indexes

We index user by email and by openstack id, keeping a copy of the
user info structure there saves a round trip.

14 years agorgw: store openstack secret as part of the user info
Yehuda Sadeh [Tue, 22 Mar 2011 18:32:31 +0000 (11:32 -0700)]
rgw: store openstack secret as part of the user info

14 years agolibrbd: remove RBD_MAX_SEG_NAME_SIZE
Josh Durgin [Tue, 22 Mar 2011 21:58:15 +0000 (14:58 -0700)]
librbd: remove RBD_MAX_SEG_NAME_SIZE

The only use of this was incorrect - block_name has size RBD_MAX_BLOCK_NAME_SIZE.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agocommon: Add utf8 validation functions, test
Colin Patrick McCabe [Tue, 22 Mar 2011 14:20:58 +0000 (07:20 -0700)]
common: Add utf8 validation functions, test

Add utility functions for validating a buffer as valid UTF-8.

Add a unit test to check the functions.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: remove strerror references
Colin Patrick McCabe [Tue, 22 Mar 2011 14:26:55 +0000 (07:26 -0700)]
rgw: remove strerror references

We have cpp_strerror, let's use it and be threadsafe!

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocommon: Add utf8 validation functions, test
Colin Patrick McCabe [Tue, 22 Mar 2011 14:20:58 +0000 (07:20 -0700)]
common: Add utf8 validation functions, test

Add utility functions for validating a buffer as valid UTF-8.

Add a unit test to check the functions.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomds: fix mdsmap dump formatting
Sage Weil [Tue, 22 Mar 2011 16:06:15 +0000 (09:06 -0700)]
mds: fix mdsmap dump formatting

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoRename osync to objsync
Colin Patrick McCabe [Tue, 22 Mar 2011 11:15:22 +0000 (04:15 -0700)]
Rename osync to objsync

Rename osync to objsync to avoid confusion with O_SYNC.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoRename osync to objsync
Colin Patrick McCabe [Tue, 22 Mar 2011 11:15:22 +0000 (04:15 -0700)]
Rename osync to objsync

Rename osync to objsync to avoid confusion with O_SYNC.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMerge branch 'rgw'
Colin Patrick McCabe [Tue, 22 Mar 2011 10:02:20 +0000 (03:02 -0700)]
Merge branch 'rgw'

14 years agoMerge branch 'rgw'
Yehuda Sadeh [Tue, 22 Mar 2011 16:39:08 +0000 (09:39 -0700)]
Merge branch 'rgw'

14 years agoCDir: make check_rstats friendlier.
Greg Farnum [Tue, 22 Mar 2011 00:37:12 +0000 (17:37 -0700)]
CDir: make check_rstats friendlier.

Only fail asserts if mds_debug_scatterstat is enabled.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoMDCache: make linkunlink rstat propagation work properly.
Greg Farnum [Fri, 18 Mar 2011 21:25:45 +0000 (14:25 -0700)]
MDCache: make linkunlink rstat propagation work properly.

We could be in a lock state (ie, gather) where we can't take new locks.
But if we're in this function for linkunlink we have to already have
a lock, so in that case make sure the function succeeds and assert
that we do have a lock.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoMDCache: set up rstats properly in create_system_inode.
Greg Farnum [Wed, 16 Mar 2011 00:08:42 +0000 (17:08 -0700)]
MDCache: set up rstats properly in create_system_inode.

Fix the previous users to deal with this, including
create_mydir_hierarchy which was completely broken.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoMDCache: properly update and project the stats when removing inodes.
Sage Weil [Tue, 15 Mar 2011 20:50:54 +0000 (13:50 -0700)]
MDCache: properly update and project the stats when removing inodes.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomds: add check_rstats function and a few users.
Greg Farnum [Tue, 15 Mar 2011 18:57:09 +0000 (11:57 -0700)]
mds: add check_rstats function and a few users.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoosync: implement delete-before and delete-after
Colin Patrick McCabe [Mon, 21 Mar 2011 18:10:10 +0000 (11:10 -0700)]
osync: implement delete-before and delete-after

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoosync: add osync-test.sh
Colin Patrick McCabe [Mon, 21 Mar 2011 20:46:06 +0000 (13:46 -0700)]
osync: add osync-test.sh

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMerge branch 'master' into rgw
Yehuda Sadeh [Mon, 21 Mar 2011 21:14:38 +0000 (14:14 -0700)]
Merge branch 'master' into rgw

Conflicts:

debian/control

14 years agorgw: fix logging env variable name
Yehuda Sadeh [Mon, 21 Mar 2011 19:34:09 +0000 (12:34 -0700)]
rgw: fix logging env variable name

14 years agocosd: Close TEXT_RED with TEXT_NORMAL in a few places.
Greg Farnum [Mon, 21 Mar 2011 18:55:38 +0000 (11:55 -0700)]
cosd: Close TEXT_RED with TEXT_NORMAL in a few places.

Guess these got missed or typoed on creation or something.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoosync-test: test --delete in bucket-to-bucket xfer
Colin Patrick McCabe [Mon, 21 Mar 2011 17:51:20 +0000 (10:51 -0700)]
osync-test: test --delete in bucket-to-bucket xfer

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoosync-test.py: test --dry-run, --delete stuff
Colin Patrick McCabe [Mon, 21 Mar 2011 17:16:41 +0000 (10:16 -0700)]
osync-test.py: test --dry-run, --delete stuff

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoosync: implement --dry-run option
Colin Patrick McCabe [Mon, 21 Mar 2011 17:00:12 +0000 (10:00 -0700)]
osync: implement --dry-run option

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorpm: package python bindings for rados
Ruben Kerkhof [Mon, 21 Mar 2011 15:43:47 +0000 (08:43 -0700)]
rpm: package python bindings for rados

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoosync-test.sh: test bucket-to-bucket transfers
Colin Patrick McCabe [Mon, 21 Mar 2011 16:42:24 +0000 (09:42 -0700)]
osync-test.sh: test bucket-to-bucket transfers

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoosync: add AKEY and SKEY
Colin Patrick McCabe [Mon, 21 Mar 2011 16:35:31 +0000 (09:35 -0700)]
osync: add AKEY and SKEY

Add AKEY and SKEY, for when you want to keys / secret keys to be the
same for both source and destination.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoosync: fix automatic bucket creation
Colin Patrick McCabe [Mon, 21 Mar 2011 16:32:55 +0000 (09:32 -0700)]
osync: fix automatic bucket creation

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoosync: add alternate syntax for file:// transfers
Colin Patrick McCabe [Mon, 21 Mar 2011 16:17:31 +0000 (09:17 -0700)]
osync: add alternate syntax for file:// transfers

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoosync-test: test file-to-bucket transfers
Colin Patrick McCabe [Mon, 21 Mar 2011 16:11:26 +0000 (09:11 -0700)]
osync-test: test file-to-bucket transfers

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoosync: add SRC_AKEY, etc. environment variables
Colin Patrick McCabe [Mon, 21 Mar 2011 14:36:23 +0000 (07:36 -0700)]
osync: add SRC_AKEY, etc. environment variables

Add SRC_AKEY, SRC_SKEY, DST_AKEY, and DST_SKEY. This allows us to
synchronize between buckets with different authentication
configurations.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agov0.25.2 v0.25.2
Sage Weil [Mon, 21 Mar 2011 04:08:09 +0000 (21:08 -0700)]
v0.25.2

14 years agoFix manpage typos
Laszlo Boszormenyi [Sun, 20 Mar 2011 12:10:40 +0000 (13:10 +0100)]
Fix manpage typos

Close escape names correctly.

14 years agoRemove unused cdbs build dependency
Laszlo Boszormenyi [Sun, 20 Mar 2011 11:44:36 +0000 (12:44 +0100)]
Remove unused cdbs build dependency

Debian packaging uses debhelper and not cdbs; remove that build dependency.

14 years agoChange wording of Debian package descriptions
Laszlo Boszormenyi [Sun, 20 Mar 2011 11:17:01 +0000 (12:17 +0100)]
Change wording of Debian package descriptions

Be more general in naming users per policy recommendation.

14 years agoMake Ceph Debian packaging Linux only
Laszlo Boszormenyi [Sun, 20 Mar 2011 07:36:27 +0000 (08:36 +0100)]
Make Ceph Debian packaging Linux only

Build Ceph on all Linux archs, but only build-depend google-perftools on
x86 and x64 archs only.

14 years agoDisable libatomic-ops on armel archs
Laszlo Boszormenyi [Sun, 20 Mar 2011 07:23:22 +0000 (08:23 +0100)]
Disable libatomic-ops on armel archs

armel supports ARMv4t or above instructions sets.
libatomic-ops is only usable with Ceph for ARMv6 or above.

Signed-off-by: Hector Oron <zumbi@debian.org>
14 years agoAdd cross compilation support
Laszlo Boszormenyi [Sat, 19 Mar 2011 19:36:10 +0000 (20:36 +0100)]
Add cross compilation support

Taken from Debian bugreport #618939 , courtesy by Hector Oron.

Signed-off-by: Hector Oron <zumbi@debian.org>