]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
13 years agoclient: only flush imported cap if it is now auth
Sage Weil [Sat, 3 Sep 2011 03:46:53 +0000 (20:46 -0700)]
client: only flush imported cap if it is now auth

We can get a cap import that isn't auth if there was a racing import
because the cap since migrated to another node.  We do not want to flush
the caps in that case.  Not to this mds, certainly, and not even to
another, because that would have happened when we got the other import.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agoMakefile: flock.h!
Sage Weil [Sat, 3 Sep 2011 03:24:00 +0000 (20:24 -0700)]
Makefile: flock.h!

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agocosd: Do filestore conversion after common_init_finish
Samuel Just [Sat, 3 Sep 2011 01:02:10 +0000 (18:02 -0700)]
cosd: Do filestore conversion after common_init_finish

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agorgw: fix include
Yehuda Sadeh [Sat, 3 Sep 2011 00:10:56 +0000 (17:10 -0700)]
rgw: fix include

13 years agoLFNIndex: Fix lfn parsing for hobjects with keys
Samuel Just [Fri, 2 Sep 2011 23:46:57 +0000 (16:46 -0700)]
LFNIndex: Fix lfn parsing for hobjects with keys

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoMerge branch 'hobject_change'
Samuel Just [Fri, 2 Sep 2011 23:03:16 +0000 (16:03 -0700)]
Merge branch 'hobject_change'

13 years agorgw: rename source file
Yehuda Sadeh [Fri, 2 Sep 2011 22:59:35 +0000 (15:59 -0700)]
rgw: rename source file

13 years agorgw: some var names cleanup
Yehuda Sadeh [Fri, 2 Sep 2011 22:58:49 +0000 (15:58 -0700)]
rgw: some var names cleanup

13 years agoLFNIndex: include index_version in the lfn attribute name
Samuel Just [Fri, 2 Sep 2011 21:32:04 +0000 (14:32 -0700)]
LFNIndex: include index_version in the lfn attribute name

While updating, we use hard links to populate the new directory.  We
need to change the lfn attribute to allow unlinking from the old
directory to continue to work.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agorgw: fix parameter passing to swift user creation
Yehuda Sadeh [Fri, 2 Sep 2011 22:13:14 +0000 (15:13 -0700)]
rgw: fix parameter passing to swift user creation

13 years agoPG: Also fix the key when fixing an incomplete log event
Samuel Just [Fri, 2 Sep 2011 21:30:48 +0000 (14:30 -0700)]
PG: Also fix the key when fixing an incomplete log event

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoLFNIndex: Add support generating keyed hobject_t filenames
Samuel Just [Fri, 2 Sep 2011 18:09:37 +0000 (11:09 -0700)]
LFNIndex: Add support generating keyed hobject_t filenames

LFNIndex will now include the key in the filename.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoFileStore,LFNIndex: Bump filestore version
Samuel Just [Thu, 1 Sep 2011 23:29:00 +0000 (16:29 -0700)]
FileStore,LFNIndex: Bump filestore version

Also adds mechanisms for LFNIndex to handle keyed and keyless hobject_t
versions.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoOSD: fix hobject_t construction
Samuel Just [Fri, 2 Sep 2011 00:15:33 +0000 (17:15 -0700)]
OSD: fix hobject_t construction

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoReplicatedPG: Update hobject_t construction
Samuel Just [Thu, 1 Sep 2011 23:08:50 +0000 (16:08 -0700)]
ReplicatedPG: Update hobject_t construction

hobject_t now must be supplied with a key during construction.
Also, get_snapset_context must be supplied with the locator key.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agostore_test: fix hobject_t construction
Samuel Just [Fri, 2 Sep 2011 00:16:01 +0000 (17:16 -0700)]
store_test: fix hobject_t construction

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoobject.h: Update hobject_t to include object locator key
Samuel Just [Thu, 1 Sep 2011 23:00:07 +0000 (16:00 -0700)]
object.h: Update hobject_t to include object locator key

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agorgw: rename openstack to swift
Yehuda Sadeh [Fri, 2 Sep 2011 21:56:50 +0000 (14:56 -0700)]
rgw: rename openstack to swift

13 years agorgw: s/OPENSTACK/SWIFT/g
Yehuda Sadeh [Fri, 2 Sep 2011 21:36:54 +0000 (14:36 -0700)]
rgw: s/OPENSTACK/SWIFT/g

13 years agoMerge branch 'wip-flock'
Greg Farnum [Fri, 2 Sep 2011 21:04:41 +0000 (14:04 -0700)]
Merge branch 'wip-flock'

13 years agorados tool: fix rados df formatting
Yehuda Sadeh [Fri, 2 Sep 2011 21:21:11 +0000 (14:21 -0700)]
rados tool: fix rados df formatting

13 years agorgw: catch buffer::error exceptions thrown at decode
Yehuda Sadeh [Fri, 2 Sep 2011 20:26:21 +0000 (13:26 -0700)]
rgw: catch buffer::error exceptions thrown at decode

13 years agomds: flock: remove auto-insertion of waiting locks.
Greg Farnum [Fri, 2 Sep 2011 20:11:24 +0000 (13:11 -0700)]
mds: flock: remove auto-insertion of waiting locks.

I don't remember precisely why I had the locking do this (maybe
just for self-containment), but with the messages being re-processed
anyway it's just redundant, and was leading to lots of erroneous
EINTR results.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
13 years agorgw: user info dumps json/xml
Yehuda Sadeh [Fri, 2 Sep 2011 19:39:42 +0000 (12:39 -0700)]
rgw: user info dumps json/xml

13 years agodoc: Deb install should work now.
Tommi Virtanen [Fri, 2 Sep 2011 19:35:58 +0000 (12:35 -0700)]
doc: Deb install should work now.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
13 years agodoc: Write about deb installation.
Tommi Virtanen [Fri, 2 Sep 2011 19:31:37 +0000 (12:31 -0700)]
doc: Write about deb installation.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
13 years agorgw: log of nonexsistent bucket config option
Yehuda Sadeh [Fri, 2 Sep 2011 19:18:00 +0000 (12:18 -0700)]
rgw: log of nonexsistent bucket config option

13 years agoqa: test false
Sage Weil [Fri, 2 Sep 2011 17:51:50 +0000 (10:51 -0700)]
qa: test false

13 years agomds: flock: tidy up comments
Greg Farnum [Fri, 2 Sep 2011 16:27:41 +0000 (09:27 -0700)]
mds: flock: tidy up comments

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
13 years agoflock: move implementation into a separate c++ file
Greg Farnum [Fri, 2 Sep 2011 00:10:50 +0000 (17:10 -0700)]
flock: move implementation into a separate c++ file

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
13 years agoOSD: Fix flipped error codes in do_convertfs
Samuel Just [Thu, 1 Sep 2011 23:33:20 +0000 (16:33 -0700)]
OSD: Fix flipped error codes in do_convertfs

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agorgw: poll allocation thread
Yehuda Sadeh [Thu, 1 Sep 2011 23:00:39 +0000 (16:00 -0700)]
rgw: poll allocation thread

13 years agorgw: user removal delets user index last
Yehuda Sadeh [Thu, 1 Sep 2011 20:58:34 +0000 (13:58 -0700)]
rgw: user removal delets user index last

and also stop if failed to remove anything, so that
we're not left out with partial user info scattered around.

13 years agorgw: multipart meta object uses tmap
Yehuda Sadeh [Thu, 1 Sep 2011 20:37:17 +0000 (13:37 -0700)]
rgw: multipart meta object uses tmap

13 years agodoc: Architecture, placeholder in install, and first appendix.
Tommi Virtanen [Thu, 1 Sep 2011 20:24:06 +0000 (13:24 -0700)]
doc: Architecture, placeholder in install, and first appendix.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
13 years agodoc: Make object store diagram fit in 1024 pix wide browser.
Tommi Virtanen [Thu, 1 Sep 2011 19:43:34 +0000 (12:43 -0700)]
doc: Make object store diagram fit in 1024 pix wide browser.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
13 years agodoc: Move internals into a new section, /dev.
Tommi Virtanen [Thu, 1 Sep 2011 19:42:56 +0000 (12:42 -0700)]
doc: Move internals into a new section, /dev.

Most of the doc is user-oriented, let's isolate internals more.

Split into multiple files. Clean up RST.

Use Sphinx's graphviz plugin for graphs.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
13 years agoobjectcacher: write vs truncate races are ok
Sage Weil [Thu, 1 Sep 2011 20:14:11 +0000 (13:14 -0700)]
objectcacher: write vs truncate races are ok

It is possible to write a buffer, truncate it away, and then not have it
when we get the commit.

Fixes: #1467
Signed-off-by: Sage Weil <sage@newdream.net>
13 years agomds: truncate sanity checks
Sage Weil [Thu, 1 Sep 2011 20:01:06 +0000 (13:01 -0700)]
mds: truncate sanity checks

Hunting #1472.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agorgw: configurable thread pool size
Yehuda Sadeh [Thu, 1 Sep 2011 18:39:59 +0000 (11:39 -0700)]
rgw: configurable thread pool size

13 years agocfuse: initialize Fh to NULL
Sage Weil [Thu, 1 Sep 2011 17:45:22 +0000 (10:45 -0700)]
cfuse: initialize Fh to NULL

Avoid debugging confusion.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoclient: clean up _{create,release}_fh
Sage Weil [Thu, 1 Sep 2011 16:50:25 +0000 (09:50 -0700)]
client: clean up _{create,release}_fh

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agomon: fix 'osd create ...' error paths
Sage Weil [Thu, 1 Sep 2011 16:03:39 +0000 (09:03 -0700)]
mon: fix 'osd create ...' error paths

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agolibrbd: cosmetic changes to progress stuff
Sage Weil [Thu, 1 Sep 2011 01:00:07 +0000 (18:00 -0700)]
librbd: cosmetic changes to progress stuff

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoFinishing moving src/doc/object_store.dot to doc/
Colin Patrick McCabe [Thu, 1 Sep 2011 01:11:17 +0000 (18:11 -0700)]
Finishing moving src/doc/object_store.dot to doc/

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agoAdd object store architecture overview picture
Colin Patrick McCabe [Thu, 1 Sep 2011 01:20:53 +0000 (18:20 -0700)]
Add object store architecture overview picture

It requires graphviz / dot to be installed. It generates a nice graph
of the dependencies between classes in the object store.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agoMerge branch 'wip-librbd-async-copy'
Colin Patrick McCabe [Thu, 1 Sep 2011 00:34:06 +0000 (17:34 -0700)]
Merge branch 'wip-librbd-async-copy'

13 years agoqa: add multiple_rsync.sh workunit
Sage Weil [Thu, 1 Sep 2011 00:41:12 +0000 (17:41 -0700)]
qa: add multiple_rsync.sh workunit

For #1318

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoosd: one more flush before collection_list
Sage Weil [Wed, 31 Aug 2011 23:30:25 +0000 (16:30 -0700)]
osd: one more flush before collection_list

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agomds flock: make get_overlapping_locks and share_space handle 0 lengths
Greg Farnum [Tue, 30 Aug 2011 23:46:11 +0000 (16:46 -0700)]
mds flock: make get_overlapping_locks and share_space handle 0 lengths

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
13 years agoosd: flush previous operations to fs before collection list + destroy
Sage Weil [Wed, 31 Aug 2011 22:43:41 +0000 (15:43 -0700)]
osd: flush previous operations to fs before collection list + destroy

We need to flush any prior ops to the fs before we can rely on
collection_list to return all the objects we need to delete.  If we miss
any, we will crash shortly after this when the rmdir(2) fails with
-ENOTEMPTY (as with #1471).

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoosd: whitespace
Sage Weil [Wed, 31 Aug 2011 22:35:22 +0000 (15:35 -0700)]
osd: whitespace

13 years agoarchitecture.rst: describe debug logs, cephcontext
Colin Patrick McCabe [Wed, 31 Aug 2011 23:19:42 +0000 (16:19 -0700)]
architecture.rst: describe debug logs, cephcontext

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agoMOSDSubOpReply/MSDSubOp: No need to update encoding version.
Samuel Just [Wed, 31 Aug 2011 23:10:01 +0000 (16:10 -0700)]
MOSDSubOpReply/MSDSubOp: No need to update encoding version.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoFlatIndex: lfn_get needs to set *exist for short filenames
Samuel Just [Wed, 31 Aug 2011 21:47:18 +0000 (14:47 -0700)]
FlatIndex: lfn_get needs to set *exist for short filenames

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoOSD: Fix encoding versions affected by hobject switch
Samuel Just [Wed, 31 Aug 2011 21:10:02 +0000 (14:10 -0700)]
OSD: Fix encoding versions affected by hobject switch

PG log did not previously store the object locator.  To get the hash for
the hobject, scan the collection for the object during read_log if we
encouter an old style log entry.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agolibrbd: improve copy_with_progress
Colin Patrick McCabe [Wed, 31 Aug 2011 19:29:48 +0000 (12:29 -0700)]
librbd: improve copy_with_progress

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agoMerge remote branch 'origin/wip-scrub-oi-size'
Josh Durgin [Wed, 31 Aug 2011 18:58:15 +0000 (11:58 -0700)]
Merge remote branch 'origin/wip-scrub-oi-size'

13 years agoMakefile: os/CollectionIndex.h
Sage Weil [Wed, 31 Aug 2011 17:08:11 +0000 (10:08 -0700)]
Makefile: os/CollectionIndex.h

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoassert: work around libatomic_ops vs assert in a less lame way
Sage Weil [Wed, 31 Aug 2011 17:05:09 +0000 (10:05 -0700)]
assert: work around libatomic_ops vs assert in a less lame way

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agofilestore: reorder includes
Sage Weil [Wed, 31 Aug 2011 16:54:41 +0000 (09:54 -0700)]
filestore: reorder includes

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoassert: use our assert
Sage Weil [Wed, 31 Aug 2011 16:54:21 +0000 (09:54 -0700)]
assert: use our assert

Signed-off-by: Sage Weil <sage@newdream.net>
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>