]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
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 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 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 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 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 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 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 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 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 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 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 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>
14 years agofilestore: instrument filestore, journal throughput and throttling
Sage Weil [Sat, 19 Feb 2011 04:49:37 +0000 (20:49 -0800)]
filestore: instrument filestore, journal throughput and throttling

Signed-off-by: Sage Weil <sage@newdream.net>
Conflicts:

src/os/FileJournal.cc
src/os/FileStore.cc
src/os/FileStore.h
src/os/JournalingObjectStore.cc

14 years agofilestore: adjust op_queue throttle max during fs commit
Sage Weil [Sat, 20 Nov 2010 22:37:13 +0000 (14:37 -0800)]
filestore: adjust op_queue throttle max during fs commit

The underlying FS (btrfs at least) will block writes for a period while it
is doing a commit.  If an OSD workload is write limited, we should raise
the op_queue max (operations that are queued to be applied to disk) during
the commit period.

For example, for a normally journal throughput limited (writeahead mode)
workload:

 - journal queue throttle normally limits things.
 - sync starts
 - journaled items getting moved to op_queue soon fills up op_queue max
 - all writes stop
 - sync completes
 - op_queue drains, new writes come in again
 - journal queue throttle fills up, again starts limiting tput

For an fs throughput limited workload (writeahead):

 - kernel buffer cache hits dirty limit
 - op_queue throttle limits tput
 - sync starts
 - opq stalls, new writes stall on throttler
 - sync completes
 - opq drains (quickly: kernel has no dirty pages)
 - new writes flood in
 - etc.
(Actually this isn't super realistic, because hitting the kernel dirty
limit will do all sorts of other weird things with userland memory
allocations.)

In both cases, the commit phase blocks up the op queue, and raising the
limit temporarily will keep things flowing.  This should be ok because the
disks are still busy during this period; they're just flushing dirty
data and metadata.  Once the sync completes the opq will quickly dump dirty
data into the kernel page cache and "catch up".

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agotestrados: test default conf file location
Colin Patrick McCabe [Tue, 15 Mar 2011 18:08:51 +0000 (11:08 -0700)]
testrados: test default conf file location

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibrados: add default to rados_conf_read_file
Colin Patrick McCabe [Tue, 15 Mar 2011 17:43:35 +0000 (10:43 -0700)]
librados: add default to rados_conf_read_file

In rados_conf_read_file, read from the default configuration file
locations if the library user passes NULL as the location of the
configuration file.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoobjecter: fix leak of bufferlist from MPoolOpReply
Josh Durgin [Mon, 14 Mar 2011 23:54:55 +0000 (16:54 -0700)]
objecter: fix leak of bufferlist from MPoolOpReply

bufferlist->claim already clears the source bufferlist,
but setting it to NULL prevented it from being destroyed.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agoMerge branch 'stable'
Sage Weil [Mon, 14 Mar 2011 23:44:31 +0000 (16:44 -0700)]
Merge branch 'stable'

Conflicts:
configure.ac
debian/changelog
src/cfuse.cc
src/rgw/rgw_rest.cc

14 years agorados tool: close dir after reading through
Yehuda Sadeh [Mon, 14 Mar 2011 23:13:29 +0000 (16:13 -0700)]
rados tool: close dir after reading through

14 years agorados tool: recursively import from dir to pool
Yehuda Sadeh [Mon, 14 Mar 2011 23:09:50 +0000 (16:09 -0700)]
rados tool: recursively import from dir to pool

14 years agocfuse: set proper defaults
Colin Patrick McCabe [Mon, 14 Mar 2011 14:24:32 +0000 (07:24 -0700)]
cfuse: set proper defaults

Since cfuse usually runs as a nonprivileged user, its defaults must be a
little different from those of the other daemons. Add a flag to
common_init which can be used to set unprivileged daemon defaults.

SimpleMessenger::start() now just takes a boolean telling it whether to
daemonize. It doesn't need to check global variables or other arguments;
it just daemonizes if you tell it to; otherwise not.

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

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agocfuse: always daemonize hack
Sage Weil [Mon, 14 Mar 2011 22:38:19 +0000 (15:38 -0700)]
cfuse: always daemonize hack

Always daemonize, until the next round of common_init fixes lands.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: small pull recovery adjustments
Sage Weil [Mon, 14 Mar 2011 22:16:27 +0000 (15:16 -0700)]
osd: small pull recovery adjustments

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoReplicatedPG,OSD: Track which osds we are pulling from
Samuel Just [Thu, 10 Mar 2011 23:37:33 +0000 (15:37 -0800)]
ReplicatedPG,OSD: Track which osds we are pulling from

Currently, a PG waiting on a pull from a dead OSD cannot continue
recovery.  ReplicatedPG::pull now tracks open pulls by peer in
rec_from_peer (map<int, set<sobject_t> >).

OSD::advance_map now calls check_recovery_op_pulls to allow the PG to
reset pulls from failed peers.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agovstart.sh: escape " "
Sage Weil [Mon, 14 Mar 2011 22:01:20 +0000 (15:01 -0700)]
vstart.sh: escape " "

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoradosgw: first authorize user then try to read the acls
Yehuda Sadeh [Mon, 14 Mar 2011 19:22:24 +0000 (12:22 -0700)]
radosgw: first authorize user then try to read the acls

can't read acls if user wasn't authorized yet.

14 years agocpp_strerror: handle negative error code
Colin Patrick McCabe [Mon, 14 Mar 2011 14:45:36 +0000 (07:45 -0700)]
cpp_strerror: handle negative error code

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibrbd: delete block completion in aio_read callback
Josh Durgin [Mon, 14 Mar 2011 21:36:38 +0000 (14:36 -0700)]
librbd: delete block completion in aio_read callback

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agolibrados: initialize done in C_NotifyComplete
Josh Durgin [Mon, 14 Mar 2011 21:33:26 +0000 (14:33 -0700)]
librados: initialize done in C_NotifyComplete

Caught by valgrind, this was uninitialized in the caller.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agomonclient: fix leak of AuthClientHandler
Josh Durgin [Mon, 14 Mar 2011 21:20:07 +0000 (14:20 -0700)]
monclient: fix leak of AuthClientHandler

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agotestlibrbdpp: read conf file and don't double-delete AioCompletion
Josh Durgin [Mon, 14 Mar 2011 17:33:15 +0000 (10:33 -0700)]
testlibrbdpp: read conf file and don't double-delete AioCompletion

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agovstart: put logging options in daemon sections, not [global]
Sage Weil [Mon, 14 Mar 2011 21:21:57 +0000 (14:21 -0700)]
vstart: put logging options in daemon sections, not [global]

We don't want random command line utils to have non-default logging
behavior.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomds: journal fragment rollback events
Sage Weil [Mon, 14 Mar 2011 17:27:23 +0000 (10:27 -0700)]
mds: journal fragment rollback events

If we rollback a prepared but uncommitted dir refragment, journal it!
This prevents a pattern like

2011-03-14 09:53:41.402212 7ff5edc00710 mds1.log _replay 4332021~624 / 4350736 2011-03-14 09:53:22.348896: EFragment prepare 610 10* by 1 [metablob 610.100*, 2 dirs]
2011-03-14 09:53:41.404433 7ff5edc00710 mds1.log _replay 4336070~116 / 4350736 2011-03-14 09:53:22.350024: EFragment commit 610 01* by 1 [metablob]
2011-03-14 09:53:48.740230 7ff5f0109710 mds1.log submit_entry 4408799~1264 : EFragment prepare 610 10* by 1 [metablob 101, 3 dirs]

where the second (apparently dup!) prepare crashes the next replay attempt.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoMerge branch 'stable'
Sage Weil [Mon, 14 Mar 2011 20:22:16 +0000 (13:22 -0700)]
Merge branch 'stable'

Conflicts:
src/include/rados/librados.h
src/include/rados/librados.hpp
src/librados.cc

14 years agolibrbd: size_t -> uint64_t on internal resize
Sage Weil [Mon, 14 Mar 2011 20:20:42 +0000 (13:20 -0700)]
librbd: size_t -> uint64_t on internal resize

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agolibrados: use uint64_t for extent len in extmap
Sage Weil [Mon, 14 Mar 2011 20:15:15 +0000 (13:15 -0700)]
librados: use uint64_t for extent len in extmap

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agolibrados: fixup rados_trunc
Sage Weil [Mon, 14 Mar 2011 20:13:13 +0000 (13:13 -0700)]
librados: fixup rados_trunc

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agocpp_strerror: handle negative error code
Colin Patrick McCabe [Mon, 14 Mar 2011 14:45:36 +0000 (07:45 -0700)]
cpp_strerror: handle negative error code

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw_rest: fix printf format specifier
Sage Weil [Mon, 14 Mar 2011 21:47:59 +0000 (14:47 -0700)]
rgw_rest: fix printf format specifier

32-bit

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorados: fix map type
Sage Weil [Mon, 14 Mar 2011 21:47:49 +0000 (14:47 -0700)]
rados: fix map type

32-bit build issue

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agolibrados: fix size_t -> uint64_t
Sage Weil [Mon, 14 Mar 2011 21:40:37 +0000 (14:40 -0700)]
librados: fix size_t -> uint64_t

Only comes up on 32-bit builds.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agolibrbd: more off_t and size_t -> uint64_t changes
Sage Weil [Mon, 14 Mar 2011 21:39:21 +0000 (14:39 -0700)]
librbd: more off_t and size_t -> uint64_t changes

These only pop on up on 32-bit builds.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agolibrados: rename statfs to cluster_stat
Yehuda Sadeh [Mon, 14 Mar 2011 18:01:15 +0000 (11:01 -0700)]
librados: rename statfs to cluster_stat

14 years agolibrados: add statfs to C interface
Yehuda Sadeh [Mon, 14 Mar 2011 17:20:01 +0000 (10:20 -0700)]
librados: add statfs to C interface

also rename the corresponding C++ method

14 years agolibrbd: uint64_t for image sizes
Sage Weil [Mon, 14 Mar 2011 16:26:14 +0000 (09:26 -0700)]
librbd: uint64_t for image sizes

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorados, rbd: off_t -> uint64_t
Sage Weil [Sun, 13 Mar 2011 17:20:15 +0000 (10:20 -0700)]
rados, rbd: off_t -> uint64_t

off_t is 32-bit on 32-bit archs when compiled without _FILE_OFFSET_BITS=64.
Avoid any such ambiguity in the library interface.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoRevert "librados,librbd: use 64-bit offsets and lengths"
Colin Patrick McCabe [Mon, 14 Mar 2011 12:10:48 +0000 (05:10 -0700)]
Revert "librados,librbd: use 64-bit offsets and lengths"

This reverts commit f294b26746a30960971757c42d679208a99995a7.

14 years agologging: disable log_sym_history for non-daemons
Colin Patrick McCabe [Mon, 14 Mar 2011 10:10:33 +0000 (03:10 -0700)]
logging: disable log_sym_history for non-daemons

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibrados: make AioCompletions delete themselves when released
Josh Durgin [Mon, 14 Mar 2011 17:04:54 +0000 (10:04 -0700)]
librados: make AioCompletions delete themselves when released

AioCompletion->release() already accounted for the implementation, but the wrapper was kept around.

14 years agomds: fix stray anchortable debug spam
Sage Weil [Sat, 12 Mar 2011 05:59:37 +0000 (21:59 -0800)]
mds: fix stray anchortable debug spam

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agobuffer: disable buffer alloc tracking by default
Sage Weil [Sat, 12 Mar 2011 05:59:15 +0000 (21:59 -0800)]
buffer: disable buffer alloc tracking by default

This can have high overhead on SMP systems.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agolibrbd: delete block completion after it's finished
Josh Durgin [Sat, 12 Mar 2011 02:44:21 +0000 (18:44 -0800)]
librbd: delete block completion after it's finished

14 years agolibrbd: don't leak rados_completion
Josh Durgin [Sat, 12 Mar 2011 02:11:00 +0000 (18:11 -0800)]
librbd: don't leak rados_completion

The implementation is already referenced by librados callbacks, so it
will stick around.

14 years agolibrados: Remove OperationOp from WatchCtx
Josh Durgin [Sat, 12 Mar 2011 01:08:32 +0000 (17:08 -0800)]
librados: Remove OperationOp from WatchCtx

It was unused and doesn't need to be on the heap.

14 years agolibrados: cleanup RadosClient's objecter instance when destroyed
Josh Durgin [Sat, 12 Mar 2011 00:55:39 +0000 (16:55 -0800)]
librados: cleanup RadosClient's objecter instance when destroyed

14 years agolibrbd: free RBD::AioCompletion when it's released
Josh Durgin [Sat, 12 Mar 2011 00:54:43 +0000 (16:54 -0800)]
librbd: free RBD::AioCompletion when it's released

14 years agorgw: avoid duplicate openstack users
Yehuda Sadeh [Sat, 12 Mar 2011 00:50:51 +0000 (16:50 -0800)]
rgw: avoid duplicate openstack users

14 years agodebian: Conflict on earlier -dev packages with sonames.
Tommi Virtanen [Fri, 11 Mar 2011 23:39:56 +0000 (15:39 -0800)]
debian: Conflict on earlier -dev packages with sonames.

This ensures a smooth, automatic transition, by telling apt/dpkg that
it's ok to replace the old package with the new one.

Continuation of 95db4c5cb868c26567e3f5095108481aa7e76a80.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agorgw_admin: typo
Yehuda Sadeh [Fri, 11 Mar 2011 23:51:40 +0000 (15:51 -0800)]
rgw_admin: typo

14 years agorgw: remove bucket metadata object on bucket delete
Yehuda Sadeh [Fri, 11 Mar 2011 23:35:18 +0000 (15:35 -0800)]
rgw: remove bucket metadata object on bucket delete

14 years agorgw: configurable prefix for openstack urls
Yehuda Sadeh [Fri, 11 Mar 2011 23:34:57 +0000 (15:34 -0800)]
rgw: configurable prefix for openstack urls

14 years agoutime: fix operator double() to use the right number of zeros.
Greg Farnum [Fri, 11 Mar 2011 19:24:59 +0000 (11:24 -0800)]
utime: fix operator double() to use the right number of zeros.

We should probably use a const (or even a #define would be better)
instead of typing out the constant in all these places!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agolibrados,librbd: use 64-bit offsets and lengths
Colin Patrick McCabe [Sat, 12 Mar 2011 01:05:46 +0000 (17:05 -0800)]
librados,librbd: use 64-bit offsets and lengths

size_t is usually 32-bit on 32-bit architectures and 64 on 64-bit ones.
On the other hand, we want our offsets and lengths for librados and
librbd to be 64 bit everywhere. So we need to use uint64_t for offsets
and lengths.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomkcephfs: some fixes
Sage Weil [Sat, 12 Mar 2011 00:22:19 +0000 (16:22 -0800)]
mkcephfs: some fixes

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoMerge remote branch 'origin/stable'
Sage Weil [Fri, 11 Mar 2011 22:57:53 +0000 (14:57 -0800)]
Merge remote branch 'origin/stable'

Conflicts:
debian/control

14 years agoautoconf: Fix typo that made --without-gtk2 not work.
Tommi Virtanen [Fri, 11 Mar 2011 22:46:22 +0000 (14:46 -0800)]
autoconf: Fix typo that made --without-gtk2 not work.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoautoconf: Handle --without-debug, --with-debug=junk properly.
Tommi Virtanen [Fri, 11 Mar 2011 22:11:54 +0000 (14:11 -0800)]
autoconf: Handle --without-debug, --with-debug=junk properly.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoautoconf: Handle --without-profiler, --with-profiler=junk properly.
Tommi Virtanen [Fri, 11 Mar 2011 22:08:15 +0000 (14:08 -0800)]
autoconf: Handle --without-profiler, --with-profiler=junk properly.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodebian: add udev rules
Sage Weil [Fri, 11 Mar 2011 17:43:14 +0000 (09:43 -0800)]
debian: add udev rules

Add /lib/udev/rules.d/50-rbd.rules to debian package.
crbdnamer generates the dev path:
/dev/rbd/<pool>/<name>:<number>

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Conflicts:

debian/rules
src/crbdnamer

14 years agoosd: fix osdmap scanning on pg creation
Sage Weil [Fri, 11 Mar 2011 17:23:06 +0000 (09:23 -0800)]
osd: fix osdmap scanning on pg creation

On PG creation we were scanning the complete history of all osdmaps ever.
Fix initialization of PG::Info::History epoch_created and same_*_since
fields in the base (creation) case to make this work the way it was
supposed to.

Reported-by: Yehuda Sadeh <yehuda.sadeh@dreamhost.com>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoDestructors for virtual classes should be virtual
Colin Patrick McCabe [Fri, 11 Mar 2011 14:57:35 +0000 (06:57 -0800)]
Destructors for virtual classes should be virtual

Add -Wnon-virtual-dtor to the makefile. Fix the warnings that were
generated.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoautoconf: If given --with-gtk2, not finding it is fatal.
Tommi Virtanen [Fri, 11 Mar 2011 21:54:27 +0000 (13:54 -0800)]
autoconf: If given --with-gtk2, not finding it is fatal.

Use --with-gtk2=check (default) if you're ok with both cases.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoatomic.h: fix "crappy slow implementation"
Colin Patrick McCabe [Fri, 11 Mar 2011 14:30:52 +0000 (06:30 -0800)]
atomic.h: fix "crappy slow implementation"

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoauth: Let common_init (or CephCrypto::init) init auth crypto.
Tommi Virtanen [Thu, 10 Mar 2011 23:44:01 +0000 (15:44 -0800)]
auth: Let common_init (or CephCrypto::init) init auth crypto.

This avoids doing it in a global constructor.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agocommon: Initialize ceph_crypto in common_init.
Tommi Virtanen [Thu, 10 Mar 2011 21:22:56 +0000 (13:22 -0800)]
common: Initialize ceph_crypto in common_init.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoceph_crypto: Implement HMAC-SHA1 wrapper for NSS.
Tommi Virtanen [Thu, 10 Mar 2011 21:21:35 +0000 (13:21 -0800)]
ceph_crypto: Implement HMAC-SHA1 wrapper for NSS.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoceph_crypto: Add unittests for the HMAC-SHA1 compatibility shim.
Tommi Virtanen [Thu, 10 Mar 2011 20:39:42 +0000 (12:39 -0800)]
ceph_crypto: Add unittests for the HMAC-SHA1 compatibility shim.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agorgw: Make rgw_main use HMAC-SHA1 via compatibility shim.
Tommi Virtanen [Thu, 10 Mar 2011 20:38:25 +0000 (12:38 -0800)]
rgw: Make rgw_main use HMAC-SHA1 via compatibility shim.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoceph_crypto: Implement MD5 wrapper for NSS.
Tommi Virtanen [Thu, 10 Mar 2011 19:49:17 +0000 (11:49 -0800)]
ceph_crypto: Implement MD5 wrapper for NSS.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoceph_crypto: Add unittests for the MD5 compatibility shim.
Tommi Virtanen [Thu, 10 Mar 2011 19:48:51 +0000 (11:48 -0800)]
ceph_crypto: Add unittests for the MD5 compatibility shim.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agorgw: Make rgw_op use MD5 via compatibility shim.
Tommi Virtanen [Tue, 8 Mar 2011 21:49:56 +0000 (13:49 -0800)]
rgw: Make rgw_op use MD5 via compatibility shim.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoauth: Change header file guard define, to make room for non-auth crypto.
Tommi Virtanen [Thu, 10 Mar 2011 22:31:31 +0000 (14:31 -0800)]
auth: Change header file guard define, to make room for non-auth crypto.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agorgw: use random byte generation in auth/Crypto, instead of CryptoPP.
Tommi Virtanen [Tue, 8 Mar 2011 21:21:51 +0000 (13:21 -0800)]
rgw: use random byte generation in auth/Crypto, instead of CryptoPP.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoauth: Add a microbenchmark for AES encrypt/decrypt.
Tommi Virtanen [Tue, 8 Mar 2011 20:41:14 +0000 (12:41 -0800)]
auth: Add a microbenchmark for AES encrypt/decrypt.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>