]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
14 years agolibrbd: add C version of get_rados_pools
Josh Durgin [Fri, 4 Feb 2011 01:59:39 +0000 (17:59 -0800)]
librbd: add C version of get_rados_pools

14 years agolibrbd: add rbd prefix to C version of set_snap
Josh Durgin [Fri, 4 Feb 2011 01:52:44 +0000 (17:52 -0800)]
librbd: add rbd prefix to C version of set_snap

14 years agolibrbd: add set_snap and I/O to the C API
Josh Durgin [Fri, 4 Feb 2011 00:32:22 +0000 (16:32 -0800)]
librbd: add set_snap and I/O to the C API

14 years agolibrbd: use RBDClient directly in the C interface
Josh Durgin [Fri, 4 Feb 2011 00:27:12 +0000 (16:27 -0800)]
librbd: use RBDClient directly in the C interface

14 years agolibrados, librbd, radosacl: use new include paths
Josh Durgin [Thu, 3 Feb 2011 19:58:15 +0000 (11:58 -0800)]
librados, librbd, radosacl: use new include paths

14 years agorados, rbd: move include files to their own directories
Yehuda Sadeh [Thu, 3 Feb 2011 19:07:21 +0000 (11:07 -0800)]
rados, rbd: move include files to their own directories

In order to match the path being used with the packages

14 years agolibrbd: Install the headers in the development package
Wido den Hollander [Thu, 3 Feb 2011 11:46:45 +0000 (12:46 +0100)]
librbd: Install the headers in the development package

Signed-off-by: Wido den Hollander <wido@widodh.nl>
14 years agolibrbd: aio write
Yehuda Sadeh [Wed, 2 Feb 2011 22:23:34 +0000 (14:23 -0800)]
librbd: aio write

14 years agolibrbd: convert to dout
Josh Durgin [Thu, 3 Feb 2011 01:27:22 +0000 (17:27 -0800)]
librbd: convert to dout

14 years agolibrbd: use a pointer instead of a globally constructed RBD instance in the C API
Josh Durgin [Thu, 3 Feb 2011 01:09:26 +0000 (17:09 -0800)]
librbd: use a pointer instead of a globally constructed RBD instance in the C API

14 years agolibrbd: initialize order in C API test
Josh Durgin [Thu, 3 Feb 2011 00:57:09 +0000 (16:57 -0800)]
librbd: initialize order in C API test

14 years agorbd: dynamically link with librbd
Josh Durgin [Wed, 2 Feb 2011 23:41:06 +0000 (15:41 -0800)]
rbd: dynamically link with librbd

14 years agolibrbd: re-read image header in get_snapc, and call it after snap create and remove
Josh Durgin [Wed, 2 Feb 2011 02:53:49 +0000 (18:53 -0800)]
librbd: re-read image header in get_snapc, and call it after snap create and remove

This fixes a bug with image context in which the snap info
in the image header showed fewer snapshots than it should have.

14 years agolibrbd: remove unnecessary argument to trim_image
Josh Durgin [Wed, 2 Feb 2011 02:52:17 +0000 (18:52 -0800)]
librbd: remove unnecessary argument to trim_image

14 years agolibrbd: store snapshot names in image context and use them when listing snaps
Josh Durgin [Wed, 2 Feb 2011 02:50:11 +0000 (18:50 -0800)]
librbd: store snapshot names in image context and use them when listing snaps

14 years agolibrbd: add packages for librbd
Josh Durgin [Wed, 2 Feb 2011 01:09:08 +0000 (17:09 -0800)]
librbd: add packages for librbd

14 years agolibrbd: update C interface and tests to use image contexts
Josh Durgin [Fri, 28 Jan 2011 23:11:41 +0000 (15:11 -0800)]
librbd: update C interface and tests to use image contexts

14 years agorbd: fix misc problems
Yehuda Sadeh [Sat, 29 Jan 2011 01:07:53 +0000 (17:07 -0800)]
rbd: fix misc problems

14 years agolibrbd: synchronous read and write functions
Yehuda Sadeh [Fri, 28 Jan 2011 23:35:25 +0000 (15:35 -0800)]
librbd: synchronous read and write functions

also update the rbd tool

14 years agolibrbd: use helper to set ImageCtx snapid
Josh Durgin [Fri, 28 Jan 2011 19:02:59 +0000 (11:02 -0800)]
librbd: use helper to set ImageCtx snapid

14 years agorbd: use updated interface with image_t
Josh Durgin [Fri, 28 Jan 2011 01:12:44 +0000 (17:12 -0800)]
rbd: use updated interface with image_t

14 years agolibrbd: use snapshot metadata from ImageCtx insead of refetching it on each call
Josh Durgin [Thu, 27 Jan 2011 23:49:50 +0000 (15:49 -0800)]
librbd: use snapshot metadata from ImageCtx insead of refetching it on each call

14 years agolibrbd: remove pool_t parameter from some api calls
Yehuda Sadeh [Thu, 27 Jan 2011 22:31:31 +0000 (14:31 -0800)]
librbd: remove pool_t parameter from some api calls

14 years agolibrbd: remove set_assert_version on resize
Yehuda Sadeh [Thu, 27 Jan 2011 22:04:03 +0000 (14:04 -0800)]
librbd: remove set_assert_version on resize

14 years agolibrbd: make ImageCtx stuff compile and remove it from remove/copy/rename
Josh Durgin [Thu, 27 Jan 2011 21:23:06 +0000 (13:23 -0800)]
librbd: make ImageCtx stuff compile and remove it from remove/copy/rename

14 years agolibrbd: add ImageCtx and open/close image
Josh Durgin [Thu, 27 Jan 2011 18:09:22 +0000 (10:09 -0800)]
librbd: add ImageCtx and open/close image

RBDClient functions are partially converted to use it.

14 years agolibrbd: implement some more functionality
Yehuda Sadeh [Thu, 27 Jan 2011 00:17:55 +0000 (16:17 -0800)]
librbd: implement some more functionality

14 years agolibrbd: update C interface and tests
Josh Durgin [Wed, 26 Jan 2011 23:15:07 +0000 (15:15 -0800)]
librbd: update C interface and tests

14 years agolibrbd: return 0 on success in open_pools
Josh Durgin [Wed, 26 Jan 2011 22:53:58 +0000 (14:53 -0800)]
librbd: return 0 on success in open_pools

14 years agolibrbd: remove do_ prefix from RBDClient methods
Josh Durgin [Wed, 26 Jan 2011 22:51:01 +0000 (14:51 -0800)]
librbd: remove do_ prefix from RBDClient methods

14 years agolibrbd: pre-declare RBDClient to avoid a bunch of casts
Josh Durgin [Wed, 26 Jan 2011 22:46:04 +0000 (14:46 -0800)]
librbd: pre-declare RBDClient to avoid a bunch of casts

14 years agorbd: get it compiled with updated librbd
Yehuda Sadeh [Wed, 26 Jan 2011 22:26:59 +0000 (14:26 -0800)]
rbd: get it compiled with updated librbd

14 years agolibrbd: make it compile
Yehuda Sadeh [Wed, 26 Jan 2011 21:37:31 +0000 (13:37 -0800)]
librbd: make it compile

14 years agolibrbd: modify interface a bit
Yehuda Sadeh [Wed, 26 Jan 2011 20:41:32 +0000 (12:41 -0800)]
librbd: modify interface a bit

14 years agorbd: update the command line rbd tool to use librbd
Josh Durgin [Wed, 26 Jan 2011 19:07:31 +0000 (11:07 -0800)]
rbd: update the command line rbd tool to use librbd

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agolibrbd: add tests for the C api
Josh Durgin [Wed, 26 Jan 2011 19:08:39 +0000 (11:08 -0800)]
librbd: add tests for the C api

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agolibrbd: initial implementation created from rbd.cc
Josh Durgin [Thu, 20 Jan 2011 18:54:26 +0000 (10:54 -0800)]
librbd: initial implementation created from rbd.cc

Includes image and snapshot create/list/delete functions.
I/O will be added later.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agodout: force reopen after conf read, fg logging set
Colin Patrick McCabe [Mon, 7 Feb 2011 13:43:56 +0000 (05:43 -0800)]
dout: force reopen after conf read, fg logging set

After the configuration is read, or a program sets foreground logging,
force those changes to be applied to the dout() configuration.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomkcephfs: fix bug in multi-node setups
Colin Patrick McCabe [Mon, 7 Feb 2011 11:24:38 +0000 (03:24 -0800)]
mkcephfs: fix bug in multi-node setups

mkcephfs needs to create $TDIR on the other nodes in a multi-node setup
before trying to scp files into that directory.

Also, do mkdir -p on the directory where the configuration is going to
go.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agosafe_io: move to C
Sage Weil [Mon, 7 Feb 2011 20:12:51 +0000 (12:12 -0800)]
safe_io: move to C

Fixes unistd vs XOPEN_SOURCE define weirdness.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoceph: use new safe_read wrapper
Sage Weil [Mon, 7 Feb 2011 19:54:45 +0000 (11:54 -0800)]
ceph: use new safe_read wrapper

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoadd safe_{read/write} wrappers
Sage Weil [Mon, 7 Feb 2011 19:54:38 +0000 (11:54 -0800)]
add safe_{read/write} wrappers

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agobuild_debian_image: include bind9-host
Sage Weil [Mon, 7 Feb 2011 19:56:53 +0000 (11:56 -0800)]
build_debian_image: include bind9-host

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agobuild_debian_image: fixes
Sage Weil [Mon, 7 Feb 2011 18:07:51 +0000 (10:07 -0800)]
build_debian_image: fixes

- /dev/pts
- copy console helper scripts
- run from any directory

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agofilejournal: fix return code check
Sage Weil [Mon, 7 Feb 2011 17:34:12 +0000 (09:34 -0800)]
filejournal: fix return code check

pwrite() returns number of bytes, or -1.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoqa: test for proper i_complete handling
Sage Weil [Mon, 7 Feb 2011 17:15:21 +0000 (09:15 -0800)]
qa: test for proper i_complete handling

This reproduces some buggery with rename vs I_COMPLETE on the kernel
client.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agobuild_debian_image: include libcrypto++ (need for runtime)
Sage Weil [Mon, 7 Feb 2011 16:56:25 +0000 (08:56 -0800)]
build_debian_image: include libcrypto++ (need for runtime)

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agokernel console debug output setup scripts
Sage Weil [Mon, 7 Feb 2011 16:56:03 +0000 (08:56 -0800)]
kernel console debug output setup scripts

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoscript: add script to build uml images
Sage Weil [Mon, 7 Feb 2011 05:17:08 +0000 (21:17 -0800)]
script: add script to build uml images

Set up a tap interface in your bridge, and then

./linux ubda=image mem=512M eth0=tuntap,tap0 ip=<ip> netmask=<netmask> gw=<gw>

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoremove old script
Sage Weil [Mon, 7 Feb 2011 05:13:32 +0000 (21:13 -0800)]
remove old script

14 years agoremove ancient web content
Sage Weil [Mon, 7 Feb 2011 05:11:05 +0000 (21:11 -0800)]
remove ancient web content

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomsgr: make remove_pid_file fail silently if nothing to remove
Sage Weil [Sun, 6 Feb 2011 21:37:58 +0000 (13:37 -0800)]
msgr: make remove_pid_file fail silently if nothing to remove

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoremove ancient mds_local_osd option
Sage Weil [Sun, 6 Feb 2011 04:43:58 +0000 (20:43 -0800)]
remove ancient mds_local_osd option

This used to add a few osds to the end of the osdmap, not included in the
crush map, with the assumption that they would be colocated with the MDSs
and used as the primary MDS journal copy.  Not a useful hack anymore; you
can do this all explicitly by setting up your own crush map.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agofakemessenger: remove fakemessenger and related dead code
Sage Weil [Sat, 5 Feb 2011 21:55:49 +0000 (13:55 -0800)]
fakemessenger: remove fakemessenger and related dead code

FakeMessenger has hopelessly drifted from the current abstract interface;
all of this code is years old.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoclock: remove tare function
Sage Weil [Sat, 5 Feb 2011 21:50:02 +0000 (13:50 -0800)]
clock: remove tare function

This was used way back when to set a clock's relative "zero" time to
simplify stat collection when running performance benchmarks.  It has no
use in a real system.  If we need relative time for something, we can
subtract off the zero time in the output.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoconfig: remove (most) unused options
Sage Weil [Sat, 5 Feb 2011 21:25:03 +0000 (13:25 -0800)]
config: remove (most) unused options

Left in a few that may be used later:

client_unmount_timeout
osd_shed_reads*
osd_min_raid_width
osd_recovery_forget_lost_objects

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoclient: set lru midpoint
Sage Weil [Sat, 5 Feb 2011 21:21:59 +0000 (13:21 -0800)]
client: set lru midpoint

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agologger: don't calculate variance by default
Sage Weil [Sat, 5 Feb 2011 21:09:47 +0000 (13:09 -0800)]
logger: don't calculate variance by default

Less memory, less CPU.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomsgr: check return values
Sage Weil [Sat, 5 Feb 2011 17:19:06 +0000 (09:19 -0800)]
msgr: check return values

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomsgr: check return values for write_pid_file
Sage Weil [Sat, 5 Feb 2011 17:18:57 +0000 (09:18 -0800)]
msgr: check return values for write_pid_file

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomsgr: SimpleMessenger::start: fix unchecked return
Colin Patrick McCabe [Fri, 4 Feb 2011 19:00:24 +0000 (11:00 -0800)]
msgr: SimpleMessenger::start: fix unchecked return

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomsgr: remove deadcode, warnings
Colin Patrick McCabe [Fri, 4 Feb 2011 18:57:56 +0000 (10:57 -0800)]
msgr: remove deadcode, warnings

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomsgr: remove_pid_file: fix unchecked returns
Colin Patrick McCabe [Fri, 4 Feb 2011 18:53:36 +0000 (10:53 -0800)]
msgr: remove_pid_file: fix unchecked returns

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoos: FileJournal::do_write: fix error handling
Colin Patrick McCabe [Fri, 4 Feb 2011 18:02:22 +0000 (10:02 -0800)]
os: FileJournal::do_write: fix error handling

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMerge branch 'wannoying2'
Colin Patrick McCabe [Fri, 4 Feb 2011 17:47:29 +0000 (09:47 -0800)]
Merge branch 'wannoying2'

Conflicts:
src/os/FileJournal.cc

14 years agofilestore: handle read_op_seq errors
Sage Weil [Fri, 4 Feb 2011 22:27:10 +0000 (14:27 -0800)]
filestore: handle read_op_seq errors

Fixes: #775
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: Return error code when a write is too large.
Greg Farnum [Fri, 4 Feb 2011 21:42:09 +0000 (13:42 -0800)]
osd: Return error code when a write is too large.

This should prevent us from crashing the OSD by trying
to pass in a write that is larger than its journal can handle.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoconfig: add new osd_max_write_size option.
Greg Farnum [Thu, 3 Feb 2011 00:12:04 +0000 (16:12 -0800)]
config: add new osd_max_write_size option.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoassert.h: Add ceph_abort
Colin Patrick McCabe [Fri, 4 Feb 2011 17:28:30 +0000 (09:28 -0800)]
assert.h: Add ceph_abort

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoos: _check_disk_write_cache: fix error handling
Colin Patrick McCabe [Fri, 4 Feb 2011 17:17:57 +0000 (09:17 -0800)]
os: _check_disk_write_cache: fix error handling

Fix error handling; use popen instead of a temporary file.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocmds: check return code of chdir
Colin Patrick McCabe [Fri, 4 Feb 2011 16:50:43 +0000 (08:50 -0800)]
cmds: check return code of chdir

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agounittest_encoding: build without -fstrict-aliasing
Colin Patrick McCabe [Fri, 4 Feb 2011 16:45:37 +0000 (08:45 -0800)]
unittest_encoding: build without -fstrict-aliasing

unittest_encoding gets "this breaks strict-aliasing" warnings when
compiled under Ubuntu. So don't crank up optimization on the unit test.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoFileStore::mount: fix error handling
Colin Patrick McCabe [Fri, 4 Feb 2011 15:42:14 +0000 (07:42 -0800)]
FileStore::mount: fix error handling

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoos: fix zeroing first chunk of FileJournal
Colin Patrick McCabe [Fri, 4 Feb 2011 15:42:14 +0000 (07:42 -0800)]
os: fix zeroing first chunk of FileJournal

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoos: FileStore::mkjournal: fix error handling
Colin Patrick McCabe [Fri, 4 Feb 2011 14:22:08 +0000 (06:22 -0800)]
os: FileStore::mkjournal: fix error handling

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoos: FileJournal::create: fix error handling
Colin Patrick McCabe [Fri, 4 Feb 2011 14:16:07 +0000 (06:16 -0800)]
os: FileJournal::create: fix error handling

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocmon: check return code of chdir
Colin Patrick McCabe [Fri, 4 Feb 2011 14:08:41 +0000 (06:08 -0800)]
cmon: check return code of chdir

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotools/common: EINTR/unchecked return fix
Colin Patrick McCabe [Fri, 4 Feb 2011 12:42:01 +0000 (04:42 -0800)]
tools/common: EINTR/unchecked return fix

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorados: fix pedantic gcc warning on writing stdout
Colin Patrick McCabe [Fri, 4 Feb 2011 12:37:53 +0000 (04:37 -0800)]
rados: fix pedantic gcc warning on writing stdout

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agofilejournal: fix unchecked returns, modularize
Colin Patrick McCabe [Fri, 4 Feb 2011 12:24:27 +0000 (04:24 -0800)]
filejournal: fix unchecked returns, modularize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocosd: check chdir return code
Colin Patrick McCabe [Thu, 3 Feb 2011 18:15:34 +0000 (10:15 -0800)]
cosd: check chdir return code

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoosd: Ager: remove Ebofs leftovers
Colin Patrick McCabe [Thu, 3 Feb 2011 17:42:39 +0000 (09:42 -0800)]
osd: Ager: remove Ebofs leftovers

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd do_autogen.sh
Colin Patrick McCabe [Thu, 3 Feb 2011 14:50:32 +0000 (06:50 -0800)]
Add do_autogen.sh

It's handy when making builds with various different warning levels.
Also saves you from having to remember --prefix, etc. all the time.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomkcephfs: clean up temp files, honor $TEMPDIR
Colin Patrick McCabe [Thu, 3 Feb 2011 15:53:51 +0000 (07:53 -0800)]
mkcephfs: clean up temp files, honor $TEMPDIR

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agofiler: fix probe
Sage Weil [Thu, 3 Feb 2011 23:53:53 +0000 (15:53 -0800)]
filer: fix probe

ENOENT is allowed and expected at the end of a journal.  It is treated the
same as a zero size object.

Fixes 800507e891170b99cae10a9bf7c5166fd3512927.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoclient/fuse_ll.c: const cleanup
Colin Patrick McCabe [Thu, 3 Feb 2011 15:51:57 +0000 (07:51 -0800)]
client/fuse_ll.c: const cleanup

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoRevert "client/fuse_ll: fully initialize callback struct"
Colin Patrick McCabe [Thu, 3 Feb 2011 15:50:54 +0000 (07:50 -0800)]
Revert "client/fuse_ll: fully initialize callback struct"

Older build environments may not have all the fuse function ptrs that
are present in newer ones. It's best to just let them all silently be
set to 0.

This reverts commit 516ac99bb8c16614757f3b61f4bf266e4531861e.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoRevert "client/fuse.cc: explicity zero fuse function ptrs"
Colin Patrick McCabe [Thu, 3 Feb 2011 15:47:59 +0000 (07:47 -0800)]
Revert "client/fuse.cc: explicity zero fuse function ptrs"

Older build environments may not have all the fuse function ptrs that
are present in newer ones. It's best to just let them all silently be
set to 0.

This reverts commit 38b50013e27e79dd43c5f514c8c24bd8b1e69e5f.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMerge branch 'master' of ssh://ceph.newdream.net/git/ceph
Colin Patrick McCabe [Thu, 3 Feb 2011 15:42:44 +0000 (07:42 -0800)]
Merge branch 'master' of ssh://ceph.newdream.net/git/ceph

14 years agofilestore: fix wipe_subvol the rest of the way
Sage Weil [Thu, 3 Feb 2011 23:24:06 +0000 (15:24 -0800)]
filestore: fix wipe_subvol the rest of the way

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agofilestore: fix (part of) wipe_subvol
Sage Weil [Thu, 3 Feb 2011 23:09:36 +0000 (15:09 -0800)]
filestore: fix (part of) wipe_subvol

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomsgr: add nonce parsing to entity_addr_t::parse()
Sage Weil [Thu, 3 Feb 2011 22:41:48 +0000 (14:41 -0800)]
msgr: add nonce parsing to entity_addr_t::parse()

Reported-by: John Leach <john@brightbox.co.uk>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoos: FileStore::wipe_subvol: fix removing old dir
Colin Patrick McCabe [Thu, 3 Feb 2011 12:30:32 +0000 (04:30 -0800)]
os: FileStore::wipe_subvol: fix removing old dir

Older versions of btrfs which don't have BTRFS_IOC_SNAP_DESTROY need to
manually remove snapshots.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocosd.cc: better error message if osd->init fails
Colin Patrick McCabe [Thu, 3 Feb 2011 14:07:26 +0000 (06:07 -0800)]
cosd.cc: better error message if osd->init fails

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoauth/ExportControl: fix allow_def leak
Samuel Just [Thu, 3 Feb 2011 20:20:22 +0000 (12:20 -0800)]
auth/ExportControl: fix allow_def leak

allow_def would be leaked if the first branch is not taken.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoMerge branch 'stable'
Sage Weil [Thu, 3 Feb 2011 19:58:59 +0000 (11:58 -0800)]
Merge branch 'stable'

Conflicts:
src/common/signal.cc
src/os/FileStore.cc

14 years agosignal: fix redefine warnings
Sage Weil [Thu, 3 Feb 2011 18:10:51 +0000 (10:10 -0800)]
signal: fix redefine warnings

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoReplicatedPG: snap_trimmer fix leaked lock
Samuel Just [Thu, 3 Feb 2011 19:58:56 +0000 (11:58 -0800)]
ReplicatedPG: snap_trimmer fix leaked lock

Previous patch 7a02070b741d3482ff6b28827c1eb274a2134486 leaks the pg
lock.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agomds: make SETDIRLAYOUT start with ancestor policy
Sage Weil [Thu, 3 Feb 2011 19:54:01 +0000 (11:54 -0800)]
mds: make SETDIRLAYOUT start with ancestor policy

When we set a new policy on a directory, make the starting point the
current policy, as specified by an ancestor.  Remove any reference to
g_default_file_layout.

This aligns the code with the inode creation paths (the other time we
look at the layout policy).

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoReplicatedPG:snap_trimmer should return if !clean or !active or !primary
Samuel Just [Thu, 3 Feb 2011 18:31:47 +0000 (10:31 -0800)]
ReplicatedPG:snap_trimmer should return if !clean or !active or !primary

The PG may become !clean or !active while in the osd snap_trim_wq.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>