]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
14 years agoPGMonitor.cc: add force_create_pg command to monitor
Samuel Just [Wed, 20 Jul 2011 00:28:45 +0000 (17:28 -0700)]
PGMonitor.cc: add force_create_pg command to monitor

ceph pg force_create_pg <pgid> will now reset that pg's status to
creating to handle corner cases where no osd has that pg.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoMerge branch 'stable'
Sage Weil [Tue, 19 Jul 2011 18:26:25 +0000 (11:26 -0700)]
Merge branch 'stable'

14 years agomds: clean up file flags to file mode translation
Sage Weil [Tue, 19 Jul 2011 18:25:46 +0000 (11:25 -0700)]
mds: clean up file flags to file mode translation

There was some seriously wrong and ancient cruft in there.  open(2)
specifies that one of O_RDONLY, O_WRONLY, and O_RDWR must always be
specified.  Drop all the crazy.

Linux VFS interprets O_WRONLY|O_RDWR as read+write, so we'll do the same.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: check for invalid file mode
Sage Weil [Tue, 19 Jul 2011 17:38:40 +0000 (10:38 -0700)]
client: check for invalid file mode

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: check for invalid file mode
Sage Weil [Tue, 19 Jul 2011 17:38:34 +0000 (10:38 -0700)]
mds: check for invalid file mode

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw: fix i386 compilation
Yehuda Sadeh [Tue, 19 Jul 2011 17:28:55 +0000 (10:28 -0700)]
rgw: fix i386 compilation

14 years agoconfig: fix compilation in certain environments
Yehuda Sadeh [Tue, 19 Jul 2011 16:43:50 +0000 (09:43 -0700)]
config: fix compilation in certain environments

14 years agomon: fix dump_json quoting
Sage Weil [Tue, 19 Jul 2011 15:36:03 +0000 (08:36 -0700)]
mon: fix dump_json quoting

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: fix O_APPEND file mode calculation
Sage Weil [Tue, 19 Jul 2011 15:33:29 +0000 (08:33 -0700)]
mds: fix O_APPEND file mode calculation

Currently

  fd = open("aaa",O_RDWR|O_CREAT|O_APPEND,0666);

gives us fmode of 1 instead of 3.  We should only infer O_WRONLY if no
other mode is explicitly specified.

Reported-by: Fyodor Ustinov <ufm@ufm.su>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomon: pg dump_json
Sage Weil [Mon, 18 Jul 2011 23:29:31 +0000 (16:29 -0700)]
mon: pg dump_json

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorgw: radosgw_admin log show dumps parsable json
Yehuda Sadeh [Mon, 18 Jul 2011 23:10:53 +0000 (16:10 -0700)]
rgw: radosgw_admin log show dumps parsable json

14 years agoosd: remove unused variables
Greg Farnum [Mon, 18 Jul 2011 20:24:30 +0000 (13:24 -0700)]
osd: remove unused variables

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomon: remove unused variables
Greg Farnum [Mon, 18 Jul 2011 20:23:52 +0000 (13:23 -0700)]
mon: remove unused variables

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomds: remove unused variables
Greg Farnum [Mon, 18 Jul 2011 20:23:17 +0000 (13:23 -0700)]
mds: remove unused variables

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agotools: remove unused variables
Greg Farnum [Mon, 18 Jul 2011 20:20:22 +0000 (13:20 -0700)]
tools: remove unused variables

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoclien: rados: bench: remove unused variables
Greg Farnum [Mon, 18 Jul 2011 20:19:57 +0000 (13:19 -0700)]
clien: rados: bench: remove unused variables

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoReplicatedPG: _rollback_to
Samuel Just [Sat, 16 Jul 2011 00:18:04 +0000 (17:18 -0700)]
ReplicatedPG: _rollback_to

_delete_head modifies clone_overlap and stats incorrectly for
_rollback_to

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agotestsnaps: use self managed snaps and other fixes
Samuel Just [Sat, 16 Jul 2011 00:37:27 +0000 (17:37 -0700)]
testsnaps: use self managed snaps and other fixes

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoMakefile: librados-config apparently depends on libcrypto++
Greg Farnum [Mon, 18 Jul 2011 18:28:23 +0000 (11:28 -0700)]
Makefile: librados-config apparently depends on libcrypto++

In newer versions of gcc/ld, librados-config breaks without
the CRYPTO_LIBS.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agogitignore: ignore Eclipse files/folders
Greg Farnum [Mon, 18 Jul 2011 18:27:40 +0000 (11:27 -0700)]
gitignore: ignore Eclipse files/folders

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoRemove lingering references to g_conf
Colin Patrick McCabe [Mon, 18 Jul 2011 17:37:42 +0000 (10:37 -0700)]
Remove lingering references to g_conf

These were harmless, but silly.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: fix range dump
Yehuda Sadeh [Mon, 18 Jul 2011 17:06:59 +0000 (10:06 -0700)]
rgw: fix range dump

14 years agomds: fix protocol versions
Sage Weil [Sun, 17 Jul 2011 23:49:59 +0000 (16:49 -0700)]
mds: fix protocol versions

I screwed this up in a928f767b974cd36f4be6ea618c5cec366d28362.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorecalc_op_target must give an error if pool gone
Colin Patrick McCabe [Mon, 27 Jun 2011 18:27:00 +0000 (11:27 -0700)]
recalc_op_target must give an error if pool gone

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMakefile: remove dup testrados_list_parallel_SOURCES
Sage Weil [Fri, 15 Jul 2011 21:44:45 +0000 (14:44 -0700)]
Makefile: remove dup testrados_list_parallel_SOURCES

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

14 years agoMerge remote branch 'origin/wip-1287'
Sage Weil [Fri, 15 Jul 2011 20:01:37 +0000 (13:01 -0700)]
Merge remote branch 'origin/wip-1287'

14 years agorgw: fix compilation for certain architectures
Yehuda Sadeh [Fri, 15 Jul 2011 17:57:48 +0000 (10:57 -0700)]
rgw: fix compilation for certain architectures

14 years agobotol_tool: add --xattr argument for PUT
Colin Patrick McCabe [Fri, 15 Jul 2011 16:54:07 +0000 (09:54 -0700)]
botol_tool: add --xattr argument for PUT

boto_tool can now set extended attributes when performing a PUT
operation.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoboto_tool: add --get-obj-xattr
Colin Patrick McCabe [Fri, 15 Jul 2011 16:41:45 +0000 (09:41 -0700)]
boto_tool: add --get-obj-xattr

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw_op: mime-encode ugly xattrs in PUT
Colin Patrick McCabe [Mon, 11 Jul 2011 23:15:09 +0000 (16:15 -0700)]
rgw_op: mime-encode ugly xattrs in PUT

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw_common: remove unused variable
Colin Patrick McCabe [Thu, 14 Jul 2011 23:32:18 +0000 (16:32 -0700)]
rgw_common: remove unused variable

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomime encoding: encode control chars
Colin Patrick McCabe [Thu, 14 Jul 2011 23:24:51 +0000 (16:24 -0700)]
mime encoding: encode control chars

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd control character detection
Colin Patrick McCabe [Thu, 14 Jul 2011 22:07:47 +0000 (15:07 -0700)]
Add control character detection

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agobloom filter: update to latest version
Greg Farnum [Thu, 14 Jul 2011 20:37:21 +0000 (13:37 -0700)]
bloom filter: update to latest version

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agofilepath: remove asserts
Greg Farnum [Thu, 14 Jul 2011 20:35:09 +0000 (13:35 -0700)]
filepath: remove asserts

These were included as a safety check and haven't been triggered, so
there's no point slowing anything down with them.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agohonor CINIT_FLAG_NO_DEFAULT_CONFIG_FILE
Colin Patrick McCabe [Tue, 5 Jul 2011 21:47:55 +0000 (14:47 -0700)]
honor CINIT_FLAG_NO_DEFAULT_CONFIG_FILE

Don't use CEPH_CONF_FILE_DEFAULT when CINIT_FLAG_NO_DEFAULT_CONFIG_FILE
is set.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocrushtool: don't parse any generic args
Sage Weil [Thu, 14 Jul 2011 18:25:21 +0000 (11:25 -0700)]
crushtool: don't parse any generic args

Notably, crushtool uses -c, which elsewhere means parse this config file.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoMerge branch 'rgw-sync-cache'
Yehuda Sadeh [Thu, 14 Jul 2011 19:45:07 +0000 (12:45 -0700)]
Merge branch 'rgw-sync-cache'

Conflicts:
src/rgw/rgw_op.cc

14 years agorgw: configurable way to enable/disable cache
Yehuda Sadeh [Thu, 14 Jul 2011 19:43:25 +0000 (12:43 -0700)]
rgw: configurable way to enable/disable cache

14 years agoReplicatedPG: project changes to clone_overlap
Samuel Just [Wed, 29 Jun 2011 01:11:55 +0000 (18:11 -0700)]
ReplicatedPG: project changes to clone_overlap

Previously, changes to clone_overlap were incorrect since make_writeable
is called after do_osd_ops.  Now, ctx->modified_ranges will hold the set
of offsets modified during the transaction to be applied to
clone_overlap during make_writeable.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoMerge branch 'wip-codingstyle'
Sage Weil [Thu, 14 Jul 2011 17:58:58 +0000 (10:58 -0700)]
Merge branch 'wip-codingstyle'

14 years agoCodingStyle: whitespace
Sage Weil [Thu, 14 Jul 2011 17:50:08 +0000 (10:50 -0700)]
CodingStyle: whitespace

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoCodingStyle: final decisions?
Sage Weil [Thu, 14 Jul 2011 17:49:33 +0000 (10:49 -0700)]
CodingStyle: final decisions?

- _d suffix for naked struct/class types (not _t!)

- m_ prefix for class members

- prefer braces for single line ifs.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoReplicatedPG: sub_op_push fix
Samuel Just [Thu, 14 Jul 2011 00:06:18 +0000 (17:06 -0700)]
ReplicatedPG: sub_op_push fix

We need to iterate over the intersection of data_subset and data_needed,
not the original data_needed.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoMerge remote branch 'origin/wip-1257'
Sage Weil [Wed, 13 Jul 2011 23:47:07 +0000 (16:47 -0700)]
Merge remote branch 'origin/wip-1257'

14 years agoDon't build build tests unless requested
Colin Patrick McCabe [Wed, 13 Jul 2011 23:11:43 +0000 (16:11 -0700)]
Don't build build tests unless requested

Build tests (that check if there are unresolved symbols in libraries)
can slow down the build a lot. We should only enable them when
developers need them.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorados parallel tests: prepend "test"
Colin Patrick McCabe [Wed, 13 Jul 2011 23:00:50 +0000 (16:00 -0700)]
rados parallel tests: prepend "test"

Just to avoid any confusion, all these test apps should begin with the
word "test".

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorados_list_parallel: add test of list-while-modify
Colin Patrick McCabe [Wed, 13 Jul 2011 22:58:19 +0000 (15:58 -0700)]
rados_list_parallel: add test of list-while-modify

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: unwatch cache sync object before exiting
Yehuda Sadeh [Wed, 13 Jul 2011 22:56:05 +0000 (15:56 -0700)]
rgw: unwatch cache sync object before exiting

14 years agotestrados: fix
Colin Patrick McCabe [Wed, 13 Jul 2011 22:43:09 +0000 (15:43 -0700)]
testrados: fix

Change testrados back to a simple single-threaded test. The
multi-threaded tests need to be properly designed to run multi-threaded.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agosystest_runnable: print line when joining runnables
Colin Patrick McCabe [Wed, 13 Jul 2011 22:42:53 +0000 (15:42 -0700)]
systest_runnable: print line when joining runnables

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoCreate rados_delete_pools_parallel test
Colin Patrick McCabe [Wed, 13 Jul 2011 22:11:44 +0000 (15:11 -0700)]
Create rados_delete_pools_parallel test

* add rados_delete_pools_parallel test

* change RETURN_IF_NOT_VAL -> RETURN1_IF_NOT_VAL.
We want to return a non-zero error code when the value is something we
don't expect, even if that unexpected value is 0.

* st_rados_list_objects: add option to ignore list errors (for the
deletion test)

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoReplicatedPG: data_subset may not contain data_needed
Samuel Just [Wed, 6 Jul 2011 18:23:14 +0000 (11:23 -0700)]
ReplicatedPG: data_subset may not contain data_needed

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoencoding.h: need to pass by reference
Samuel Just [Wed, 6 Jul 2011 18:22:34 +0000 (11:22 -0700)]
encoding.h: need to pass by reference

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoReplicatedPG: fix snaps decode in recover_primary
Samuel Just [Wed, 29 Jun 2011 22:31:49 +0000 (15:31 -0700)]
ReplicatedPG: fix snaps decode in recover_primary

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agotest/osd: TestSnaps now writes large, random objects with holes
Samuel Just [Wed, 6 Jul 2011 18:24:41 +0000 (11:24 -0700)]
test/osd: TestSnaps now writes large, random objects with holes

In order to test clone recovery pathways, TestSnaps now writes to random
subsets of an object between snapshots.  Objects may now also be very
large.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agomds: fix handle_simple_lock on LOCK replica
Sage Weil [Wed, 13 Jul 2011 21:01:16 +0000 (14:01 -0700)]
mds: fix handle_simple_lock on LOCK replica

We were ignoring caps.  To avoid this kind of mistake, use eval_gather(),
like handle_file_lock() does.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: drop useless from field from MInodeFileCaps
Sage Weil [Wed, 13 Jul 2011 20:22:29 +0000 (13:22 -0700)]
mds: drop useless from field from MInodeFileCaps

While we're updating the protocol, clean this up too.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: print cur+nested auth_pins on inode
Sage Weil [Wed, 13 Jul 2011 03:56:14 +0000 (20:56 -0700)]
mds: print cur+nested auth_pins on inode

And clean up a bit.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomds: move to MIX state if writer wanted and no wanted loner
Sage Weil [Wed, 13 Jul 2011 00:27:41 +0000 (17:27 -0700)]
mds: move to MIX state if writer wanted and no wanted loner

We can just look at the target loner here, which also takes any caps wanted
by other replicas on other MDSs into account.  Otherwise we need to
to duplicate the CInode::calc_ideal_loner() logic.

This assumes the loner field is accurate.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomds: print mds_caps_wanted on inode
Sage Weil [Wed, 13 Jul 2011 00:24:47 +0000 (17:24 -0700)]
mds: print mds_caps_wanted on inode

along with the client caps info

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomds: improve print() for MInodeFileCaps
Sage Weil [Wed, 13 Jul 2011 00:24:19 +0000 (17:24 -0700)]
mds: improve print() for MInodeFileCaps

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomds: migrate loner_cap state
Sage Weil [Wed, 13 Jul 2011 20:18:38 +0000 (13:18 -0700)]
mds: migrate loner_cap state

It is tedious to infer what the old loner_cap was pre-migration. Just send
it over the wire and set it explicitly. Usually when we eval() we would
have come to the same conclusion, but when we didn't, we got into
inconsistent/impossible states where the issue caps don't match the loner
state (Asx issued but no loner_cap set).  That meant the next issue was
a revocation with no lock state change, which led to yet more problems
down the line.

This is an internal MDS protocol change.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: clear [want_]loner_cap on cap export
Sage Weil [Wed, 13 Jul 2011 17:39:18 +0000 (10:39 -0700)]
mds: clear [want_]loner_cap on cap export

These fields are meaningless on the replica.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoMove list objects logic to st_rados_list_objects
Colin Patrick McCabe [Wed, 13 Jul 2011 21:37:48 +0000 (14:37 -0700)]
Move list objects logic to st_rados_list_objects

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorados_list_parallel: fix rados_ioctx_destroy uses
Colin Patrick McCabe [Wed, 13 Jul 2011 19:51:31 +0000 (12:51 -0700)]
rados_list_parallel: fix rados_ioctx_destroy uses

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorados_list_parallel: add test4
Colin Patrick McCabe [Tue, 12 Jul 2011 18:12:04 +0000 (11:12 -0700)]
rados_list_parallel: add test4

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorados_list_parallel: test adding objects + listing
Colin Patrick McCabe [Tue, 12 Jul 2011 00:50:41 +0000 (17:50 -0700)]
rados_list_parallel: test adding objects + listing

Test one runnable adding objects while another runnable lists them.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd rerun.sh
Colin Patrick McCabe [Fri, 8 Jul 2011 03:12:03 +0000 (20:12 -0700)]
Add rerun.sh

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorados_list_parallel: make num_objects selectable
Colin Patrick McCabe [Fri, 8 Jul 2011 01:56:35 +0000 (18:56 -0700)]
rados_list_parallel: make num_objects selectable

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoadd CrossProcessSem::reinit, fix rados_list_parallel
Colin Patrick McCabe [Thu, 7 Jul 2011 21:44:18 +0000 (14:44 -0700)]
add CrossProcessSem::reinit, fix rados_list_parallel

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoNow we can put runnable logs into separate files
Colin Patrick McCabe [Thu, 7 Jul 2011 00:08:41 +0000 (17:08 -0700)]
Now we can put runnable logs into separate files

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd rados_open_pools_parallel test
Colin Patrick McCabe [Wed, 6 Jul 2011 23:20:36 +0000 (16:20 -0700)]
Add rados_open_pools_parallel test

Also add rados_open_pools_parallel to .gitignore

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: clean up temp object if failed to PUT
Yehuda Sadeh [Wed, 13 Jul 2011 21:08:38 +0000 (14:08 -0700)]
rgw: clean up temp object if failed to PUT

Conflicts:

src/rgw/rgw_op.cc

14 years agorgw: clean up temp object if failed to PUT
Yehuda Sadeh [Wed, 13 Jul 2011 21:08:38 +0000 (14:08 -0700)]
rgw: clean up temp object if failed to PUT

14 years agorgw: remove include of curl/types.h
Yehuda Sadeh [Wed, 13 Jul 2011 19:23:47 +0000 (12:23 -0700)]
rgw: remove include of curl/types.h

14 years agotest/rgw_escape: add JSON + utf-8 test
Colin Patrick McCabe [Wed, 13 Jul 2011 18:47:24 +0000 (11:47 -0700)]
test/rgw_escape: add JSON + utf-8 test

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/rgw_escape.cc: add utf-8 test
Colin Patrick McCabe [Wed, 13 Jul 2011 18:24:48 +0000 (11:24 -0700)]
test/rgw_escape.cc: add utf-8 test

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoCodingStyle: Typos, whitespace.
Tommi Virtanen [Wed, 13 Jul 2011 18:25:22 +0000 (11:25 -0700)]
CodingStyle: Typos, whitespace.

14 years agorgw: fix escaping clobbering utf8
Yehuda Sadeh [Wed, 13 Jul 2011 17:46:39 +0000 (10:46 -0700)]
rgw: fix escaping clobbering utf8

14 years agocrushtool: Add call to global_init() to avoid dout segfault
Jim Schutt [Tue, 12 Jul 2011 22:20:59 +0000 (16:20 -0600)]
crushtool: Add call to global_init() to avoid dout segfault

Signed-off-by: Jim Schutt <jaschut@sandia.gov>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoRevert "mds: handle importer failure on exporter"
Sage Weil [Wed, 13 Jul 2011 16:26:54 +0000 (09:26 -0700)]
Revert "mds: handle importer failure on exporter"

This reverts commit bf768cb146b23d345efcc51badfe668bf37d4046.

This won't actually happen with f44cffdb8ccc8cf258b418146dbbfc20a9b685f9

14 years agoobsync: Depend on python-pyxattr instead of python-xattr
Wido den Hollander [Wed, 13 Jul 2011 13:20:37 +0000 (15:20 +0200)]
obsync: Depend on python-pyxattr instead of python-xattr

Signed-off-by: Wido den Hollander <wido@widodh.nl>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: verify deferred messages aren't stale
Sage Weil [Tue, 12 Jul 2011 23:49:25 +0000 (16:49 -0700)]
mds: verify deferred messages aren't stale

We may defer processing of some messages because we are laggy (in hearing
from the monitor).  When we eventually get to those messages, make sure
they haven't since become stale (i.e., the source mds isn't now down).

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomds: handle importer failure on exporter
Sage Weil [Tue, 12 Jul 2011 23:47:16 +0000 (16:47 -0700)]
mds: handle importer failure on exporter

If the export is reversed but we still receive the ack, behave.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorados: fix warning
Sage Weil [Tue, 12 Jul 2011 03:46:56 +0000 (20:46 -0700)]
rados: fix warning

warning: rados.cc:319: large integer implicitly truncated to unsigned type

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoclient: print ino along with &fh for ll_ file ops
Sage Weil [Tue, 12 Jul 2011 03:58:37 +0000 (20:58 -0700)]
client: print ino along with &fh for ll_ file ops

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorados: fix warning
Sage Weil [Tue, 12 Jul 2011 03:46:56 +0000 (20:46 -0700)]
rados: fix warning

warning: rados.cc:319: large integer implicitly truncated to unsigned type

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorgw: bucket deletion updates caches
Yehuda Sadeh [Mon, 11 Jul 2011 23:55:05 +0000 (16:55 -0700)]
rgw: bucket deletion updates caches

14 years agomime.c: avoid compiler warning
Colin Patrick McCabe [Mon, 11 Jul 2011 22:12:25 +0000 (15:12 -0700)]
mime.c: avoid compiler warning

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/mime: test invalid decodes
Colin Patrick McCabe [Mon, 11 Jul 2011 22:11:40 +0000 (15:11 -0700)]
test/mime: test invalid decodes

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomime.h: better comments
Colin Patrick McCabe [Mon, 11 Jul 2011 22:11:24 +0000 (15:11 -0700)]
mime.h: better comments

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd mime encoding
Colin Patrick McCabe [Mon, 11 Jul 2011 21:31:59 +0000 (14:31 -0700)]
Add mime encoding

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: fix lru
Yehuda Sadeh [Mon, 11 Jul 2011 21:26:16 +0000 (14:26 -0700)]
rgw: fix lru

14 years agorgw: restructure runtime config env
Yehuda Sadeh [Mon, 11 Jul 2011 20:41:40 +0000 (13:41 -0700)]
rgw: restructure runtime config env

14 years agomds: only issue xlocker_caps if we are also the loner
Sage Weil [Mon, 11 Jul 2011 18:35:15 +0000 (11:35 -0700)]
mds: only issue xlocker_caps if we are also the loner

We cannot issue caps to a client purely because they have something
xlocked, because we do not revoke caps when we drop the xlock.  However,
if they are a loner AND have the object xlocked, we can; this is why the
xlock release code either moves to LOCK or EXCL state.

Remember, the goal here is to issue caps when we do operations on objects
that xlock them (e.g. setattr, mknod) and move directly to the EXCL state
afterward.  That only works (or makes sense) when we are the lone client
with caps.

Fix the get_caps_allowed_by_type() helper to do this properly.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: rely on master to do anchor locks for slave_link_prep
Sage Weil [Sun, 10 Jul 2011 21:15:38 +0000 (14:15 -0700)]
mds: rely on master to do anchor locks for slave_link_prep

The replica can't take all these locks without confusing things, since it
maybe need to unlock/relock, may screw up auth_pins, and worse.  The master
can take the locks.

The only problem is that the master may not know if the inode has already
been anchored if the lock hasn't cycled since then.  In that case, we take
more locks than we need to.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoclient: set I_COMPLETE after adding cap
Sage Weil [Mon, 11 Jul 2011 19:07:57 +0000 (12:07 -0700)]
client: set I_COMPLETE after adding cap

This avoids immediately clearing it because we are newly (re)issued the
Fs cap (a generic check in the cap add code).

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: reenable local ENOENT
Sage Weil [Mon, 11 Jul 2011 19:07:03 +0000 (12:07 -0700)]
client: reenable local ENOENT

This was accidentally disabled by commit:c7e248b.

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