]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
14 years agotest/rados-api/test.cc: add create_one_pool_pp,etc
Colin Patrick McCabe [Thu, 11 Aug 2011 17:40:29 +0000 (10:40 -0700)]
test/rados-api/test.cc: add create_one_pool_pp,etc

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibrados: add IoCtx::close
Colin Patrick McCabe [Thu, 11 Aug 2011 17:40:03 +0000 (10:40 -0700)]
librados: add IoCtx::close

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd test/rados-api/misc.cc
Colin Patrick McCabe [Thu, 11 Aug 2011 00:06:13 +0000 (17:06 -0700)]
Add test/rados-api/misc.cc

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/snapshots: add SelfManagedSnapTest
Colin Patrick McCabe [Wed, 10 Aug 2011 22:55:27 +0000 (15:55 -0700)]
test/rados-api/snapshots: add SelfManagedSnapTest

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibrados:fix name of rados_ioctx_snap_set_read/wr
Colin Patrick McCabe [Wed, 10 Aug 2011 22:54:43 +0000 (15:54 -0700)]
librados:fix name of rados_ioctx_snap_set_read/wr

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/snapshots.cc: test SnapGetName
Colin Patrick McCabe [Wed, 10 Aug 2011 22:27:53 +0000 (15:27 -0700)]
test/rados-api/snapshots.cc: test SnapGetName

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/snapshots.cc: test Rollback
Colin Patrick McCabe [Wed, 10 Aug 2011 22:05:02 +0000 (15:05 -0700)]
test/rados-api/snapshots.cc: test Rollback

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/snapshots.cc: test SnapRemove
Colin Patrick McCabe [Wed, 10 Aug 2011 21:31:10 +0000 (14:31 -0700)]
test/rados-api/snapshots.cc: test SnapRemove

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/snapshots.cc: test SnapList
Colin Patrick McCabe [Wed, 10 Aug 2011 19:01:15 +0000 (12:01 -0700)]
test/rados-api/snapshots.cc: test SnapList

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd test/rados-api/watch_notify.cc
Colin Patrick McCabe [Wed, 10 Aug 2011 18:24:49 +0000 (11:24 -0700)]
Add test/rados-api/watch_notify.cc

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api: move TestAlarm into test.h
Colin Patrick McCabe [Wed, 10 Aug 2011 18:24:22 +0000 (11:24 -0700)]
test/rados-api: move TestAlarm into test.h

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/stat.cc: test ClusterStat,PoolStat
Colin Patrick McCabe [Wed, 10 Aug 2011 17:46:33 +0000 (10:46 -0700)]
test/rados-api/stat.cc: test ClusterStat,PoolStat

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd test/rados-api/stat.cc: test rados_stat
Colin Patrick McCabe [Wed, 10 Aug 2011 17:04:15 +0000 (10:04 -0700)]
Add test/rados-api/stat.cc: test rados_stat

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/pool.cc:test PoolCreateWithCrushRule
Colin Patrick McCabe [Tue, 9 Aug 2011 23:20:26 +0000 (16:20 -0700)]
test/rados-api/pool.cc:test PoolCreateWithCrushRule

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/pool.cc: test rados_ioctx_get_id
Colin Patrick McCabe [Tue, 9 Aug 2011 23:07:26 +0000 (16:07 -0700)]
test/rados-api/pool.cc: test rados_ioctx_get_id

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/pool.cc: add AuidTest1, AuidTest2
Colin Patrick McCabe [Tue, 9 Aug 2011 23:01:47 +0000 (16:01 -0700)]
test/rados-api/pool.cc: add AuidTest1, AuidTest2

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/pool.cc: test PoolLookup,PoolDelete
Colin Patrick McCabe [Tue, 9 Aug 2011 22:54:13 +0000 (15:54 -0700)]
test/rados-api/pool.cc: test PoolLookup,PoolDelete

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years ago.gitignore: add test_rados_api_*
Colin Patrick McCabe [Tue, 9 Aug 2011 22:45:56 +0000 (15:45 -0700)]
.gitignore: add test_rados_api_*

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocreate_one_pool: improve error reporting
Colin Patrick McCabe [Tue, 9 Aug 2011 22:42:24 +0000 (15:42 -0700)]
create_one_pool: improve error reporting

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd test/rados-api/pool.cc
Colin Patrick McCabe [Tue, 9 Aug 2011 22:35:59 +0000 (15:35 -0700)]
Add test/rados-api/pool.cc

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd test_rados_api_list
Colin Patrick McCabe [Tue, 9 Aug 2011 21:41:26 +0000 (14:41 -0700)]
Add test_rados_api_list

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorados/librados.h: remove rados_aio_get_obj_ver
Colin Patrick McCabe [Tue, 9 Aug 2011 21:06:48 +0000 (14:06 -0700)]
rados/librados.h: remove rados_aio_get_obj_ver

Remove the unused and unimplemented rados_aio_get_obj_ver from the
header file.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/aio.cc: add RoundTripWriteFull
Colin Patrick McCabe [Tue, 9 Aug 2011 21:04:02 +0000 (14:04 -0700)]
test/rados-api/aio.cc: add RoundTripWriteFull

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/aio.cc: fix shadowed class variable
Colin Patrick McCabe [Tue, 9 Aug 2011 19:47:39 +0000 (12:47 -0700)]
test/rados-api/aio.cc: fix shadowed class variable

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/aio.cc: test Flush
Colin Patrick McCabe [Tue, 9 Aug 2011 19:47:23 +0000 (12:47 -0700)]
test/rados-api/aio.cc: test Flush

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/aio.cc: add ReturnValue
Colin Patrick McCabe [Tue, 9 Aug 2011 19:35:18 +0000 (12:35 -0700)]
test/rados-api/aio.cc: add ReturnValue

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/aio.cc: test IsSafe
Colin Patrick McCabe [Tue, 9 Aug 2011 19:26:36 +0000 (12:26 -0700)]
test/rados-api/aio.cc: test IsSafe

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/aio.cc: test IsComplete
Colin Patrick McCabe [Tue, 9 Aug 2011 19:22:55 +0000 (12:22 -0700)]
test/rados-api/aio.cc: test IsComplete

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/aio.cc: use rados_aio_release
Colin Patrick McCabe [Tue, 9 Aug 2011 19:19:14 +0000 (12:19 -0700)]
test/rados-api/aio.cc: use rados_aio_release

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/aio.cc: add RoundTripAppend
Colin Patrick McCabe [Tue, 9 Aug 2011 19:15:47 +0000 (12:15 -0700)]
test/rados-api/aio.cc: add RoundTripAppend

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/aio: add WaitForSafe, RoundTrip
Colin Patrick McCabe [Tue, 9 Aug 2011 18:17:16 +0000 (11:17 -0700)]
test/rados-api/aio: add WaitForSafe, RoundTrip

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd test/rados-api/aio: SimpleWrite
Colin Patrick McCabe [Tue, 9 Aug 2011 18:06:02 +0000 (11:06 -0700)]
Add test/rados-api/aio: SimpleWrite

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/io.cc: add RmXattr, XattrIter
Colin Patrick McCabe [Tue, 9 Aug 2011 01:06:13 +0000 (18:06 -0700)]
test/rados-api/io.cc: add RmXattr, XattrIter

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/io: add XattrsRoundTrip
Colin Patrick McCabe [Tue, 9 Aug 2011 00:11:28 +0000 (17:11 -0700)]
test/rados-api/io: add XattrsRoundTrip

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/io: add RemoveTest
Colin Patrick McCabe [Mon, 8 Aug 2011 23:35:50 +0000 (16:35 -0700)]
test/rados-api/io: add RemoveTest

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/io: add TruncTest
Colin Patrick McCabe [Mon, 8 Aug 2011 23:13:05 +0000 (16:13 -0700)]
test/rados-api/io: add TruncTest

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/io: add AppendRoundTrip
Colin Patrick McCabe [Mon, 8 Aug 2011 23:09:03 +0000 (16:09 -0700)]
test/rados-api/io: add AppendRoundTrip

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/io: add WriteFullRoundTrip
Colin Patrick McCabe [Mon, 8 Aug 2011 23:04:59 +0000 (16:04 -0700)]
test/rados-api/io: add WriteFullRoundTrip

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rados-api/io: add roundtrip, overlappingwrite
Colin Patrick McCabe [Mon, 8 Aug 2011 22:51:16 +0000 (15:51 -0700)]
test/rados-api/io: add roundtrip, overlappingwrite

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMakefile.am: build gtest in debug builds
Colin Patrick McCabe [Tue, 9 Aug 2011 22:21:53 +0000 (15:21 -0700)]
Makefile.am: build gtest in debug builds

Formerly, we only built gtest when doing 'make check'. However, the
librados-api tests, which are built in debug mode for the 'all' target,
also use gtest. So build it when needed.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd test-rados directory, I/O test
Colin Patrick McCabe [Mon, 8 Aug 2011 22:08:28 +0000 (15:08 -0700)]
Add test-rados directory, I/O test

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMerge branch 'wip-config'
Colin Patrick McCabe [Mon, 8 Aug 2011 16:55:49 +0000 (09:55 -0700)]
Merge branch 'wip-config'

14 years agoosd: missing ! in ifs on bad map after osd boot
Sage Weil [Mon, 8 Aug 2011 04:27:03 +0000 (21:27 -0700)]
osd: missing ! in ifs on bad map after osd boot

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomds: fix Migrator::audit() for IMPORT_ABORTING
Sage Weil [Sun, 31 Jul 2011 04:21:03 +0000 (21:21 -0700)]
mds: fix Migrator::audit() for IMPORT_ABORTING

Make audit match reality.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoobjecter: halt compound operation only if result < 0
Yehuda Sadeh [Fri, 5 Aug 2011 23:32:55 +0000 (16:32 -0700)]
objecter: halt compound operation only if result < 0

14 years agoRemove unused dyn_sprintf
Colin Patrick McCabe [Fri, 5 Aug 2011 22:49:30 +0000 (15:49 -0700)]
Remove unused dyn_sprintf

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoconfig.cc: clean up includes
Colin Patrick McCabe [Fri, 5 Aug 2011 22:44:32 +0000 (15:44 -0700)]
config.cc: clean up includes

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomds: chain rename subtree projections
Sage Weil [Fri, 5 Aug 2011 21:28:29 +0000 (14:28 -0700)]
mds: chain rename subtree projections

We can have two renames for the same file in flight to the journal.  Stack
them up in a list.  The old project_subtree_rename() should have asserted
that the item wasn't already in the map before inserting it to catch this
at the front end.  Now it doesn't matter; it's a list.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: whitespace cleanup
Sage Weil [Fri, 5 Aug 2011 21:26:59 +0000 (14:26 -0700)]
client: whitespace cleanup

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: send renames to the correct node
Sage Weil [Fri, 5 Aug 2011 21:26:52 +0000 (14:26 -0700)]
client: send renames to the correct node

AFAICS we got this wrong in b794aeb39, which is annoying given I remember
thinking reasonably carefully about it.

The current reasoning: the request operates on the dentry target
directory from the MDS's perspective; that's where the request needs to go.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoconfig: more thread-safety stuff
Colin Patrick McCabe [Fri, 5 Aug 2011 19:49:37 +0000 (12:49 -0700)]
config: more thread-safety stuff

* Don't allow parse_argv, parse_env, or parse_config_files to be used
after threads have been started.

* Don't allow set_val to be used to change unsafe variables after
threads have been started.

* Test

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoinjectargs: forbid unsafe string modifications
Colin Patrick McCabe [Fri, 5 Aug 2011 19:18:00 +0000 (12:18 -0700)]
injectargs: forbid unsafe string modifications

Don't allow string-valued configuration items to be changed using
injectargs unless they have observers. Otherwise, we could have
crashes, since one thread could be reading the std::string's internal
buffer after another thread frees that buffer during assignment.

Write a unit test to validate this behavior.

Also test that we can turn on and off the log_file using injectargs.
This is something that injectargs often gets used for in practice.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/daemon_config: add injectargs test
Colin Patrick McCabe [Fri, 5 Aug 2011 18:25:11 +0000 (11:25 -0700)]
test/daemon_config: add injectargs test

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd daemon_config, libceph_config, etc.
Colin Patrick McCabe [Fri, 5 Aug 2011 18:20:24 +0000 (11:20 -0700)]
Add daemon_config, libceph_config, etc.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoadd config unit test
Colin Patrick McCabe [Fri, 5 Aug 2011 18:04:08 +0000 (11:04 -0700)]
add config unit test

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibrados.h: fix out-of-date comment
Colin Patrick McCabe [Fri, 5 Aug 2011 17:47:25 +0000 (10:47 -0700)]
librados.h: fix out-of-date comment

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoconfig: more cleanup
Colin Patrick McCabe [Fri, 5 Aug 2011 17:32:42 +0000 (10:32 -0700)]
config: more cleanup

* any place where we know a set_val can't fail should be set_val_or_die

* in private md_config_t functions that need the mutex, assert that the
mutex is locked

* make md_config_t::expand_meta private, since nobody uses it outside of
the class.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibceph.h: fix C compilation
Colin Patrick McCabe [Fri, 5 Aug 2011 00:16:10 +0000 (17:16 -0700)]
libceph.h: fix C compilation

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoconfig: add proper locking, fix comments
Colin Patrick McCabe [Thu, 4 Aug 2011 23:42:58 +0000 (16:42 -0700)]
config: add proper locking, fix comments

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMerge branch 'rgw-formatter'
Colin Patrick McCabe [Thu, 4 Aug 2011 22:33:27 +0000 (15:33 -0700)]
Merge branch 'rgw-formatter'

14 years agoIn RGW, use the common/Formatter
Colin Patrick McCabe [Thu, 4 Aug 2011 21:43:55 +0000 (14:43 -0700)]
In RGW, use the common/Formatter

Implement a new subclass of Formatter, RGWFormatter_Plain, using code
from the old RGWFormatter and RGWFormatter_Plain classes.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agofilestore: remove unused var
Sage Weil [Thu, 4 Aug 2011 21:35:26 +0000 (14:35 -0700)]
filestore: remove unused var

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoFormatter: add open_object_section_in_ns, etc.
Colin Patrick McCabe [Thu, 4 Aug 2011 21:27:14 +0000 (14:27 -0700)]
Formatter: add open_object_section_in_ns, etc.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/formatter: test stream clearing
Colin Patrick McCabe [Thu, 4 Aug 2011 21:11:42 +0000 (14:11 -0700)]
test/formatter: test stream clearing

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoFormatter: must use str("") to clear ostreams
Colin Patrick McCabe [Thu, 4 Aug 2011 21:07:53 +0000 (14:07 -0700)]
Formatter: must use str("") to clear ostreams

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMore changes towards using common/Formatter in rgw
Colin Patrick McCabe [Thu, 4 Aug 2011 20:57:33 +0000 (13:57 -0700)]
More changes towards using common/Formatter in rgw

* rename RgwFormatter::init to RgwForamtter::reset.
Roll old reset() into base_reset().

* add write_raw_data to Formatter, to support DTDs.
Remove other DTD support code.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomds: add hooks to test multimds link/unlink failures
Sage Weil [Thu, 4 Aug 2011 00:41:10 +0000 (17:41 -0700)]
mds: add hooks to test multimds link/unlink failures

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoqa: move fsx.sh
Sage Weil [Tue, 2 Aug 2011 23:25:25 +0000 (16:25 -0700)]
qa: move fsx.sh

14 years agoRevert "qa: Remove fsx workunit."
Sage Weil [Tue, 2 Aug 2011 23:24:19 +0000 (16:24 -0700)]
Revert "qa: Remove fsx workunit."

This reverts commit a66da4af2571f27f55e8ee819f22e70355fb42b0.  Still useful
to have this around.

14 years agoos/FileStore: print out BTRFS_IOC_SNAP_CREATE errs
Colin Patrick McCabe [Thu, 4 Aug 2011 00:56:19 +0000 (17:56 -0700)]
os/FileStore: print out BTRFS_IOC_SNAP_CREATE errs

Print out the errno for BTRFS_IOC_SNAP_CREATE errors if they happen.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw_rest: don't leak formatters
Colin Patrick McCabe [Wed, 3 Aug 2011 18:39:40 +0000 (11:39 -0700)]
rgw_rest: don't leak formatters

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoXmlFormatter: add DTD option
Colin Patrick McCabe [Wed, 3 Aug 2011 00:05:53 +0000 (17:05 -0700)]
XmlFormatter: add DTD option

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoFormatter.cc: add get_len method
Colin Patrick McCabe [Tue, 2 Aug 2011 23:11:11 +0000 (16:11 -0700)]
Formatter.cc: add get_len method

Add get_len method because rgw needs it.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoRGWFormatter: get rid of one flush variant
Colin Patrick McCabe [Tue, 2 Aug 2011 23:04:14 +0000 (16:04 -0700)]
RGWFormatter: get rid of one flush variant

This flush variant won't exist in common/Formatter.cc.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw_formats: introduce dump_unsigned, dump_int,etc
Colin Patrick McCabe [Tue, 2 Aug 2011 22:42:17 +0000 (15:42 -0700)]
rgw_formats: introduce dump_unsigned, dump_int,etc

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: rename dump_value_str to dump_format
Colin Patrick McCabe [Tue, 2 Aug 2011 22:29:32 +0000 (15:29 -0700)]
rgw: rename dump_value_str to dump_format

rename dump_value_str to dump_format for compatibility with Formatter.cc

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorados tool: fix cmdline parsing for --block-size
Colin Patrick McCabe [Tue, 2 Aug 2011 22:22:10 +0000 (15:22 -0700)]
rados tool: fix cmdline parsing for --block-size

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoFormatter: add XMLFormatter::reset
Colin Patrick McCabe [Tue, 2 Aug 2011 22:16:12 +0000 (15:16 -0700)]
Formatter: add XMLFormatter::reset

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoFormatter.cc: whitespace fix
Colin Patrick McCabe [Tue, 2 Aug 2011 21:42:31 +0000 (14:42 -0700)]
Formatter.cc: whitespace fix

whitespace fix to conform to the coding standard

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw:rename open_obj_section to open_object_section
Colin Patrick McCabe [Tue, 2 Aug 2011 21:41:02 +0000 (14:41 -0700)]
rgw:rename open_obj_section to open_object_section

For compatibility with common/Formatter.cc

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd XMLFormatter and unit test
Colin Patrick McCabe [Tue, 2 Aug 2011 21:30:18 +0000 (14:30 -0700)]
Add XMLFormatter and unit test

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoFormatter: remove protected data, methods
Colin Patrick McCabe [Tue, 2 Aug 2011 19:37:24 +0000 (12:37 -0700)]
Formatter: remove protected data, methods

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoosd, objecter, librados: add SRC_CMPXATTR operation
Sage Weil [Tue, 2 Aug 2011 21:20:19 +0000 (14:20 -0700)]
osd, objecter, librados: add SRC_CMPXATTR operation

and test.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: change src_oid encoding -- FLAG DAY
Sage Weil [Tue, 2 Aug 2011 21:19:41 +0000 (14:19 -0700)]
osd: change src_oid encoding -- FLAG DAY

The old encoding was mutually exclusive with putting any data payload on
the operation.  That was stupid.. we can't, for example, do xattr ops then
on a src_oid.

Fix this by just including the oid in the data payload inline whenever the
bit is set in the op code.  This changes the client protocol in an
incompatible way, which means users of the CLONERANGE operation need to be
upgrade/downgraded in unison.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agotestradospp: test cmpxattr (eq, str)
Sage Weil [Tue, 2 Aug 2011 20:54:17 +0000 (13:54 -0700)]
testradospp: test cmpxattr (eq, str)

No coverage for the other tests yet.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: fix cmpxattr string construction
Sage Weil [Tue, 2 Aug 2011 20:54:00 +0000 (13:54 -0700)]
osd: fix cmpxattr string construction

The bufferlist may not contain a terminating '\0'.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoobjecter, osd: fix up cmpxattr
Sage Weil [Tue, 2 Aug 2011 20:48:11 +0000 (13:48 -0700)]
objecter, osd: fix up cmpxattr

Objecter stubs, useful debug output.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agosystest: add watch/notify tests with pool and object deletion
Josh Durgin [Fri, 29 Jul 2011 17:06:19 +0000 (10:06 -0700)]
systest: add watch/notify tests with pool and object deletion

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agosystest: st_rados_create_pool: optionally wait before creating the pool
Josh Durgin [Tue, 2 Aug 2011 19:32:17 +0000 (12:32 -0700)]
systest: st_rados_create_pool: optionally wait before creating the pool

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agosystest: add object deletion to mirror object creation
Josh Durgin [Tue, 2 Aug 2011 19:21:30 +0000 (12:21 -0700)]
systest: add object deletion to mirror object creation

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agosystest: add st_rados_notify building block for watch/notify tests
Josh Durgin [Fri, 29 Jul 2011 22:25:53 +0000 (15:25 -0700)]
systest: add st_rados_notify building block for watch/notify tests

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agosystest: add st_rados_watch building block for watch/notify tests
Josh Durgin [Tue, 26 Jul 2011 23:12:12 +0000 (16:12 -0700)]
systest: add st_rados_watch building block for watch/notify tests

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agosystest: make pool configurable
Josh Durgin [Fri, 29 Jul 2011 22:41:25 +0000 (15:41 -0700)]
systest: make pool configurable

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agosystest: move pool deletion into its own file
Josh Durgin [Wed, 20 Jul 2011 22:43:31 +0000 (15:43 -0700)]
systest: move pool deletion into its own file

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agolibrados: fix notify deadlock
Josh Durgin [Mon, 1 Aug 2011 17:45:19 +0000 (10:45 -0700)]
librados: fix notify deadlock

The success of the notify call needs to checked before waiting to
receive a notification. If we try notifying on an object that does not
exist, for example, it should fail with -ENOENT, and not hang.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agoosd: document remove_watchers race avoidance
Josh Durgin [Tue, 2 Aug 2011 19:17:42 +0000 (12:17 -0700)]
osd: document remove_watchers race avoidance

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agopg: remove do_complete_notify
Josh Durgin [Tue, 2 Aug 2011 19:19:59 +0000 (12:19 -0700)]
pg: remove do_complete_notify

This method has no dependence on the pg.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agoosd: put_object_context: tolerate pgs being deleted
Josh Durgin [Tue, 2 Aug 2011 19:14:06 +0000 (12:14 -0700)]
osd: put_object_context: tolerate pgs being deleted

PGs that are queued for deletion won't be in the osdmap,
and may not be in the pg_map, but if they are, it's safe to
put object_context. Otherwise, the pg is being deleted and
will clean up the object contexts itself.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agoosd, pg: clean up watchers on pg deletion and shutdown
Josh Durgin [Fri, 29 Jul 2011 19:28:26 +0000 (12:28 -0700)]
osd, pg: clean up watchers on pg deletion and shutdown

Watchers and their object contexts need to be cleaned up so
they aren't used after the pg is gone. This happened if the
pool was deleted and the connection to the watcher was reset.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agomds: detach replay thread
Sage Weil [Tue, 2 Aug 2011 18:39:35 +0000 (11:39 -0700)]
mds: detach replay thread

Since we don't join it.

This fixes a leak of per-thread state.. namely, an ~8MB chunk of virtual
memory (and a handful of real pages).

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