]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
13 years agocrypto: reinclude our assert to clobber system one
Sage Weil [Wed, 31 Aug 2011 16:53:49 +0000 (09:53 -0700)]
crypto: reinclude our assert to clobber system one

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoglobal_init: make startup line consistent, less ugly
Sage Weil [Wed, 31 Aug 2011 16:25:47 +0000 (09:25 -0700)]
global_init: make startup line consistent, less ugly

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoMakefile: add os/*Index.h to dist tarball
Sage Weil [Wed, 31 Aug 2011 04:24:27 +0000 (21:24 -0700)]
Makefile: add os/*Index.h to dist tarball

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agodoc/architecture: describe lib arch, config arch
Colin Patrick McCabe [Wed, 31 Aug 2011 02:48:33 +0000 (19:48 -0700)]
doc/architecture: describe lib arch, config arch

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agoosd: fix osd reply message
Yehuda Sadeh [Tue, 30 Aug 2011 22:55:24 +0000 (15:55 -0700)]
osd: fix osd reply message

13 years agocosd,OSD: Improve filestore upgrade path
Samuel Just [Tue, 30 Aug 2011 22:34:18 +0000 (15:34 -0700)]
cosd,OSD: Improve filestore upgrade path

Previously, fsconverter was required to update an osd filestore to the
most recent version.  cosd will now handle that automatically on
startup.  cosd --convert-filestore will also update the FileStore
to the most recent version.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoObjectStore: Support older format on journal replay
Samuel Just [Tue, 30 Aug 2011 20:55:06 +0000 (13:55 -0700)]
ObjectStore: Support older format on journal replay

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agolibrados: don't hide error in case of failed pool ctx creation
Yehuda Sadeh [Tue, 30 Aug 2011 21:14:05 +0000 (14:14 -0700)]
librados: don't hide error in case of failed pool ctx creation

13 years agoMerge branch 'stable'
Sage Weil [Tue, 30 Aug 2011 20:15:00 +0000 (13:15 -0700)]
Merge branch 'stable'

13 years agoclient: plug leak of inode refs on seekdir(0)
Sage Weil [Tue, 30 Aug 2011 17:33:35 +0000 (10:33 -0700)]
client: plug leak of inode refs on seekdir(0)

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoclient: fix iterator adjustment in readdir assimilation
Sage Weil [Tue, 30 Aug 2011 17:09:56 +0000 (10:09 -0700)]
client: fix iterator adjustment in readdir assimilation

We need to move past the item we already had or else we'll remove it again
during the next iteration of the loop.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoclient: drop mostly-useless relink()
Sage Weil [Tue, 30 Aug 2011 20:10:42 +0000 (13:10 -0700)]
client: drop mostly-useless relink()

Just use unlink() and then link().  Carry an inode ref to avoid badness.
The relink() is left over from a simpler time when we didn't do proper
refcounting.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agodoc: Hide empty and broken "module index" page.
Tommi Virtanen [Tue, 30 Aug 2011 19:47:24 +0000 (12:47 -0700)]
doc: Hide empty and broken "module index" page.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
13 years agodoc: Disable static file copying, we don't use it.
Tommi Virtanen [Tue, 30 Aug 2011 19:38:37 +0000 (12:38 -0700)]
doc: Disable static file copying, we don't use it.

Avoids a warning from sphinx on every run.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
13 years agodoc: Flesh out librados API example, to show doxygen & sphinx integration.
Tommi Virtanen [Tue, 30 Aug 2011 19:37:12 +0000 (12:37 -0700)]
doc: Flesh out librados API example, to show doxygen & sphinx integration.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
13 years agoJournalingObjectStore: journal_replay committed_seq fix
Samuel Just [Mon, 29 Aug 2011 17:41:24 +0000 (10:41 -0700)]
JournalingObjectStore: journal_replay committed_seq fix

Previously, committed_seq was set to op_seq at the end of
replay_journal.  committed_seq should not actually be set until the
sync thread runs.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agodoc: Adjust how table of contents is presented.
Tommi Virtanen [Tue, 30 Aug 2011 18:26:56 +0000 (11:26 -0700)]
doc: Adjust how table of contents is presented.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
13 years agoclient: additional sanity checks on link/unlink
Sage Weil [Tue, 30 Aug 2011 15:40:13 +0000 (08:40 -0700)]
client: additional sanity checks on link/unlink

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoMerge remote branch 'vapre/stable'
Sage Weil [Tue, 30 Aug 2011 15:38:47 +0000 (08:38 -0700)]
Merge remote branch 'vapre/stable'

13 years agoclient: simplify Inode operator<<
Sage Weil [Tue, 30 Aug 2011 15:36:56 +0000 (08:36 -0700)]
client: simplify Inode operator<<

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoclient: fix readder result merge
Sage Weil [Tue, 30 Aug 2011 14:09:06 +0000 (07:09 -0700)]
client: fix readder result merge

When merging readdir results into the cache, we want to remove any names
_preceeding_ the current item before updating it.  Then, at the end, we
clean up the trailing items.

This fixes a cfuse crash on workunits/snaps/snaptest-2.sh.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agoclient: relink_inode -> relink
Sage Weil [Tue, 30 Aug 2011 14:13:53 +0000 (07:13 -0700)]
client: relink_inode -> relink

and some comments.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agoclient: add some asserts
Sage Weil [Tue, 30 Aug 2011 14:10:04 +0000 (07:10 -0700)]
client: add some asserts

Add sanity checks in close_dir(), and make sure we aren't replacing a dn
with the same name in link().

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agoclient: fix readder result merge
Sage Weil [Tue, 30 Aug 2011 14:09:06 +0000 (07:09 -0700)]
client: fix readder result merge

When merging readdir results into the cache, we want to remove any names
_preceeding_ the current item before updating it.  Then, at the end, we
clean up the trailing items.

This fixes a cfuse crash on workunits/snaps/snaptest-2.sh.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agoos/hashindex: fix #include
Sage Weil [Tue, 30 Aug 2011 02:32:22 +0000 (19:32 -0700)]
os/hashindex: fix #include

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agoMerge branch 'wip_colindex'
Samuel Just [Tue, 30 Aug 2011 00:59:10 +0000 (17:59 -0700)]
Merge branch 'wip_colindex'

13 years agoosd/,os/,osdc/: Convert collection_list_handle_t to a struct
Samuel Just [Thu, 25 Aug 2011 22:35:15 +0000 (15:35 -0700)]
osd/,os/,osdc/: Convert collection_list_handle_t to a struct

Previously, we stored the collection_list handle as an opaque
uint64_t.  Now, collection_list_handle_t is a struct defined
in types.h.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agofsconverter.cc: Added fsconverter
Samuel Just [Thu, 25 Aug 2011 15:39:37 +0000 (08:39 -0700)]
fsconverter.cc: Added fsconverter

fsconverter updates an existing FileStore to the most recent FileStore
format

Signed-off-by: Samuel Just <rexludorum@gmail.com>
13 years agoFileStore: On mount, scan collections for unstable state
Samuel Just [Tue, 23 Aug 2011 15:53:26 +0000 (08:53 -0700)]
FileStore: On mount, scan collections for unstable state

CollectionIndex implementations may perform compound operations
leaving invalid state if interrupted.  index->cleanup() gives
the implementation an oportunity to cleanup any in-progress
operation.  For HashIndex, split and merge fall in this
category

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoFileStore: Added update_version_stamp
Samuel Just [Thu, 25 Aug 2011 15:40:43 +0000 (08:40 -0700)]
FileStore: Added update_version_stamp

update_version_stamp may be used to refresh the filestore version
stamp when all collections have been brought to the current
version.

Signed-off-by: Samuel Just <rexludorum@gmail.com>
13 years agoFileStore: Add filestore version stamp
Samuel Just [Wed, 17 Aug 2011 23:23:00 +0000 (16:23 -0700)]
FileStore: Add filestore version stamp

A filestore will now be tagged with a version stamp during
mkfs.  If on mount the version stamp detected lags the current
version, the mount will fail unless filestore_update_collections
is set in gconf.  If it is set, opening a collection will cause
the version stamp on the collection to be read and the
appropriate indexing implmentation to be used.  This will allow
for conversion from old collection indexing schemes to new
ones.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoosd_types.h: Fix support for old object_info_t
Samuel Just [Wed, 17 Aug 2011 20:56:45 +0000 (13:56 -0700)]
osd_types.h: Fix support for old object_info_t

The object locator in the old encoding is necessary
to get the hash for soid.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoFileStore: Integrates HashIndex/IndexManager into FileStore
Samuel Just [Tue, 9 Aug 2011 22:46:16 +0000 (15:46 -0700)]
FileStore: Integrates HashIndex/IndexManager into FileStore

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoos/FlatIndex: FlatIndex encapsulates previous FileStore behavior
Samuel Just [Tue, 16 Aug 2011 00:43:48 +0000 (17:43 -0700)]
os/FlatIndex: FlatIndex encapsulates previous FileStore behavior

FlatIndex will be used to read and convert the previous on disk
format.

Signed-off-by: Samuel Just <rexludorum@gmail.com>
13 years agoFileStore: CollectionIndex, HashIndex, IndexManager
Samuel Just [Tue, 9 Aug 2011 22:45:12 +0000 (15:45 -0700)]
FileStore: CollectionIndex, HashIndex, IndexManager

Adds ColletionIndex, an interface for collection indexing
systems, and HashIndex, a mechanism for organising a prehashed
collection.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoReplicatedPG: find_object_context now takes an hobject_t
Samuel Just [Wed, 13 Jul 2011 18:02:56 +0000 (11:02 -0700)]
ReplicatedPG: find_object_context now takes an hobject_t

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoosd/: fix hobject_t construction
Samuel Just [Mon, 11 Jul 2011 20:22:48 +0000 (13:22 -0700)]
osd/: fix hobject_t construction

sobject_t requires only an object_t and a snapid_t.  hobject_t also
requires the hash which should be used for the object.  In most cases,
the osd must fill this in using the op message.  In cases where the hash
used does not matter (as in the metadata collection), the explicit
hobject_t(const sobject_t &) constructor supplies a hash.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agodupstore: s/sobject_t/hobject_t
Samuel Just [Fri, 8 Jul 2011 18:35:23 +0000 (11:35 -0700)]
dupstore: s/sobject_t/hobject_t

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agosrc/messages/: s/sobject_t/hobject_t
Samuel Just [Fri, 8 Jul 2011 18:29:50 +0000 (11:29 -0700)]
src/messages/: s/sobject_t/hobject_t

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agosrc/osd/: s/sobject_t/hobject_t/g
Samuel Just [Fri, 8 Jul 2011 18:16:01 +0000 (11:16 -0700)]
src/osd/: s/sobject_t/hobject_t/g

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agosrc/os/: s/sobject_t/hobject_t/g
Samuel Just [Fri, 8 Jul 2011 18:13:49 +0000 (11:13 -0700)]
src/os/: s/sobject_t/hobject_t/g

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoobject.h: hobject_t definition
Samuel Just [Fri, 8 Jul 2011 17:45:34 +0000 (10:45 -0700)]
object.h: hobject_t definition

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoceph/src/test/store_test.cc: added store_test.cc
Samuel Just [Tue, 9 Aug 2011 22:42:50 +0000 (15:42 -0700)]
ceph/src/test/store_test.cc: added store_test.cc

Meant to test basic file store functionality

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoObjectStore.h: const cleanup in transaction method params
Samuel Just [Wed, 24 Aug 2011 18:35:36 +0000 (11:35 -0700)]
ObjectStore.h: const cleanup in transaction method params

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoFileStore.cc: Fix error in collection_rename
Samuel Just [Thu, 25 Aug 2011 15:41:40 +0000 (08:41 -0700)]
FileStore.cc: Fix error in collection_rename

Previously, the rename operated on the collection names.  Now, rename
operations on the full paths to the collections.

Signed-off-by: Samuel Just <rexludorum@gmail.com>
13 years agoJournalingObjectStore: journal_replay committed_seq fix
Samuel Just [Mon, 29 Aug 2011 17:41:24 +0000 (10:41 -0700)]
JournalingObjectStore: journal_replay committed_seq fix

Previously, committed_seq was set to op_seq at the end of
replay_journal.  committed_seq should not actually be set until the
sync thread runs.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoIntegrate Doxygen into Sphinx docs.
Tommi Virtanen [Mon, 29 Aug 2011 22:43:41 +0000 (15:43 -0700)]
Integrate Doxygen into Sphinx docs.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
13 years agoFirst draft of the documentation overhaul.
Tommi Virtanen [Fri, 19 Aug 2011 23:43:21 +0000 (16:43 -0700)]
First draft of the documentation overhaul.

To build the docs, run ./admin/build-doc. To browse them, either get
them on any static website, or just run ./admin/serve-doc to serve
them quickly off of port 8080.

build-doc sets up a virtualenv to avoid needing Sphinx installed
system-wide. serve-doc needs thttpd installed.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
13 years agotest: make escaping unitest happy
Yehuda Sadeh [Tue, 30 Aug 2011 00:19:37 +0000 (17:19 -0700)]
test: make escaping unitest happy

13 years agojson escaping fix
Yehuda Sadeh [Tue, 30 Aug 2011 00:12:03 +0000 (17:12 -0700)]
json escaping fix

13 years agoradosgw_admin, rados tool: don't use camel casing for json output
Yehuda Sadeh [Tue, 30 Aug 2011 00:02:00 +0000 (17:02 -0700)]
radosgw_admin, rados tool: don't use camel casing for json output

13 years agofix json escaping
Yehuda Sadeh [Tue, 30 Aug 2011 00:01:41 +0000 (17:01 -0700)]
fix json escaping

13 years agoclient: debug link/unlink and dn_set parent relationship
Sage Weil [Mon, 29 Aug 2011 22:53:57 +0000 (15:53 -0700)]
client: debug link/unlink and dn_set parent relationship

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agoheartbeatmap: fix reset_timeout with mixed-used threads
Sage Weil [Mon, 29 Aug 2011 22:02:37 +0000 (15:02 -0700)]
heartbeatmap: fix reset_timeout with mixed-used threads

If you have a ThreadPool used by multiple WorkQueues, and some of them are
setting a suicide timeout, we need to clear it when a suicide timeout is
not set.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agorados tool: df dumps formatted data
Yehuda Sadeh [Mon, 29 Aug 2011 22:04:59 +0000 (15:04 -0700)]
rados tool: df dumps formatted data

13 years agorgw: log show dumps some information about bucket owner
Yehuda Sadeh [Mon, 29 Aug 2011 21:19:43 +0000 (14:19 -0700)]
rgw: log show dumps some information about bucket owner

13 years agobandaid for gitbuider
Samuel Just [Mon, 29 Aug 2011 20:06:26 +0000 (13:06 -0700)]
bandaid for gitbuider

13 years agoMerge remote branch 'vapre/wip-pgid'
Sage Weil [Mon, 29 Aug 2011 20:39:12 +0000 (13:39 -0700)]
Merge remote branch 'vapre/wip-pgid'

13 years agoosd: remove dead lookup_lock_pg()
Sage Weil [Mon, 29 Aug 2011 20:39:10 +0000 (13:39 -0700)]
osd: remove dead lookup_lock_pg()

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoosd: set suicide timeouts on some workqueues
Sage Weil [Mon, 29 Aug 2011 18:54:21 +0000 (11:54 -0700)]
osd: set suicide timeouts on some workqueues

OpWQ: timeout * 10
RecoveryWQ: this does no io; it if stalls we're probably stuck in an
  infinite loop.  timeout * 10.
ScrubFinalizeWQ: this is cpu only. we're probably stuck in a loop, or
  swapping.  timeout * 10.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agomon: health not ok when up < in osds
Sage Weil [Mon, 29 Aug 2011 18:41:24 +0000 (11:41 -0700)]
mon: health not ok when up < in osds

We were warning if there were any not up or in osds.  Instead, warn if
there are any osds that are in but not up.  That means if a node fails
and successfully marks the node out and retracts onto remaining nodes, the
ceph cluster is healthy again.

Presumably the fact that the nodes failed should raise other alerts,
because those specific daemons/nodes are not healthy.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agofilestore: add suicide grace to workqueue
Sage Weil [Mon, 29 Aug 2011 17:08:08 +0000 (10:08 -0700)]
filestore: add suicide grace to workqueue

The main thing we are worried about here are kernel BUGs that kill off our
threads.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoheartbeatmap: add suicide grace
Sage Weil [Mon, 29 Aug 2011 17:04:30 +0000 (10:04 -0700)]
heartbeatmap: add suicide grace

Add a second suicide grace period that will make us kill ourselves if
we are sufficiently catatonic.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agorgw: don't check for time skew when Expires was set
Yehuda Sadeh [Mon, 29 Aug 2011 17:57:19 +0000 (10:57 -0700)]
rgw: don't check for time skew when Expires was set

13 years agoclient: simplify Client::remove_cap() args
Sage Weil [Mon, 29 Aug 2011 16:27:13 +0000 (09:27 -0700)]
client: simplify Client::remove_cap() args

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoclient: clean up Client::remove_session_caps() args
Sage Weil [Mon, 29 Aug 2011 16:21:33 +0000 (09:21 -0700)]
client: clean up Client::remove_session_caps() args

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoclient: don't falsely populate mds_sessions on bad MClientSession msg
Sage Weil [Mon, 29 Aug 2011 16:20:53 +0000 (09:20 -0700)]
client: don't falsely populate mds_sessions on bad MClientSession msg

If from isn't in the map, we don't want to add it via operator[].

Fixes: #1367
Signed-off-by: Sage Weil <sage@newdream.net>
13 years agotestlibrbd: remove useless sizeofs
Sage Weil [Mon, 29 Aug 2011 15:59:46 +0000 (08:59 -0700)]
testlibrbd: remove useless sizeofs

Should be sizeof(*result), if anything.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agotestlibrbd: fix assert side effect
Sage Weil [Mon, 29 Aug 2011 15:55:53 +0000 (08:55 -0700)]
testlibrbd: fix assert side effect

Coverity cid 1, 2

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoFileJournal: Also classify kernel major version 3 as safe with disk-cache on
Wido den Hollander [Sat, 27 Aug 2011 20:37:05 +0000 (22:37 +0200)]
FileJournal: Also classify kernel major version 3 as safe with disk-cache on

Signed-off-by: Wido den Hollander <wido@widodh.nl>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agoosd: decode pg_t in old PG::Info
Sage Weil [Sun, 28 Aug 2011 03:45:15 +0000 (20:45 -0700)]
osd: decode pg_t in old PG::Info

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agoosd: requrie PGID64 of mons, other osds
Sage Weil [Sat, 27 Aug 2011 16:57:13 +0000 (09:57 -0700)]
osd: requrie PGID64 of mons, other osds

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agomds: require PGID64 of mons
Sage Weil [Sat, 27 Aug 2011 16:56:45 +0000 (09:56 -0700)]
mds: require PGID64 of mons

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agomon: require PGID64 of osds and other mons
Sage Weil [Sat, 27 Aug 2011 16:56:07 +0000 (09:56 -0700)]
mon: require PGID64 of osds and other mons

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agopgmap: decode old pg_t
Sage Weil [Fri, 26 Aug 2011 19:31:52 +0000 (12:31 -0700)]
pgmap: decode old pg_t

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agomdsmap: int64_t pool ids
Sage Weil [Fri, 26 Aug 2011 18:01:41 +0000 (11:01 -0700)]
mdsmap: int64_t pool ids

Encode old-format maps for clients without PGID64 feature bit.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoosd: add 64-bit pools to ObjectLocator
Sage Weil [Fri, 26 Aug 2011 17:03:04 +0000 (10:03 -0700)]
osd: add 64-bit pools to ObjectLocator

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoosdmap: encode/decode old + new version
Sage Weil [Fri, 26 Aug 2011 16:55:20 +0000 (09:55 -0700)]
osdmap: encode/decode old + new version

In MOSDMap, reencode map payloads using old format if the target doesn't
have the PGID64 feature bit.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoosd: decode old pg_stat_t
Sage Weil [Thu, 25 Aug 2011 21:08:52 +0000 (14:08 -0700)]
osd: decode old pg_stat_t

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoosd: make MOSDOp[Reply] encoding backwards compatible
Sage Weil [Thu, 25 Aug 2011 20:59:42 +0000 (13:59 -0700)]
osd: make MOSDOp[Reply] encoding backwards compatible

Move away from struct-based encoding of MOSDOpReply while we're at it.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoosd: add PGID64 feature bit
Sage Weil [Thu, 25 Aug 2011 20:52:30 +0000 (13:52 -0700)]
osd: add PGID64 feature bit

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoosd: int pool -> int64_t pool
Sage Weil [Thu, 25 Aug 2011 20:51:29 +0000 (13:51 -0700)]
osd: int pool -> int64_t pool

Internal interfaces.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoosd: redo pg_t encoding with 64-bit pool id
Sage Weil [Thu, 25 Aug 2011 20:30:49 +0000 (13:30 -0700)]
osd: redo pg_t encoding with 64-bit pool id

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoosd: fix pg_pool_t::get_pg_num return types
Sage Weil [Thu, 25 Aug 2011 20:28:27 +0000 (13:28 -0700)]
osd: fix pg_pool_t::get_pg_num return types

Unsigned!

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoceph_context: whitespace
Sage Weil [Fri, 26 Aug 2011 04:29:52 +0000 (21:29 -0700)]
ceph_context: whitespace

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agoMerge commit 'v0.34'
Sage Weil [Sat, 27 Aug 2011 16:27:41 +0000 (09:27 -0700)]
Merge commit 'v0.34'

13 years agov0.34 v0.34
Sage Weil [Sat, 27 Aug 2011 04:48:47 +0000 (21:48 -0700)]
v0.34

13 years agorgw: use formatter->dump_string() instead of dump_format()
Yehuda Sadeh [Fri, 26 Aug 2011 23:54:05 +0000 (16:54 -0700)]
rgw: use formatter->dump_string() instead of dump_format()

13 years agorgw: get bucket info only if bucket name is not empty
Yehuda Sadeh [Fri, 26 Aug 2011 21:10:25 +0000 (14:10 -0700)]
rgw: get bucket info only if bucket name is not empty

13 years agoMakefile.am: install coverage files for libtool outputs as well
Josh Durgin [Thu, 11 Aug 2011 19:01:15 +0000 (12:01 -0700)]
Makefile.am: install coverage files for libtool outputs as well

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
13 years agolibrados: watch request should wait for safe response
Yehuda Sadeh [Fri, 26 Aug 2011 18:43:47 +0000 (11:43 -0700)]
librados: watch request should wait for safe response

13 years agoobjectcacher: only want for commit
Sage Weil [Fri, 26 Aug 2011 16:47:03 +0000 (09:47 -0700)]
objectcacher: only want for commit

There was some old, weird stuff going on here where we would wait for the
ACK and COMMIT separately.  This is just wrong.  Writeback does not
complete until the data is committed on disk.

Simplify by waiting only for commit, removing all the 'ack' code, and
going back to a single callback (flush_set).

I didn't notice this for 05063867e2a54176ffc9bbc73391f52766ab403f; both of
these cleanups are needed to fix this.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agomds: fix shadow
Sage Weil [Fri, 26 Aug 2011 16:10:21 +0000 (09:10 -0700)]
mds: fix shadow

Coverity cid 29

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agofix utime.h #include recursion
Sage Weil [Fri, 26 Aug 2011 16:09:45 +0000 (09:09 -0700)]
fix utime.h #include recursion

Coverity cid 11, 13

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agocrush: comment fall-thru
Sage Weil [Fri, 26 Aug 2011 16:00:08 +0000 (09:00 -0700)]
crush: comment fall-thru

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agomds: remove unused Mutation in do_rmdir_rollback()
Sage Weil [Thu, 25 Aug 2011 19:28:32 +0000 (12:28 -0700)]
mds: remove unused Mutation in do_rmdir_rollback()

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoworkunits: make file_layout test setting only one parameter
Greg Farnum [Thu, 25 Aug 2011 19:40:55 +0000 (12:40 -0700)]
workunits: make file_layout test setting only one parameter

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
13 years agocephfs: use strtol instead of atoi; handle 0 properly
Greg Farnum [Thu, 25 Aug 2011 19:22:02 +0000 (12:22 -0700)]
cephfs: use strtol instead of atoi; handle 0 properly

Besides being generally better, this means we can accept pool 0
as the pool to store stuff in.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
13 years agocephfs: fix the stripe_count documentation.
Greg Farnum [Thu, 25 Aug 2011 16:24:58 +0000 (09:24 -0700)]
cephfs: fix the stripe_count documentation.

Whoops!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
13 years agomds: server: should apply new layout settings on top of old layout
Greg Farnum [Thu, 25 Aug 2011 18:28:42 +0000 (11:28 -0700)]
mds: server: should apply new layout settings on top of old layout

This way, the MDS can handle updates of some values without needing
the user to specify the entire layout (ie, they can just switch pools).
This brings the behavior more in line with setting the dir layout.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>