]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
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 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>
14 years agoAdd parallel building support for multi{core,processor} systems.
Laszlo Boszormenyi [Sat, 19 Mar 2011 19:15:17 +0000 (20:15 +0100)]
Add parallel building support for multi{core,processor} systems.

14 years agoCephxProtocol.cc: invalid authorizer data should not crash the osd
Samuel Just [Sat, 19 Mar 2011 00:40:41 +0000 (17:40 -0700)]
CephxProtocol.cc: invalid authorizer data should not crash the osd

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoceph.spec.in: some CentOS fixes
Colin Patrick McCabe [Sat, 19 Mar 2011 00:04:17 +0000 (17:04 -0700)]
ceph.spec.in: some CentOS fixes

BuildRequires: cryptopp-devel has been replaced by nss-devel.  Skip
google-perftools-devel because that package is not available for x86-64.
Add python.

Don't install libcls_rbd.so.1.0.0.debug.

Package crbdnamer and librados-config.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoosync: fix hash compares
Colin Patrick McCabe [Sat, 19 Mar 2011 00:03:09 +0000 (17:03 -0700)]
osync: fix hash compares

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoosync: fix s3store iterator
Colin Patrick McCabe [Fri, 18 Mar 2011 23:22:14 +0000 (16:22 -0700)]
osync: fix s3store iterator

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agopybind: convert to new API
Colin Patrick McCabe [Fri, 18 Mar 2011 18:00:49 +0000 (11:00 -0700)]
pybind: convert to new API

Fix the python bindings to use the new librados API.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agobacktrace: user the proper version header
Sage Weil [Fri, 18 Mar 2011 22:09:26 +0000 (15:09 -0700)]
backtrace: user the proper version header

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agolibceph: use the proper version header
Sage Weil [Fri, 18 Mar 2011 22:08:43 +0000 (15:08 -0700)]
libceph: use the proper version header

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agolibceph: pull version from new version define
Sage Weil [Fri, 18 Mar 2011 21:49:28 +0000 (14:49 -0700)]
libceph: pull version from new version define

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoconfigure: no ~
Sage Weil [Fri, 18 Mar 2011 21:47:09 +0000 (14:47 -0700)]
configure: no ~

This confuses fedora and isn't really necessary.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agouse 'git describe' version
Sage Weil [Fri, 18 Mar 2011 21:23:56 +0000 (14:23 -0700)]
use 'git describe' version

14 years agolibrados: rados_ioctx_lookup -> rados_pool_lookup
Colin Patrick McCabe [Fri, 18 Mar 2011 17:53:39 +0000 (10:53 -0700)]
librados: rados_ioctx_lookup -> rados_pool_lookup

rados_pool_lookup has nothing to do with io contexts!

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibrados: bump minor version number
Colin Patrick McCabe [Fri, 18 Mar 2011 18:31:27 +0000 (11:31 -0700)]
librados: bump minor version number

rados_create_internal -> rados_create_with_config

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibrados: bump minor version number
Colin Patrick McCabe [Fri, 18 Mar 2011 18:31:27 +0000 (11:31 -0700)]
librados: bump minor version number

rados_create_internal -> rados_create_with_config

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibrados: rados_ioctx_lookup -> rados_pool_lookup
Colin Patrick McCabe [Fri, 18 Mar 2011 17:53:39 +0000 (10:53 -0700)]
librados: rados_ioctx_lookup -> rados_pool_lookup

rados_pool_lookup has nothing to do with io contexts!

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agodirect_io_test: use mkstmp instead of mkostemps
Colin Patrick McCabe [Fri, 18 Mar 2011 01:01:36 +0000 (18:01 -0700)]
direct_io_test: use mkstmp instead of mkostemps

mkostemps isn't present in older glibc versions, like the ones in CentOS
5.5. We don't really use any of the extra functionality of mkostemps in
this test.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMakefile: check for new enough version of gtkmm
Colin Patrick McCabe [Fri, 18 Mar 2011 00:50:07 +0000 (17:50 -0700)]
Makefile: check for new enough version of gtkmm

Versions older than 2.13 don't build, so check for that with automake.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoosync: remove some debug printout
Colin Patrick McCabe [Thu, 17 Mar 2011 23:10:36 +0000 (16:10 -0700)]
osync: remove some debug printout

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: dump content length for certain operations
Yehuda Sadeh [Thu, 17 Mar 2011 21:31:30 +0000 (14:31 -0700)]
rgw: dump content length for certain operations

14 years agorgw: handle swift auth requests
Yehuda Sadeh [Thu, 17 Mar 2011 20:07:51 +0000 (13:07 -0700)]
rgw: handle swift auth requests

still doesn't really do anything

14 years agoosync: s3 fixes
Colin Patrick McCabe [Thu, 17 Mar 2011 19:49:51 +0000 (12:49 -0700)]
osync: s3 fixes

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoosync: first version
Colin Patrick McCabe [Wed, 16 Mar 2011 23:33:54 +0000 (16:33 -0700)]
osync: first version

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomsgr: move test binaries to updated msgr bind/start interface
Sage Weil [Thu, 17 Mar 2011 19:06:26 +0000 (12:06 -0700)]
msgr: move test binaries to updated msgr bind/start interface

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomsgr: fix start() return value
Sage Weil [Thu, 17 Mar 2011 19:05:29 +0000 (12:05 -0700)]
msgr: fix start() return value

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoPG,OSD: activate pg during replay
Samuel Just [Tue, 15 Mar 2011 00:25:46 +0000 (17:25 -0700)]
PG,OSD: activate pg during replay

Replay PGs already accept and queue transactions.  PGs will now go to
active during replay in order to simplify the state reported to the user
and to allow recovery to being.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoblobhash: Avoid size_t in templatized hash functions.
Tommi Virtanen [Mon, 14 Mar 2011 18:52:44 +0000 (11:52 -0700)]
blobhash: Avoid size_t in templatized hash functions.

On S/390, the earlier rjhash<size_t> failed with
"no match for call to '(rjhash<long unsigned int>) (size_t&)'".
It seems the rjhash<size_T> logic was only enabled
on some architectures, and relied on some pretty deep
internals of the bit layout (__LP64__).

Use an explicitly 32-bit type as early as possible, and
convert back to size_t only when really needed. This
should work, and simplifies the code. In theory, we might
have a narrower output (size_t might be 64-bit, max value
we now output is 32-bit), but this doesn't matter as this
is only ever used for picking a slot in an in-memory hash
table, hash(key) modulo num_of_buckets, there won't be >4G
buckets.

Closes: #837
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agomsgr: let user explicitly set nonce
Sage Weil [Thu, 17 Mar 2011 18:32:56 +0000 (11:32 -0700)]
msgr: let user explicitly set nonce

There will be problems if two messengers use the same entity_addr_t because
they are on the same ip and choose the same nonce (e.g., because they are
in the same process).  Let the caller sort this out in whatever way it
finds most appropriate.

For libceph, librados, and csyn, all N million to the pid.

Fixes: #877
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoconfig: whitespace fix
Colin Patrick McCabe [Thu, 17 Mar 2011 18:17:12 +0000 (11:17 -0700)]
config: whitespace fix

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoconfig: fix get_val, set_val
Colin Patrick McCabe [Thu, 17 Mar 2011 18:16:01 +0000 (11:16 -0700)]
config: fix get_val, set_val

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibrados: check whether objecter is initialized before shutting it down
Josh Durgin [Thu, 17 Mar 2011 17:28:47 +0000 (10:28 -0700)]
librados: check whether objecter is initialized before shutting it down

Fixes failing unit test Librados.CreateShutdown

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorados tool: fix fd leak in import
Yehuda Sadeh [Wed, 16 Mar 2011 23:51:17 +0000 (16:51 -0700)]
rados tool: fix fd leak in import

14 years agoobjecter: close all sessions when shutdown
Josh Durgin [Wed, 16 Mar 2011 23:43:44 +0000 (16:43 -0700)]
objecter: close all sessions when shutdown

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorgw: fix plain formatting
Yehuda Sadeh [Wed, 16 Mar 2011 23:38:30 +0000 (16:38 -0700)]
rgw: fix plain formatting

14 years agorgw: fix openstack list buckets with plain formatting
Yehuda Sadeh [Wed, 16 Mar 2011 23:14:43 +0000 (16:14 -0700)]
rgw: fix openstack list buckets with plain formatting

14 years agomds: fix replay of fragment ROLLBACK
Sage Weil [Wed, 16 Mar 2011 21:47:46 +0000 (14:47 -0700)]
mds: fix replay of fragment ROLLBACK

In the rollback event the bits are negative.  Replay accordingly.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agocommon: disable log_per_instance for non-daemons
Sage Weil [Wed, 16 Mar 2011 21:39:24 +0000 (14:39 -0700)]
common: disable log_per_instance for non-daemons

Turn off the logging and symlink rotation, not just symlink rotation.

This is a somewhat arbitrary distinction (log per instance only for
daemons), but its only used by vstart and only really useful for
development/debugging, so who cares.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoMakefile: drop libradosgw_a LDFLAGS
Sage Weil [Wed, 16 Mar 2011 21:29:53 +0000 (14:29 -0700)]
Makefile: drop libradosgw_a LDFLAGS

Fixes the warning

src/Makefile.am:299: variable `libradosgw_a_LDFLAGS' is defined but no program or
src/Makefile.am:299: library has `libradosgw_a' as canonic name (possible typo)

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomds: resync fragmentation during cache rejoin
Sage Weil [Wed, 16 Mar 2011 21:25:46 +0000 (14:25 -0700)]
mds: resync fragmentation during cache rejoin

During rejoin we may find that different MDSs have different fragmentation
for directories.  When that happens we should refragment as needed on the
replicas to match what's on the primary.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorgw_admin: show '-' if bucket owner doesn't exist (in log)
Yehuda Sadeh [Wed, 16 Mar 2011 21:51:46 +0000 (14:51 -0700)]
rgw_admin: show '-' if bucket owner doesn't exist (in log)

14 years agorados_create: correctly handle null id
Colin Patrick McCabe [Wed, 16 Mar 2011 21:21:25 +0000 (14:21 -0700)]
rados_create: correctly handle null id

Passing a null id to rados_create means "use the default id."

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibrados: always call keyring_init in connect
Colin Patrick McCabe [Wed, 16 Mar 2011 21:18:28 +0000 (14:18 -0700)]
librados: always call keyring_init in connect

Formerly only the C interface was calling keyring_init in connect!

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibrados: don't call keyring_init in init_internal
Colin Patrick McCabe [Wed, 16 Mar 2011 21:18:03 +0000 (14:18 -0700)]
librados: don't call keyring_init in init_internal

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoobjecter: make response_data bufferlist static
Sage Weil [Wed, 16 Mar 2011 17:03:38 +0000 (10:03 -0700)]
objecter: make response_data bufferlist static

Putting it on the heap unnecessary additional complexity.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorados_create_internal calls keyring_init
Yehuda Sadeh [Wed, 16 Mar 2011 20:38:58 +0000 (13:38 -0700)]
rados_create_internal calls keyring_init

14 years agorados_create: set id based on parameter
Colin Patrick McCabe [Wed, 16 Mar 2011 19:25:02 +0000 (12:25 -0700)]
rados_create: set id based on parameter

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibrados: add rados_create_internal
Colin Patrick McCabe [Wed, 16 Mar 2011 18:33:08 +0000 (11:33 -0700)]
librados: add rados_create_internal

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMerge commit 'origin/rgw_librados_priv' into rgw
Yehuda Sadeh [Wed, 16 Mar 2011 19:04:53 +0000 (12:04 -0700)]
Merge commit 'origin/rgw_librados_priv' into rgw

14 years agorgw: use rados::init_internal
Colin Patrick McCabe [Wed, 16 Mar 2011 18:52:32 +0000 (11:52 -0700)]
rgw: use rados::init_internal

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibrados: add rados_create_internal
Colin Patrick McCabe [Wed, 16 Mar 2011 18:33:08 +0000 (11:33 -0700)]
librados: add rados_create_internal

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agofilestore: return negative error code if open fails
Josh Durgin [Wed, 16 Mar 2011 18:21:47 +0000 (11:21 -0700)]
filestore: return negative error code if open fails

ENOENT was being treated as a read of length 2, causing #890.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorgw: merge crypto changes
Yehuda Sadeh [Wed, 16 Mar 2011 17:57:48 +0000 (10:57 -0700)]
rgw: merge crypto changes

14 years agoMerge commit 'origin/master' into rgw
Yehuda Sadeh [Wed, 16 Mar 2011 17:45:43 +0000 (10:45 -0700)]
Merge commit 'origin/master' into rgw

Conflicts:

src/Makefile.am
src/rados.cc
src/rgw/rgw_admin.cc
src/rgw/rgw_main.cc
src/rgw/rgw_rest.cc

14 years agoinit-ceph, mkcephfs: fix $name normalization
Sage Weil [Wed, 16 Mar 2011 05:23:46 +0000 (22:23 -0700)]
init-ceph, mkcephfs: fix $name normalization

Strip leading . only, to tolerate osd0 and osd.0.

This also turns osd.....foo -> osd.foo, but that's better than
osd.foo.bar -> osd.foobar.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoinit-ceph: use consistent $type.$id naming
Sage Weil [Wed, 16 Mar 2011 05:21:06 +0000 (22:21 -0700)]
init-ceph: use consistent $type.$id naming

Use $type.$id, regardless of what the user uses.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: only update last_epoch_started after all replicas commit peering results
Sage Weil [Wed, 16 Mar 2011 05:18:45 +0000 (22:18 -0700)]
osd: only update last_epoch_started after all replicas commit peering results

The PG info.history.last_epoch_started is important because it bounds how
far back in time we think we need to look in order to fully recover the
contents of the PG.  That's because every replica commits the PG peering
result (the info and pg log) when it activates.

In order for this to work properly, we can only advance last_epoch_started
_after_ the peer results are stable on disk on all replicas.  Otherwise a
poorly timed failure (or set of failures) could lose the PG peer results
and we wouldn't go back far enough in time to find them.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoMerge remote branch 'origin/stable'
Sage Weil [Wed, 16 Mar 2011 03:57:16 +0000 (20:57 -0700)]
Merge remote branch 'origin/stable'

14 years agorgw: explicit case mtime to uint64 before encoding/decoding
Yehuda Sadeh [Wed, 16 Mar 2011 00:17:22 +0000 (17:17 -0700)]
rgw: explicit case mtime to uint64 before encoding/decoding

14 years agorados tool: export bucket
Yehuda Sadeh [Wed, 16 Mar 2011 00:16:23 +0000 (17:16 -0700)]
rados tool: export bucket

14 years agologging: don't add --debug
Colin Patrick McCabe [Tue, 15 Mar 2011 21:47:48 +0000 (14:47 -0700)]
logging: don't add --debug

--debug is already taken to change the global debug level.
Just offer -d for now.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotestlibrbd, testradospp: read default conf file
Josh Durgin [Mon, 14 Mar 2011 17:35:17 +0000 (10:35 -0700)]
testlibrbd, testradospp: read default conf file

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agologging: --foreground options reorganization
Colin Patrick McCabe [Tue, 15 Mar 2011 21:47:48 +0000 (14:47 -0700)]
logging: --foreground options reorganization

-f now just means stay in the foreground.
-d now means stay in the foreground and log to foreground.
Both options now disable pid-files.

Update man pages.

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