]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
13 years agoOSD: info.pgid gets removed from creating_pgs before _create_lock_new_pg
Samuel Just [Wed, 7 Sep 2011 23:29:25 +0000 (16:29 -0700)]
OSD: info.pgid gets removed from creating_pgs before _create_lock_new_pg

Fix bug introduced in cd2716c4151f5c0996bb4d0cf08961f8da281dac.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agorbd: --size is megabytes, not bytes
Sage Weil [Wed, 7 Sep 2011 22:48:05 +0000 (15:48 -0700)]
rbd: --size is megabytes, not bytes

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoosd: take ondisk_read_lock on src_oids
Sage Weil [Wed, 7 Sep 2011 20:28:21 +0000 (13:28 -0700)]
osd: take ondisk_read_lock on src_oids

We need to take the ondisk read lock on src oids for multiobject operations
(like clonerange) to ensure that written data has hit disk before we
clone it elsewhere.

Order of acquisition doesn't actually matter here, since the ondisk locks
are all leaves in the lock dependency hierarchy.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoobject.h: make hobject key private, prevent objects where key == oid
Samuel Just [Wed, 7 Sep 2011 21:25:02 +0000 (14:25 -0700)]
object.h: make hobject key private, prevent objects where key == oid

There should be no difference between an object with a key identical to
its name and an object with the same name but no key.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agorgw: make loop exit case explicit, removes warning
Yehuda Sadeh [Wed, 7 Sep 2011 17:36:37 +0000 (10:36 -0700)]
rgw: make loop exit case explicit, removes warning

13 years agoREADME: update a bit
Sage Weil [Wed, 7 Sep 2011 17:23:39 +0000 (10:23 -0700)]
README: update a bit

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoIndexManager: delete index during RemoveOnDelete
Samuel Just [Wed, 7 Sep 2011 17:13:36 +0000 (10:13 -0700)]
IndexManager: delete index during RemoveOnDelete

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoOSD: use creating_pgs[pgid].history in get_or_create_pg for new pg
Samuel Just [Wed, 7 Sep 2011 16:59:15 +0000 (09:59 -0700)]
OSD: use creating_pgs[pgid].history in get_or_create_pg for new pg

If info.pgid is in creating_pgs, we should use the history from
creating_pgs.  The history passed in will be an empty history from a
creation probe in that case.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoclient: add inode on IMPORT
Sage Weil [Wed, 7 Sep 2011 16:48:35 +0000 (09:48 -0700)]
client: add inode on IMPORT

If we get an IMPORT and don't have the inode, add it.  This fixes a race
like:

 mds0 -> client .. mknod reply (or similar)
 mds0 -> mds1 .. migrate cap
 mds1 -> client .. send IMPORT
 client <- mds1 .. rx IMPORT, but don't have inode
 client <- mds0 .. rx mknod reply, add it.

With this fix, we add the inode and set up the cap on IMPORT, and when we
get the mknod reply we update the inode immutable fields that aren't
present in the cap message (rdev, symlink target).

Fixes: #1513
Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoclient: factor out flush_cap_releases() helper
Sage Weil [Wed, 7 Sep 2011 16:39:53 +0000 (09:39 -0700)]
client: factor out flush_cap_releases() helper

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agomds: bracket LOCK|AUTH -> PREXLOCK transition with start/finish_locking
Sage Weil [Thu, 1 Sep 2011 23:32:24 +0000 (16:32 -0700)]
mds: bracket LOCK|AUTH -> PREXLOCK transition with start/finish_locking

Unlike other lock transitions, we are moving to an _unstable_ state and
then taking our (x)lock.  That means that if we don't actually finish for
some reason (lock order changes, request is canceled, whatever) we leave
things in an unstable state--in this case, PREXLOCK, where nothing else
will touch it.

Call cancel_lock in drop_locks (or in acquire_locks when the order changes)
to clean up after an aborted lock attempt.

Original but reproduced (though not easily) by multimds collection task
fsstress_thrash_subtrees.yaml.

Fixes: #1425
Signed-off-by: Sage Weil <sage@newdream.net>
13 years agomds: _finish_xlock helper
Sage Weil [Thu, 1 Sep 2011 23:28:42 +0000 (16:28 -0700)]
mds: _finish_xlock helper

Factor out _finish_xlock helper to move from XLOCKDONE (or, later,
PREXLOCK) to a non-xlock state.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agomds: mutation: add start/finish locking hooks
Sage Weil [Thu, 1 Sep 2011 23:27:49 +0000 (16:27 -0700)]
mds: mutation: add start/finish locking hooks

Keep track of which lock we are currently working on locking in the
Mutation.  Use helpers to make sure we start/finish locking in a sane
way.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agomds: move Mutation + children out of MDCache.h
Sage Weil [Thu, 1 Sep 2011 21:56:48 +0000 (14:56 -0700)]
mds: move Mutation + children out of MDCache.h

Uninline while we're at it.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agolibrbd: {remove,resize,snap_rollback}_with_progress
Sage Weil [Wed, 7 Sep 2011 05:07:33 +0000 (22:07 -0700)]
librbd: {remove,resize,snap_rollback}_with_progress

C and C++ APIs.  Mirrors the copy_with_progress addition.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agomon: log when we get an error
Sage Weil [Wed, 7 Sep 2011 04:49:06 +0000 (21:49 -0700)]
mon: log when we get an error

...before we assert(!err).

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
13 years agoceph.spec: spec file should be creating /var/run/ceph
Brian Chrisman [Wed, 7 Sep 2011 04:08:47 +0000 (21:08 -0700)]
ceph.spec: spec file should be creating /var/run/ceph

Signed-off-by: Brian Chrisman <brchrisman@gmail.com>
13 years agoosd: nss build of OSD.cc needs CRYPTO_CXXFLAGS since
Jim Schutt [Wed, 7 Sep 2011 04:05:38 +0000 (21:05 -0700)]
osd: nss build of OSD.cc needs CRYPTO_CXXFLAGS since

nss build fails like this:

if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.   \
-D__KERNEL_STRICT_NAMES -Wall -D__CEPH__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT \
-D_THREAD_SAFE -D__STDC_FORMAT_MACROS -D_GNU_SOURCE -rdynamic   -Winit-self \
-Wpointer-arith -fno-strict-aliasing -Wnon-virtual-dtor -Wno-invalid-offsetof \
-Wstrict-null-sentinel   -g -MT OSD.lo -MD -MP -MF ".deps/OSD.Tpo" -c -o OSD.lo `test \
                -f 'osd/OSD.cc' || echo './'`osd/OSD.cc; \
        then mv -f ".deps/OSD.Tpo" ".deps/OSD.Plo"; else rm -f ".deps/OSD.Tpo"; exit \
1; fi  g++ -DHAVE_CONFIG_H -I. -I. -I. -D__KERNEL_STRICT_NAMES -Wall -D__CEPH__ \
-D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -D__STDC_FORMAT_MACROS \
-D_GNU_SOURCE -rdynamic -Winit-self -Wpointer-arith -fno-strict-aliasing \
-Wnon-virtual-dtor -Wno-invalid-offsetof -Wstrict-null-sentinel -g -MT OSD.lo -MD -MP \
-MF .deps/OSD.Tpo -c osd/OSD.cc  -fPIC -DPIC -o .libs/OSD.o In file included from \
./os/LFNIndex.h:27,  from ./os/HashIndex.h:20,
                 from ./os/FileStore.h:26,
                 from osd/OSD.cc:25:
./common/ceph_crypto.h:44:22: error: pk11pub.h: No such file or directory

Commit d59f34ab made FileStore.h include HashIndex.h, which ultimately
results in OSD.cc including ceph_crypto.h.

Signed-off-by: Jim Schutt <jaschut@sandia.gov>
13 years agorgw: fix arg parsing
Yehuda Sadeh [Wed, 7 Sep 2011 03:40:50 +0000 (20:40 -0700)]
rgw: fix arg parsing

13 years agorbd: fix command option parsing, honor --
Colin Patrick McCabe [Wed, 7 Sep 2011 01:01:20 +0000 (18:01 -0700)]
rbd: fix command option parsing, honor --

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agocephtool: add --concise option again
Josh Durgin [Wed, 7 Sep 2011 00:27:17 +0000 (17:27 -0700)]
cephtool: add --concise option again

This was accidentally removed in the arg parsing conversion.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
13 years agorgw: prepare for supporting other meta headers
Yehuda Sadeh [Tue, 6 Sep 2011 23:57:17 +0000 (16:57 -0700)]
rgw: prepare for supporting other meta headers

13 years agoosdmaptool: fix typo in argument
Josh Durgin [Wed, 7 Sep 2011 00:10:55 +0000 (17:10 -0700)]
osdmaptool: fix typo in argument

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
13 years agodoc: Note that mkcephfs can't do upgrades etc.
Tommi Virtanen [Tue, 6 Sep 2011 23:08:58 +0000 (16:08 -0700)]
doc: Note that mkcephfs can't do upgrades etc.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
13 years agodoc: mkcephfs ssh's directly as root@
Tommi Virtanen [Tue, 6 Sep 2011 22:55:37 +0000 (15:55 -0700)]
doc: mkcephfs ssh's directly as root@

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
13 years agomkcephfs: Config $user is irrelevant when we want to run as root.
Tommi Virtanen [Tue, 6 Sep 2011 21:55:28 +0000 (14:55 -0700)]
mkcephfs: Config $user is irrelevant when we want to run as root.

It used to just not sudo if $user was empty, on non-ssh do_root_cmd's.
This bug was exposed by commit 47b09e2f0463f6a5ea8cc8e127b012a0cf1ec4af.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
13 years agoMerge branch 'wip-argparse'
Colin Patrick McCabe [Tue, 6 Sep 2011 22:39:30 +0000 (15:39 -0700)]
Merge branch 'wip-argparse'

Conflicts:
src/rgw/rgw_admin.cc

13 years agoceph tool: convert to new-style arg parsing
Colin Patrick McCabe [Thu, 1 Sep 2011 00:42:18 +0000 (17:42 -0700)]
ceph tool: convert to new-style arg parsing

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agoceph_argparse: remove unused macros, functions
Colin Patrick McCabe [Tue, 6 Sep 2011 22:19:45 +0000 (15:19 -0700)]
ceph_argparse: remove unused macros, functions

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agocfuse: use new-style argument parsing stuff
Colin Patrick McCabe [Tue, 6 Sep 2011 22:16:09 +0000 (15:16 -0700)]
cfuse: use new-style argument parsing stuff

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agocmon: use new argument parsing stuff
Colin Patrick McCabe [Tue, 6 Sep 2011 22:12:33 +0000 (15:12 -0700)]
cmon: use new argument parsing stuff

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agocosd.cc: use new argument parsing functions
Colin Patrick McCabe [Tue, 6 Sep 2011 22:07:55 +0000 (15:07 -0700)]
cosd.cc: use new argument parsing functions

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agocrushtool: use new argument parsing stuff
Colin Patrick McCabe [Tue, 6 Sep 2011 22:03:07 +0000 (15:03 -0700)]
crushtool: use new argument parsing stuff

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agorgw_admin: use new argument parsing stuff
Colin Patrick McCabe [Tue, 6 Sep 2011 21:32:43 +0000 (14:32 -0700)]
rgw_admin: use new argument parsing stuff

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agorbd.cc: use new argument parsing stuff
Colin Patrick McCabe [Tue, 6 Sep 2011 19:01:54 +0000 (12:01 -0700)]
rbd.cc: use new argument parsing stuff

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agoAdd ceph_argparse_withlonglong
Colin Patrick McCabe [Tue, 6 Sep 2011 19:01:39 +0000 (12:01 -0700)]
Add ceph_argparse_withlonglong

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agomonmaptool, osdmaptool: fix double-dash handling
Colin Patrick McCabe [Tue, 6 Sep 2011 18:34:21 +0000 (11:34 -0700)]
monmaptool, osdmaptool: fix double-dash handling

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agomonmaptool: use new argument parsing stuff
Colin Patrick McCabe [Tue, 6 Sep 2011 17:26:51 +0000 (10:26 -0700)]
monmaptool: use new argument parsing stuff

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agocmds: remove unused macro
Colin Patrick McCabe [Tue, 6 Sep 2011 16:59:01 +0000 (09:59 -0700)]
cmds: remove unused macro

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agoTestSignalHandlers: use new argument parsing stuff
Colin Patrick McCabe [Tue, 6 Sep 2011 16:57:37 +0000 (09:57 -0700)]
TestSignalHandlers: use new argument parsing stuff

Use new argument parsing stuff, remove some deadcode, cleanup.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agoosdmaptool: use new ceph_argparse stuff
Colin Patrick McCabe [Tue, 6 Sep 2011 16:44:00 +0000 (09:44 -0700)]
osdmaptool: use new ceph_argparse stuff

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agoceph_argparse: add ceph_argparse_withint
Colin Patrick McCabe [Fri, 2 Sep 2011 20:37:31 +0000 (13:37 -0700)]
ceph_argparse: add ceph_argparse_withint

Add an easy way of parsing an int argument. Always match va_start with
va_end.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agorados.cc: remove unused macro
Colin Patrick McCabe [Thu, 1 Sep 2011 01:42:12 +0000 (18:42 -0700)]
rados.cc: remove unused macro

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agolibrados-config: remove unused old-style argparse
Colin Patrick McCabe [Thu, 1 Sep 2011 01:40:44 +0000 (18:40 -0700)]
librados-config: remove unused old-style argparse

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agocauthtool: convert to new-style arg parsing
Colin Patrick McCabe [Thu, 1 Sep 2011 01:38:49 +0000 (18:38 -0700)]
cauthtool: convert to new-style arg parsing

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agogceph tool: convert to new-style arg parsing
Colin Patrick McCabe [Thu, 1 Sep 2011 01:15:20 +0000 (18:15 -0700)]
gceph tool: convert to new-style arg parsing

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
13 years agorgw: set perm_mask for swift operations
Yehuda Sadeh [Tue, 6 Sep 2011 21:37:30 +0000 (14:37 -0700)]
rgw: set perm_mask for swift operations

13 years agorgw: fix update_container_stats()
Yehuda Sadeh [Tue, 6 Sep 2011 21:22:21 +0000 (14:22 -0700)]
rgw: fix update_container_stats()

being used when using swift

13 years agodoc: Explicitly say ceph.conf host= must not include domain name.
Tommi Virtanen [Tue, 6 Sep 2011 20:48:44 +0000 (13:48 -0700)]
doc: Explicitly say ceph.conf host= must not include domain name.

Hopefully this will work some day, but it doesn't right now.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
13 years agomkcephfs: cosd and cmon setup must happen as root.
Tommi Virtanen [Tue, 6 Sep 2011 20:25:00 +0000 (13:25 -0700)]
mkcephfs: cosd and cmon setup must happen as root.

Without this, they cannot e.g. write to /var/log, or probably
even to their data directories.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
13 years agodoc: Document mkcephfs-style installation.
Tommi Virtanen [Tue, 6 Sep 2011 20:19:44 +0000 (13:19 -0700)]
doc: Document mkcephfs-style installation.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
13 years agoman: mkcephfs: Typo.
Tommi Virtanen [Tue, 6 Sep 2011 18:51:14 +0000 (11:51 -0700)]
man: mkcephfs: Typo.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
13 years agoFileStore: close correct fd in version_stamp methods
Samuel Just [Tue, 6 Sep 2011 18:49:38 +0000 (11:49 -0700)]
FileStore: close correct fd in version_stamp methods

version_stamp_is_valid and write_version_stamp previously closed op_fd
rather than fd causing write_op_sep to fail in sync_entry.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoFileStore: check write_op_seq return code during sync_entry
Samuel Just [Tue, 6 Sep 2011 18:34:26 +0000 (11:34 -0700)]
FileStore: check write_op_seq return code during sync_entry

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
13 years agoReplicatedPG: use the client_messenger for OSD Op replies
Greg Farnum [Sun, 4 Sep 2011 23:53:47 +0000 (16:53 -0700)]
ReplicatedPG: use the client_messenger for OSD Op replies

We were erroneously using the cluster_messenger instead --
looks like the initial conversion just went wrong since this
is in the repop handling code.

Reported-by: Huang Jin <hjwsm1989@gmail.com>
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
13 years agoos/lfnindex: silence compiler warnings
Sage Weil [Sat, 3 Sep 2011 03:48:42 +0000 (20:48 -0700)]
os/lfnindex: silence compiler warnings

gcc warns about the lack of a space before the ';'!  Crazy.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
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>