]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
14 years agorados.py: allow configuring rados through constructor options
Josh Durgin [Wed, 21 Sep 2011 22:50:30 +0000 (15:50 -0700)]
rados.py: allow configuring rados through constructor options

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorbd.py: make Image a context manager
Josh Durgin [Wed, 21 Sep 2011 22:44:16 +0000 (15:44 -0700)]
rbd.py: make Image a context manager

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorados.py: make Rados and Ioctx objects context managers
Josh Durgin [Wed, 21 Sep 2011 22:44:04 +0000 (15:44 -0700)]
rados.py: make Rados and Ioctx objects context managers

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorbd.py: make exceptions inherit from a base class
Josh Durgin [Wed, 21 Sep 2011 22:43:36 +0000 (15:43 -0700)]
rbd.py: make exceptions inherit from a base class

This way you can catch them all.
Also remove the unused NoData exceptions
- this was just useful for xattrs in librados.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agoUse cpp_strerror or strerror_r when appropriate.
Josh Durgin [Wed, 21 Sep 2011 17:47:47 +0000 (10:47 -0700)]
Use cpp_strerror or strerror_r when appropriate.

The only remaining uses of strerror are in single-threaded programs
that don't depend on libcommon.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorbd.py: add partial bindings for librbd
Josh Durgin [Wed, 21 Sep 2011 00:26:02 +0000 (17:26 -0700)]
rbd.py: add partial bindings for librbd

This is all the basic operations, but nothing with callbacks yet.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorados.py: raise specific error when write is too long
Josh Durgin [Wed, 21 Sep 2011 00:24:24 +0000 (17:24 -0700)]
rados.py: raise specific error when write is too long

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorbd: init counter to 0 so errors don't say '-1% done'
Josh Durgin [Wed, 21 Sep 2011 00:23:27 +0000 (17:23 -0700)]
rbd: init counter to 0 so errors don't say '-1% done'

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agoReplicatedPG, tmap: return -ENOENT if the key to remove does not exist
Josh Durgin [Wed, 21 Sep 2011 00:22:35 +0000 (17:22 -0700)]
ReplicatedPG, tmap: return -ENOENT if the key to remove does not exist

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agolibrbd: use pre-existing helper methods for tmap operations
Josh Durgin [Tue, 20 Sep 2011 20:09:53 +0000 (13:09 -0700)]
librbd: use pre-existing helper methods for tmap operations

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agolibrbd: add debugging for failing to remove a header object
Josh Durgin [Tue, 20 Sep 2011 19:52:11 +0000 (12:52 -0700)]
librbd: add debugging for failing to remove a header object

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorbd: improve error messages
Josh Durgin [Tue, 20 Sep 2011 19:50:09 +0000 (12:50 -0700)]
rbd: improve error messages

One of these was accidentally not negated.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agomon: fix it again
Sage Weil [Mon, 26 Sep 2011 23:36:54 +0000 (16:36 -0700)]
mon: fix it again

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomon: fix dup pool creation race
Sage Weil [Mon, 26 Sep 2011 23:25:04 +0000 (16:25 -0700)]
mon: fix dup pool creation race

Fixes: #1574
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoinit-ceph: more c* -> ceph-* cleanup
Sage Weil [Mon, 26 Sep 2011 21:25:54 +0000 (14:25 -0700)]
init-ceph: more c* -> ceph-* cleanup

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: fix warning more
Sage Weil [Mon, 26 Sep 2011 21:08:19 +0000 (14:08 -0700)]
osd: fix warning more

Argh

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoradosgw_admin: 'bucket list' or 'buckets list'
Sage Weil [Mon, 26 Sep 2011 21:03:12 +0000 (14:03 -0700)]
radosgw_admin: 'bucket list' or 'buckets list'

The plural looks weird to me.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoMakefile: include init-radosgw in tarball
Sage Weil [Mon, 26 Sep 2011 20:30:43 +0000 (13:30 -0700)]
Makefile: include init-radosgw in tarball

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoradosgw: shut down threadpool
Sage Weil [Mon, 26 Sep 2011 20:28:01 +0000 (13:28 -0700)]
radosgw: shut down threadpool

Don't crash when run as a non-daemon without apache.. e.g. 'radosgw' with
no args.

Fixes: #1572
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: fix warning
Sage Weil [Mon, 26 Sep 2011 20:10:33 +0000 (13:10 -0700)]
osd: fix warning

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agodebian: include radosgw init script in package
Sage Weil [Mon, 26 Sep 2011 18:04:25 +0000 (11:04 -0700)]
debian: include radosgw init script in package

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoradosgw: init script
Sage Weil [Mon, 26 Sep 2011 18:03:33 +0000 (11:03 -0700)]
radosgw: init script

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoMerge branch 'stable'
Sage Weil [Sun, 25 Sep 2011 20:54:26 +0000 (13:54 -0700)]
Merge branch 'stable'

14 years agofilejournal: improve debug error messge
Sage Weil [Sun, 25 Sep 2011 20:54:05 +0000 (13:54 -0700)]
filejournal: improve debug error messge

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd/mon: make max maps per MOSDMap message tunable
Sage Weil [Sat, 24 Sep 2011 22:49:32 +0000 (15:49 -0700)]
osd/mon: make max maps per MOSDMap message tunable

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: limit size of osdmap messages
Sage Weil [Sat, 24 Sep 2011 22:49:16 +0000 (15:49 -0700)]
osd: limit size of osdmap messages

Limit size of MOSDMap messages sent from OSDs.  Send many smaller
messages instead of a single large one.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: drop map_cache_keep_from
Sage Weil [Sat, 24 Sep 2011 22:19:31 +0000 (15:19 -0700)]
osd: drop map_cache_keep_from

The purpose here was to avoid trimming cached maps prior to what we have
on disk.  However, now that we have the map_bl cache, this isn't needed:
anything after that epoch will come out of that cache.

Also, it was broken anyway--the value was never read.  So clean it out!

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: limit size of OSDMap cache
Sage Weil [Sat, 24 Sep 2011 22:16:53 +0000 (15:16 -0700)]
osd: limit size of OSDMap cache

If we get way way behind on our maps, we may end up with a really large
OSDMap cache because we currently on trim old maps based on
oldest_last_clean, which may be way in the past.  Avoid eating up gobs of
RAM by putting a ceiling on the cache size.  It'll mean more disk IO in
those situations, but it also means that we'll only load up the old maps
that we actually need (not every single one).

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorgw: only require content-length to be set on non-acl puts
Greg Farnum [Fri, 23 Sep 2011 22:43:09 +0000 (15:43 -0700)]
rgw: only require content-length to be set on non-acl puts

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoosd: don't finish boot unless instance in map is really us
Sage Weil [Sat, 24 Sep 2011 21:45:32 +0000 (14:45 -0700)]
osd: don't finish boot unless instance in map is really us

We were going BOOTING->ACTIVE as soon as we showed up in the map with the
same client_addr.  Also verify that we were up_from an epoch after when
we started or rebound, to avoid the case where we rebind to the same
ports for client_addr (but maybe not others) and get caught in a rebind
loop.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoinit-ceph: don't umount btrfs by default
Sage Weil [Sat, 24 Sep 2011 21:08:07 +0000 (14:08 -0700)]
init-ceph: don't umount btrfs by default

As an admin I find this very annoying, even though it isn't strictly
symmetrical with the mount behavior.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years ago- Fix atomic set.
Stanislav Sedov [Tue, 20 Sep 2011 05:16:48 +0000 (22:16 -0700)]
- Fix atomic set.

14 years agorgw: only require content-length to be set on non-acl puts
Greg Farnum [Fri, 23 Sep 2011 22:43:09 +0000 (15:43 -0700)]
rgw: only require content-length to be set on non-acl puts

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoRevert "rgw: tolerate missing content-length header on canned ACL puts"
Greg Farnum [Fri, 23 Sep 2011 22:41:56 +0000 (15:41 -0700)]
Revert "rgw: tolerate missing content-length header on canned ACL puts"

This reverts commit 05b06e807ef20c7fe1bd7c7abbeecd656d2280c0.

Don't be stupid when an empty content-length can only be on ACL puts!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoMerge remote branch 'gh/stable'
Sage Weil [Fri, 23 Sep 2011 23:00:24 +0000 (16:00 -0700)]
Merge remote branch 'gh/stable'

14 years agoman: c* -> ceph-* rename: Regenerate manpages.
Tommi Virtanen [Fri, 23 Sep 2011 22:54:46 +0000 (15:54 -0700)]
man: c* -> ceph-* rename: Regenerate manpages.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodoc: Fix reStructuredText formatting warnings.
Tommi Virtanen [Fri, 23 Sep 2011 22:52:49 +0000 (15:52 -0700)]
doc: Fix reStructuredText formatting warnings.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoMakefile: c* -> ceph-* rename: missed cdebugpack in CLEANFILES.
Tommi Virtanen [Fri, 23 Sep 2011 22:46:29 +0000 (15:46 -0700)]
Makefile: c* -> ceph-* rename: missed cdebugpack in CLEANFILES.

make distcheck said:

  ERROR: files left in build directory after distclean:
  ./src/ceph-debugpack
  make[1]: *** [distcleancheck] Error 1

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoMakefile: Add missing header test/unit.h
Tommi Virtanen [Fri, 23 Sep 2011 22:36:26 +0000 (15:36 -0700)]
Makefile: Add missing header test/unit.h

Used to fail "make distcheck".

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years ago.gitignore: distcheck temporary directory.
Tommi Virtanen [Fri, 23 Sep 2011 22:35:30 +0000 (15:35 -0700)]
.gitignore: distcheck temporary directory.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoMakefile: include run-cli-tests-maybe-unset-ccache in dist tarball.
Tommi Virtanen [Fri, 23 Sep 2011 22:15:13 +0000 (15:15 -0700)]
Makefile: include run-cli-tests-maybe-unset-ccache in dist tarball.

Apparently "make distcheck" has been broken for 3 months;
I find that hard to believe, but that's what it looks like.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoceph-run: c* -> ceph-* rename: Use ceph-run as stderr prefix.
Tommi Virtanen [Fri, 23 Sep 2011 22:06:58 +0000 (15:06 -0700)]
ceph-run: c* -> ceph-* rename: Use ceph-run as stderr prefix.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoceph-debugpack: c* -> ceph-* rename: use "ceph-debugpack" as temp dir name too.
Tommi Virtanen [Fri, 23 Sep 2011 22:06:40 +0000 (15:06 -0700)]
ceph-debugpack: c* -> ceph-* rename: use "ceph-debugpack" as temp dir name too.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoudev: c* -> ceph-* rename: missed crbdnamer.
Tommi Virtanen [Fri, 23 Sep 2011 22:05:44 +0000 (15:05 -0700)]
udev: c* -> ceph-* rename: missed crbdnamer.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodebian: c* -> ceph-* rename: missed csyn, crbdnamer.
Tommi Virtanen [Fri, 23 Sep 2011 22:05:25 +0000 (15:05 -0700)]
debian: c* -> ceph-* rename: missed csyn, crbdnamer.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agorpm: c* -> ceph-* rename: missed crbdnamer, cdebugpack.
Tommi Virtanen [Fri, 23 Sep 2011 21:55:20 +0000 (14:55 -0700)]
rpm: c* -> ceph-* rename: missed crbdnamer, cdebugpack.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoMakefile: c* -> ceph-* rename: missed crun.
Tommi Virtanen [Fri, 23 Sep 2011 21:54:16 +0000 (14:54 -0700)]
Makefile: c* -> ceph-* rename: missed crun.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodoc: v0.35 is out, remove rpm build workaround.
Tommi Virtanen [Thu, 22 Sep 2011 18:29:12 +0000 (11:29 -0700)]
doc: v0.35 is out, remove rpm build workaround.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodoc: Add index into the sidebar.
Tommi Virtanen [Thu, 22 Sep 2011 18:24:28 +0000 (11:24 -0700)]
doc: Add index into the sidebar.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodoc: Search page is always in sidebar, no need to have it on page.
Tommi Virtanen [Thu, 22 Sep 2011 18:01:30 +0000 (11:01 -0700)]
doc: Search page is always in sidebar, no need to have it on page.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodoc: Add a space after sudoers "NOPASSWD:", as that seems more common.
Tommi Virtanen [Thu, 22 Sep 2011 17:54:08 +0000 (10:54 -0700)]
doc: Add a space after sudoers "NOPASSWD:", as that seems more common.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodoc: Add index entries, remove glossary as it's practically replaced by the index.
Tommi Virtanen [Thu, 22 Sep 2011 17:53:34 +0000 (10:53 -0700)]
doc: Add index entries, remove glossary as it's practically replaced by the index.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodoc: Leftovers of the c* -> ceph-* rename.
Tommi Virtanen [Fri, 23 Sep 2011 20:39:05 +0000 (13:39 -0700)]
doc: Leftovers of the c* -> ceph-* rename.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agorgw: tolerate missing content-length header on canned ACL puts
Greg Farnum [Fri, 23 Sep 2011 21:47:10 +0000 (14:47 -0700)]
rgw: tolerate missing content-length header on canned ACL puts

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomon: remember source client address in routed requests
Henry C Chang [Thu, 11 Nov 2010 03:40:39 +0000 (11:40 +0800)]
mon: remember source client address in routed requests

when we resend_routed_requests, the source client address is lost.
This may cause problems. For example, if we resend an mds beacon
(boot) to a new monitor leader, the new mdsmap will contain a new
mds entry without IP address.

To reproduce this bug:
1. deploy a cluster with 3 mons.
2. let active mds send beacon to mon0; standby mds send becaon to mon2
3. gdb attach to mon2 to make it unresponsive and make standby mds laggy.
4. gdb attach to mon0 to make it unresponsive and make active mds laggy.
5. detach mon2, then the standby mds will become active.
6. ceph mds dump -o - shows the active mds address is :/0

Signed-off-by: Henry C Chang <henry_c_chang@tcloudcomputing.com>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: fix race between handle_osd_ping and handle_osd_map
Sage Weil [Fri, 23 Sep 2011 19:53:39 +0000 (12:53 -0700)]
osd: fix race between handle_osd_ping and handle_osd_map

If handle_osd_map is in progress and handle_osd_ping doesn't have the
map lock, we can't call osdmap->get_inst() in send_still_alive().  Keep
the entity_inst_t in the failure_pending map so that we don't need to.

osd/OSDMap.h: In function 'entity_inst_t OSDMap::get_inst(int)', in thread '0x7fda6a46b710'
osd/OSDMap.h: 477: FAILED assert(is_up(osd))
 ceph version 0.24.1 (commit:e06fb657842379259826f3d9215101fc14575fbd)
 1: (OSD::send_still_alive(int)+0x1b9) [0x4dd1b9]
 2: (OSD::handle_osd_ping(MOSDPing*)+0x716) [0x4f6446]
 3: (OSD::heartbeat_dispatch(Message*)+0x36) [0x4f6666]
 4: (SimpleMessenger::dispatch_entry()+0x882) [0x46f002]
 5: (SimpleMessenger::DispatchThread::entry()+0x1c) [0x465fac]
 6: (()+0x6a3a) [0x7fda7835aa3a]
 7: (clone()+0x6d) [0x7fda76f7777d]

Reported-by: Henry C Chang <henry_c_chang@tcloudcomputing.com>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoMakefile: drop useless all_sources thing
Sage Weil [Fri, 23 Sep 2011 16:58:19 +0000 (09:58 -0700)]
Makefile: drop useless all_sources thing

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorename source files c* -> ceph-*
Sage Weil [Fri, 23 Sep 2011 16:57:45 +0000 (09:57 -0700)]
rename source files c* -> ceph-*

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomisc: use strncpy to prevent buffer overflow
Henry C Chang [Thu, 24 Feb 2011 02:35:51 +0000 (10:35 +0800)]
misc: use strncpy to prevent buffer overflow

14 years agoceph-elaster: add parentheses around macros
Henry C Chang [Thu, 14 Oct 2010 10:23:44 +0000 (18:23 +0800)]
ceph-elaster: add parentheses around macros

14 years agotest_store: parse args, don't link librados
Sage Weil [Fri, 23 Sep 2011 16:40:19 +0000 (09:40 -0700)]
test_store: parse args, don't link librados

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agocrushtool: add unit test for adding items to map
Sage Weil [Fri, 23 Sep 2011 04:11:34 +0000 (21:11 -0700)]
crushtool: add unit test for adding items to map

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agocrushtool: fix argument parsing
Sage Weil [Fri, 23 Sep 2011 04:01:22 +0000 (21:01 -0700)]
crushtool: fix argument parsing

Reported by: Henry C Chang <henry.cy.chang@gmail.com>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agocrushtool: crush_finalize on any map modification
Sage Weil [Fri, 23 Sep 2011 04:00:52 +0000 (21:00 -0700)]
crushtool: crush_finalize on any map modification

This recalculates max_devices and the parent maps.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoRevert "crush: refuse to add item >= max_devices"
Sage Weil [Fri, 23 Sep 2011 03:56:32 +0000 (20:56 -0700)]
Revert "crush: refuse to add item >= max_devices"

This reverts commit 58f98e7afc364d28a385adc7ef0fee2291d70c17.

max_devices only affects the size of the parent arrays, which aren't allocated
until crush_finalize().  No problems here.

14 years agoMerge branch 'stable'
Sage Weil [Thu, 22 Sep 2011 23:20:02 +0000 (16:20 -0700)]
Merge branch 'stable'

14 years agoMerge branch 'wip-names'
Sage Weil [Thu, 22 Sep 2011 23:19:50 +0000 (16:19 -0700)]
Merge branch 'wip-names'

14 years agoman: rebuild manpages
Sage Weil [Thu, 22 Sep 2011 23:18:19 +0000 (16:18 -0700)]
man: rebuild manpages

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agodoc: more c* -> ceph-* renames
Sage Weil [Thu, 22 Sep 2011 22:16:56 +0000 (15:16 -0700)]
doc: more c* -> ceph-* renames

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorbd: set default pool when none is specified
Josh Durgin [Thu, 22 Sep 2011 22:39:58 +0000 (15:39 -0700)]
rbd: set default pool when none is specified

096e3b6353e5035362cffdcbd2e4a4f5572aa2ba broke this by only using
set_pool_image_name for commands that accept the snapshot
parameter. This whole undocumented format parsing should be reworked
or removed at some point.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agolibceph -> libcephfs
Sage Weil [Thu, 22 Sep 2011 22:07:19 +0000 (15:07 -0700)]
libceph -> libcephfs

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoc* -> ceph-*
Sage Weil [Wed, 21 Sep 2011 23:28:43 +0000 (16:28 -0700)]
c* -> ceph-*

Hopefully I didn't miss too much...

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomount.ceph: use ":/" instead of just ":" as ip/path delimiter
Sage Weil [Thu, 22 Sep 2011 21:46:56 +0000 (14:46 -0700)]
mount.ceph: use ":/" instead of just ":" as ip/path delimiter

This is tolerant of colons in the mount subdir.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoaddr_parsing: null terminate safe_cat result
Sage Weil [Thu, 22 Sep 2011 21:45:44 +0000 (14:45 -0700)]
addr_parsing: null terminate safe_cat result

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomount.ceph: fix use-after-free
Sage Weil [Thu, 22 Sep 2011 21:44:38 +0000 (14:44 -0700)]
mount.ceph: fix use-after-free

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agotest/rados-api/test.cc: Add ability to set client id
Samuel Just [Tue, 20 Sep 2011 00:50:10 +0000 (17:50 -0700)]
test/rados-api/test.cc: Add ability to set client id

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agotest/test_stress_watch.cc: added simple watch stress test
Samuel Just [Mon, 19 Sep 2011 23:27:03 +0000 (16:27 -0700)]
test/test_stress_watch.cc: added simple watch stress test

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoPG: set log.backlog to false on corrupt log
Samuel Just [Thu, 22 Sep 2011 16:46:12 +0000 (09:46 -0700)]
PG: set log.backlog to false on corrupt log

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoPG: set log.backlog to false on corrupt log
Samuel Just [Thu, 22 Sep 2011 16:46:12 +0000 (09:46 -0700)]
PG: set log.backlog to false on corrupt log

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agovstart: debug filestore = 20
Sage Weil [Wed, 21 Sep 2011 23:26:57 +0000 (16:26 -0700)]
vstart: debug filestore = 20

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: fix PG::copy_after vs backlog
Sage Weil [Wed, 21 Sep 2011 22:46:37 +0000 (15:46 -0700)]
osd: fix PG::copy_after vs backlog

If you call copy_after(..., 0) on a log with a backlog, you get all the
backlog entries, but no backlog flag.  That's invalid.  You either need
the _complete_ backlog + the flag, or no backlog entries; getting only
some of them is useless information.

Make copy_after stop when it hits the tail.  Callers who need the backlog
are already checking for that and copying the whole log as appropriate.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomds: fix traverse snap vs forward check
Sage Weil [Wed, 21 Sep 2011 18:39:03 +0000 (11:39 -0700)]
mds: fix traverse snap vs forward check

This should compare against the forward attempt, not retry attempt.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorbd: fix progress redraw
Sage Weil [Wed, 21 Sep 2011 18:23:21 +0000 (11:23 -0700)]
rbd: fix progress redraw

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agodoc: Content for Getting Started with cephfs and rbd.
Tommi Virtanen [Wed, 21 Sep 2011 21:55:11 +0000 (14:55 -0700)]
doc: Content for Getting Started with cephfs and rbd.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodoc: Content for Getting Started with RADOS.
Tommi Virtanen [Wed, 21 Sep 2011 20:43:32 +0000 (13:43 -0700)]
doc: Content for Getting Started with RADOS.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodoc: Structure for Getting Started.
Tommi Virtanen [Wed, 21 Sep 2011 18:55:37 +0000 (11:55 -0700)]
doc: Structure for Getting Started.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodoc: Separate key management from mounting.
Tommi Virtanen [Wed, 21 Sep 2011 00:02:15 +0000 (17:02 -0700)]
doc: Separate key management from mounting.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodoc: Move config reference to top-level.
Tommi Virtanen [Tue, 20 Sep 2011 23:57:36 +0000 (16:57 -0700)]
doc: Move config reference to top-level.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodoc: Split data placement into concrete operations and recommendations.
Tommi Virtanen [Tue, 20 Sep 2011 23:39:54 +0000 (16:39 -0700)]
doc: Split data placement into concrete operations and recommendations.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodoc: Reorganize ops/manage/
Tommi Virtanen [Tue, 20 Sep 2011 23:33:20 +0000 (16:33 -0700)]
doc: Reorganize ops/manage/

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodoc: Move recommendations under /rec.
Tommi Virtanen [Tue, 20 Sep 2011 22:59:07 +0000 (15:59 -0700)]
doc: Move recommendations under /rec.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodoc: Move ops/grow under ops/manage.
Tommi Virtanen [Tue, 20 Sep 2011 22:51:16 +0000 (15:51 -0700)]
doc: Move ops/grow under ops/manage.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodoc: Split manage into multiple pages.
Tommi Virtanen [Tue, 20 Sep 2011 22:47:44 +0000 (15:47 -0700)]
doc: Split manage into multiple pages.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodoc: Split install into multiple pages.
Tommi Virtanen [Tue, 20 Sep 2011 22:45:08 +0000 (15:45 -0700)]
doc: Split install into multiple pages.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodoc: Clean reStructuredText syntax.
Tommi Virtanen [Tue, 20 Sep 2011 22:22:01 +0000 (15:22 -0700)]
doc: Clean reStructuredText syntax.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoMerge branch 'stable'
Sage Weil [Wed, 21 Sep 2011 20:37:45 +0000 (13:37 -0700)]
Merge branch 'stable'

14 years agoclient: tear down dir when setting I_COMPLETE on empty
Sage Weil [Wed, 21 Sep 2011 17:10:54 +0000 (10:10 -0700)]
client: tear down dir when setting I_COMPLETE on empty

If the dir is supposed to be empty and we are setting I_COMPLETE, empty
it out and close it.  This ensures we don't return bad results on a
subsequent readdir().

_Maybe_ related to #1509.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorados: accept '-b' as an argument.
Greg Farnum [Wed, 21 Sep 2011 16:50:29 +0000 (09:50 -0700)]
rados: accept '-b' as an argument.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agov0.35 v0.35
Sage Weil [Wed, 21 Sep 2011 16:36:14 +0000 (09:36 -0700)]
v0.35

14 years agoMakefile: include config_opts.h
Sage Weil [Wed, 21 Sep 2011 16:46:32 +0000 (09:46 -0700)]
Makefile: include config_opts.h

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