]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
14 years agomon: fix dump_json quoting
Sage Weil [Tue, 19 Jul 2011 15:36:03 +0000 (08:36 -0700)]
mon: fix dump_json quoting

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: fix O_APPEND file mode calculation
Sage Weil [Tue, 19 Jul 2011 15:33:29 +0000 (08:33 -0700)]
mds: fix O_APPEND file mode calculation

Currently

  fd = open("aaa",O_RDWR|O_CREAT|O_APPEND,0666);

gives us fmode of 1 instead of 3.  We should only infer O_WRONLY if no
other mode is explicitly specified.

Reported-by: Fyodor Ustinov <ufm@ufm.su>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomon: pg dump_json
Sage Weil [Mon, 18 Jul 2011 23:29:31 +0000 (16:29 -0700)]
mon: pg dump_json

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorgw: radosgw_admin log show dumps parsable json
Yehuda Sadeh [Mon, 18 Jul 2011 23:10:53 +0000 (16:10 -0700)]
rgw: radosgw_admin log show dumps parsable json

14 years agohonor CINIT_FLAG_NO_DEFAULT_CONFIG_FILE
Colin Patrick McCabe [Tue, 5 Jul 2011 21:47:55 +0000 (14:47 -0700)]
honor CINIT_FLAG_NO_DEFAULT_CONFIG_FILE

Don't use CEPH_CONF_FILE_DEFAULT when CINIT_FLAG_NO_DEFAULT_CONFIG_FILE
is set.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocrushtool: don't parse any generic args
Sage Weil [Thu, 14 Jul 2011 18:25:21 +0000 (11:25 -0700)]
crushtool: don't parse any generic args

Notably, crushtool uses -c, which elsewhere means parse this config file.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agocrushtool: Add call to global_init() to avoid dout segfault
Jim Schutt [Tue, 12 Jul 2011 22:20:59 +0000 (16:20 -0600)]
crushtool: Add call to global_init() to avoid dout segfault

Signed-off-by: Jim Schutt <jaschut@sandia.gov>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoobsync: Depend on python-pyxattr instead of python-xattr
Wido den Hollander [Wed, 13 Jul 2011 13:20:37 +0000 (15:20 +0200)]
obsync: Depend on python-pyxattr instead of python-xattr

Signed-off-by: Wido den Hollander <wido@widodh.nl>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorados: fix warning
Sage Weil [Tue, 12 Jul 2011 03:46:56 +0000 (20:46 -0700)]
rados: fix warning

warning: rados.cc:319: large integer implicitly truncated to unsigned type

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agov0.31 v0.31
Sage Weil [Fri, 8 Jul 2011 21:17:40 +0000 (14:17 -0700)]
v0.31

14 years agofilejournal: parse kernel version 3.0+
Sage Weil [Fri, 8 Jul 2011 21:15:56 +0000 (14:15 -0700)]
filejournal: parse kernel version 3.0+

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw: fix copy operation (clean up acls)
Yehuda Sadeh [Thu, 7 Jul 2011 00:02:16 +0000 (17:02 -0700)]
rgw: fix copy operation (clean up acls)

14 years agorgw: when listing objects, set locator key only when needed
Yehuda Sadeh [Wed, 6 Jul 2011 20:32:31 +0000 (13:32 -0700)]
rgw: when listing objects, set locator key only when needed

14 years agoosd: use shared helper for WRITE, CLONERANGE stats updates
Sage Weil [Thu, 7 Jul 2011 22:07:16 +0000 (15:07 -0700)]
osd: use shared helper for WRITE, CLONERANGE stats updates

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: clean up a few things in do_osd_ops
Sage Weil [Thu, 7 Jul 2011 22:01:12 +0000 (15:01 -0700)]
osd: clean up a few things in do_osd_ops

don't set head_exists
remove dup touch on setxattr
set maybe_created for clonerange

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorados: fix usage()
Sage Weil [Thu, 7 Jul 2011 23:05:16 +0000 (16:05 -0700)]
rados: fix usage()

Exit after dumping usage to stderr on error.

Print to stdout for -h.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: check that dnl exists before dereferencing it.
Greg Farnum [Thu, 7 Jul 2011 22:28:21 +0000 (15:28 -0700)]
mds: check that dnl exists before dereferencing it.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomds: set old and new dentry lease bits
Sage Weil [Thu, 7 Jul 2011 20:35:32 +0000 (13:35 -0700)]
mds: set old and new dentry lease bits

Recent kernels got the new CEPH_LOCK_DN definition but we were still
setting the old bit.  Set both so we work with both classes of clients. In
the meantime, update the kernel to ignore this field so that eventually we
can drop/reuse it.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: conclude ENOENT during travrse if we have a readable null dentry
Sage Weil [Thu, 7 Jul 2011 18:47:52 +0000 (11:47 -0700)]
mds: conclude ENOENT during travrse if we have a readable null dentry

Only if the lock is readable.  For example, replicas with dn lock state
of LOCK aren't readable.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoRevert "mds: fail out of path_traverse if we have a null dentry."
Sage Weil [Thu, 7 Jul 2011 18:42:43 +0000 (11:42 -0700)]
Revert "mds: fail out of path_traverse if we have a null dentry."

This reverts commit 39d50c1362db1d86782a60a5714e088d9ef7deaa.

14 years agomds: always clear_flushed() after finish_flush()
Sage Weil [Tue, 5 Jul 2011 21:22:24 +0000 (14:22 -0700)]
mds: always clear_flushed() after finish_flush()

The scatter_writebehind_finish() is always followed up by an eval_gather(),
which does the clear_flushed().  For everyone else (replicas!), we need to
clear it immediately to avoid confusing things later.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoclient: fix num_flushing_caps accounting
Sage Weil [Tue, 5 Jul 2011 20:58:53 +0000 (13:58 -0700)]
client: fix num_flushing_caps accounting

This only affects debug output, fwiw.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoclient: don't call flush_snaps when nothing to flush
Sage Weil [Tue, 5 Jul 2011 20:40:24 +0000 (13:40 -0700)]
client: don't call flush_snaps when nothing to flush

Otherwise we fail an assert.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomds: kill stray break
Sage Weil [Tue, 5 Jul 2011 20:37:24 +0000 (13:37 -0700)]
mds: kill stray break

This broke with the gatherbuilder addition.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoMerge branch 'stable'
Sage Weil [Tue, 5 Jul 2011 17:07:11 +0000 (10:07 -0700)]
Merge branch 'stable'

14 years agologrotate.conf: Mark stat/*.log as "missingok"; it's not always there.
Tommi Virtanen [Tue, 5 Jul 2011 17:00:51 +0000 (10:00 -0700)]
logrotate.conf: Mark stat/*.log as "missingok"; it's not always there.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoMerge branch 'stable'
Sage Weil [Tue, 5 Jul 2011 16:18:27 +0000 (09:18 -0700)]
Merge branch 'stable'

14 years agoMove stat/*.log to the end of logrotate.conf
Alexandre Oliva [Mon, 4 Jul 2011 16:14:11 +0000 (13:14 -0300)]
Move stat/*.log to the end of logrotate.conf

Logrotate ignores entries after a rule that doesn't match any files.

Signed-off-by: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: fix file_excl assert
Sage Weil [Tue, 5 Jul 2011 15:58:26 +0000 (08:58 -0700)]
mds: fix file_excl assert

If we are in XSYN state and want to move to anything else, we must go via
EXCL, but we may not be loner anymore.  Weaken the file_excl() assert so we
don't crash.

Reported-by: Fyodor Ustinov <ufm@ufm.su>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoobsync: improve formatting a little bit
Colin Patrick McCabe [Fri, 1 Jul 2011 22:44:33 +0000 (15:44 -0700)]
obsync: improve formatting a little bit

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoobsync: add man page, documentation line
Colin Patrick McCabe [Fri, 1 Jul 2011 22:28:37 +0000 (15:28 -0700)]
obsync: add man page, documentation line

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agobuffer: remove do_cow, clone_in_place
Colin Patrick McCabe [Fri, 1 Jul 2011 17:56:06 +0000 (10:56 -0700)]
buffer: remove do_cow,  clone_in_place

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMerge remote branch 'origin/wip-client'
Sage Weil [Fri, 1 Jul 2011 15:52:07 +0000 (08:52 -0700)]
Merge remote branch 'origin/wip-client'

14 years agolibrados: close very small race condition
Colin Patrick McCabe [Fri, 1 Jul 2011 07:18:42 +0000 (00:18 -0700)]
librados: close very small race condition

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomon: add 'osd create [id]' command
Sage Weil [Fri, 1 Jul 2011 06:17:39 +0000 (23:17 -0700)]
mon: add 'osd create [id]' command

If the id is specified, mark a non-existant osd rank as existant.  The id
must fall within the current [0,max) range.  This is the counterpart of
'osd rm <id>'.

If the id is not specified, allocate an unused osd id and set the EXISTS
flag.  Increase max_osd as needed.

Closes: #1244
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: clean up cap flush methods
Sage Weil [Thu, 30 Jun 2011 20:01:29 +0000 (13:01 -0700)]
client: clean up cap flush methods

We grew several copies of this code, and it turns out none of them were correct.

- assign flush tid in send_cap() helper
- pin inode on (dirty | flushing), not either/both
- add a proper mark_caps_flushing helper

and a bunch of other stuff.  This brings this bit of code in alignment with
the kernel implementation.

And, flush_caps() on cap import.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoMakefile: libmds.a, not libmds.la
Sage Weil [Fri, 1 Jul 2011 05:15:11 +0000 (22:15 -0700)]
Makefile: libmds.a, not libmds.la

We never link this into a .so, so avoid building it again with -fPIC.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomds: fix off-by-one in cow_inode vs snap flushes
Sage Weil [Fri, 1 Jul 2011 05:04:42 +0000 (22:04 -0700)]
mds: fix off-by-one in cow_inode vs snap flushes

We need to wait for the client to flush snapped caps if the client has
not already flushed for the given snap.  If the client has already flushed
caps through the last snapid for the old inode, we do not need to set up
the snapped inode's locks to wait for that.

This fixes an occasional hang on the snaps/snaptest-multiple-capsnaps.sh
workunit.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorgw: fix of users are created suspended
Yehuda Sadeh [Thu, 30 Jun 2011 21:45:32 +0000 (14:45 -0700)]
rgw: fix of users are created suspended

14 years agoFix handling of CEPH_CONF
Colin Patrick McCabe [Thu, 30 Jun 2011 20:42:48 +0000 (13:42 -0700)]
Fix handling of CEPH_CONF

Formerly, CEPH_CONF was not respected by libraries. But now it is.
It overrides the default when reading the config file.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorados: fix warning
Yehuda Sadeh [Thu, 30 Jun 2011 21:00:23 +0000 (14:00 -0700)]
rados: fix warning

14 years agoclient: only send one flushsnap once per mds session
Sage Weil [Thu, 30 Jun 2011 20:44:24 +0000 (13:44 -0700)]
client: only send one flushsnap once per mds session

This mirrors a kclient change a while back (e835124).

We only want to send one flushsnap cap message per MDS session:
 - it's a waste to send multiples
 - the mds will only reply to the first one

If the mds restarts we need to resend.

This fixes a hang where we send multiples, the first (and only) reply is
ignored (due to tid mismatch), and we are left with dangling references to
the inode and hang on umount.  (Reliably reproduced by running the full
snaps/ workunit directory.)

Fixes: #1239
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoMerge branch 'rados-load-gen'
Yehuda Sadeh [Thu, 30 Jun 2011 20:33:28 +0000 (13:33 -0700)]
Merge branch 'rados-load-gen'

14 years agorados tool: load generator
Yehuda Sadeh [Thu, 30 Jun 2011 20:32:59 +0000 (13:32 -0700)]
rados tool: load generator

14 years agoAdd "How to use C_GatherBuilder" comment
Colin Patrick McCabe [Tue, 28 Jun 2011 19:55:45 +0000 (12:55 -0700)]
Add "How to use C_GatherBuilder" comment

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoC_GatherBuilder: add C_GatherBuilder::activate()
Colin Patrick McCabe [Tue, 28 Jun 2011 19:29:17 +0000 (12:29 -0700)]
C_GatherBuilder: add C_GatherBuilder::activate()

Add an activate() function that must be called before we call the
onfinish callback. This is especially important in multi-threaded
contexts, since otherwise if completions come in in the wrong order, we
may delete the C_Gather object right before calling new_sub on it!

Also delete rm_subs because it is redundant with sub_finish.

Finally, num_subs_created, num_subs_remaining are now methods on
C_GatherBuilder rather than C_Gather.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoC_Gather: remove unused "any" option
Colin Patrick McCabe [Tue, 28 Jun 2011 18:43:55 +0000 (11:43 -0700)]
C_Gather: remove unused "any" option

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoC_Gather: hide constructor, convert uses
Colin Patrick McCabe [Tue, 28 Jun 2011 18:40:02 +0000 (11:40 -0700)]
C_Gather: hide constructor, convert uses

Note: this fixes a small memory leak in MDCache::open_snap_parents.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoC_GatherBuilder: more uses, add set_finisher
Colin Patrick McCabe [Tue, 28 Jun 2011 16:53:08 +0000 (09:53 -0700)]
C_GatherBuilder: more uses, add set_finisher

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoFiler.h: use C_GatherBuilder
Colin Patrick McCabe [Tue, 28 Jun 2011 00:40:58 +0000 (17:40 -0700)]
Filer.h: use C_GatherBuilder

Filer.h now uses C_GatherBuilder to avoid memory leaks.

Also, C_GatherBuilder's constructor now takes a Context.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd C_GatherBuilder
Colin Patrick McCabe [Mon, 27 Jun 2011 23:35:36 +0000 (16:35 -0700)]
Add C_GatherBuilder

C_Gather objects are deleted by the last sub-context to execute.
If you create a C_Gather object manually, you must worry about the case
where there are no sub-contexts.

C_GatherBuilder is a little object that sits on the stack that allows
you to build C_Gather objects without worrying about this.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomds/journal.cc: remove deadcode
Colin Patrick McCabe [Mon, 27 Jun 2011 22:39:27 +0000 (15:39 -0700)]
mds/journal.cc: remove deadcode

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd compiler_extensions.h for warn_unused_result
Colin Patrick McCabe [Mon, 27 Jun 2011 22:07:57 +0000 (15:07 -0700)]
Add compiler_extensions.h for warn_unused_result

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoobsync: Depend on python-lxml on Debian derived platforms
Wido den Hollander [Thu, 30 Jun 2011 11:07:12 +0000 (13:07 +0200)]
obsync: Depend on python-lxml on Debian derived platforms

Signed-off-by: Wido den Hollander <wido@widodh.nl>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: don't spew spurious scrub unreserve messages
Samuel Just [Wed, 29 Jun 2011 22:37:23 +0000 (15:37 -0700)]
osd: don't spew spurious scrub unreserve messages

The past primary was sending out scrub unreserve messages to all the
non-primary OSDs in the acting set on a PG state change. They're
spurious since the other OSDs will cancel the scrubs themselves
on state change, and they weren't right anyway because the loop
was looking at all the non-primary OSDs and sending out a message,
which could have excluded the new primary (if it was a replica before)
included other OSDs new to the PG, and included the current OSD.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoclient: more inode ref counting debugging
Sage Weil [Thu, 30 Jun 2011 03:32:59 +0000 (20:32 -0700)]
client: more inode ref counting debugging

blech

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoclient: do not leak MetaRequests on get_or_create() failure
Sage Weil [Wed, 29 Jun 2011 21:57:16 +0000 (14:57 -0700)]
client: do not leak MetaRequests on get_or_create() failure

Avoid leaking in the error paths.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: do not assume MetaRequest's dentries are linked
Sage Weil [Wed, 29 Jun 2011 21:56:42 +0000 (14:56 -0700)]
client: do not assume MetaRequest's dentries are linked

The dentries we reference may have been unlinked prior to us sending this
request.  That's fine as long as we don't dereference a null dentry.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: pin dentries referenced by MetaRequest
Sage Weil [Wed, 29 Jun 2011 21:55:18 +0000 (14:55 -0700)]
client: pin dentries referenced by MetaRequest

Pin dentries referenced by MetaRequest.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: fix dentry ref counting
Sage Weil [Wed, 29 Jun 2011 21:54:28 +0000 (14:54 -0700)]
client: fix dentry ref counting

Before nobody ever pinned dentries except Dirs.  The only valid ref
counts were 0 and 1, and unlink, rename, etc would delete the unlinked
dentry.

Now, ref can by anything > 0.  > 1 means it is also pinned in the LRU.
Unlink/rename ->put() and the last put() deletes (via private destructor).

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorados: some more load-gen work
Yehuda Sadeh [Wed, 29 Jun 2011 22:52:40 +0000 (15:52 -0700)]
rados: some more load-gen work

14 years agomds: fix mds scatter_writebehind starvation
Sage Weil [Wed, 29 Jun 2011 22:23:40 +0000 (15:23 -0700)]
mds: fix mds scatter_writebehind starvation

scatter_writebehind is called by eval_gather on dirty locks, and
eval_gather is called by wrlock_finish on unstable locks when you
drop the last wrlock...and scatter_writebehind force-takes a wrlock.

This meant that a workload like:
seq 3000|xargs -i mkdir a/b/{} &
mkdir a/c
could cause the mkdir a/c to wait until after the other process
finished because rstats can propagate upwards asynchronously, but
mark the directory dirty synchronously, while the mkdir a/c requires
an actual wrlock in order to modify the rstats.

Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomsgr: simply set_ip by using is_blank_ip
Greg Farnum [Wed, 29 Jun 2011 18:00:08 +0000 (11:00 -0700)]
msgr: simply set_ip by using is_blank_ip

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomessenger: rename is_blank_addr to is_blank_ip.
Greg Farnum [Wed, 29 Jun 2011 17:54:15 +0000 (10:54 -0700)]
messenger: rename is_blank_addr to is_blank_ip.

This is a better description of the function.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoclient: make tdout() work in header
Sage Weil [Wed, 29 Jun 2011 22:03:44 +0000 (15:03 -0700)]
client: make tdout() work in header

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorgw: merge chunks for clone range, truncate to 0 before
Yehuda Sadeh [Wed, 29 Jun 2011 20:43:09 +0000 (13:43 -0700)]
rgw: merge chunks for clone range, truncate to 0 before

The truncation to 0 has two purposes: so that if dest was bigger than
source, and we also hit a btrfs bug which we can work around by
doing that.

14 years agoqa: add clone_range tool
Sage Weil [Wed, 29 Jun 2011 19:58:41 +0000 (12:58 -0700)]
qa: add clone_range tool

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoqa: file_layout.sh is kclient only
Sage Weil [Wed, 29 Jun 2011 16:54:55 +0000 (09:54 -0700)]
qa: file_layout.sh is kclient only

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomessenger: add a set_ip function to initialize the IP
Greg Farnum [Wed, 29 Jun 2011 17:46:06 +0000 (10:46 -0700)]
messenger: add a set_ip function to initialize the IP

Previously we only filled in IPs if they were set by the config file
(at startup) or after we connected to the monitor. Unfortunately this
could lead to conditions where the OSD connected to itself without
knowing that's what it was doing, because the cluster_addr IP wasn't
filled in until much too late. We've provided a mechanism for filling
in the IP and do so in OSD::boot_start.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoqa: fix file_layout.sh mode
Sage Weil [Wed, 29 Jun 2011 16:48:15 +0000 (09:48 -0700)]
qa: fix file_layout.sh mode

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoclient: improve debug output a bit
Sage Weil [Wed, 29 Jun 2011 16:15:05 +0000 (09:15 -0700)]
client: improve debug output a bit

...to help track down inode ref count leaks.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomds: fix snaprealm split for dir inode
Sage Weil [Wed, 29 Jun 2011 04:47:01 +0000 (21:47 -0700)]
mds: fix snaprealm split for dir inode

The snaprealm root directory inode belongs to the snaprealm, at least
currently.  This make split_at() consistent with the non-directory case
at the top of the method, and prevents a crash later down the line when we
try to tear down the parent snaprealm and we aren't part of it.

Fixes: #1238
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoqa: move file_layout into workunits/misc
Sage Weil [Wed, 29 Jun 2011 16:51:36 +0000 (09:51 -0700)]
qa: move file_layout into workunits/misc

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoradosgw_admin: fix cli test
Yehuda Sadeh [Wed, 29 Jun 2011 16:37:56 +0000 (09:37 -0700)]
radosgw_admin: fix cli test

14 years agoMerge branch 'master' of ssh://ceph.newdream.net/git/ceph
Yehuda Sadeh [Tue, 28 Jun 2011 23:33:49 +0000 (16:33 -0700)]
Merge branch 'master' of ssh://ceph.newdream.net/git/ceph

14 years agoMerge branch 'master' into rgw
Yehuda Sadeh [Tue, 28 Jun 2011 23:32:43 +0000 (16:32 -0700)]
Merge branch 'master' into rgw

14 years agoradostool: load gen, wip
Yehuda Sadeh [Tue, 28 Jun 2011 23:29:09 +0000 (16:29 -0700)]
radostool: load gen, wip

14 years agoqa: make kernel_untar_build.sh output more helpful
Sage Weil [Tue, 28 Jun 2011 18:09:45 +0000 (11:09 -0700)]
qa: make kernel_untar_build.sh output more helpful

- rm -rv
- list remaining files on failure

to help debug #1230

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agotestceph: test file opens with extra slashes
Greg Farnum [Tue, 28 Jun 2011 21:19:29 +0000 (14:19 -0700)]
testceph: test file opens with extra slashes

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agotestceph: expand test cases
Greg Farnum [Tue, 28 Jun 2011 21:18:58 +0000 (14:18 -0700)]
testceph: expand test cases

Signed-off-by: Richard Sharpe <realrichardsharpe@gmail.com>
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agofilepath: don't parse multiple slashes as multiple dname bits.
Greg Farnum [Tue, 28 Jun 2011 21:13:55 +0000 (14:13 -0700)]
filepath: don't parse multiple slashes as multiple dname bits.

This causes all kinds of trouble if it occurs because most of the
code isn't prepared for it. So prevent that from happening except
on messages that were explicitly created that way.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoResetter: Check return values from Journaler.
Greg Farnum [Tue, 28 Jun 2011 19:37:29 +0000 (12:37 -0700)]
Resetter: Check return values from Journaler.

And clean up the shutdown a bit.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoJournaler: pay attention to return codes from read head.
Greg Farnum [Tue, 28 Jun 2011 19:36:00 +0000 (12:36 -0700)]
Journaler: pay attention to return codes from read head.

Previously we ignored them, except for printing them out. This could
lead to bad things like creating new journals for non-existent MDSes
if you entered an invalid rank during --reset-journal.

Also assert that the stripe unit is valid
before using it as  a divisor.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoReplicatedPG: Fix some obc leaks
Samuel Just [Tue, 28 Jun 2011 16:59:35 +0000 (09:59 -0700)]
ReplicatedPG: Fix some obc leaks

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoPG: simplify merge_log, remove old objects
Samuel Just [Fri, 24 Jun 2011 21:47:19 +0000 (14:47 -0700)]
PG: simplify merge_log, remove old objects

Previously, some old objects could escape removal during a log merge.
This patch also simplifies merge_log somewhat.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoPG: fix add_next_event and merge add_event
Samuel Just [Fri, 24 Jun 2011 00:06:02 +0000 (17:06 -0700)]
PG: fix add_next_event and merge add_event

Previously, we would assume that we had an object at the prior_version
in the log event if we encounter it but don't see the object in missing.
Now, if prior_version < log_tail, we assume that we do not have the
object.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agofilestore: allow FIEMAP to be disabled via conf
Sage Weil [Tue, 28 Jun 2011 17:54:53 +0000 (10:54 -0700)]
filestore: allow FIEMAP to be disabled via conf

The ext4 fiemap ioctl is buggy in some older kernels.  Allow the admin to
disable it.

Fixes: #1222
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoqa: add file_layout.sh workunit
Greg Farnum [Tue, 28 Jun 2011 17:35:05 +0000 (10:35 -0700)]
qa: add file_layout.sh workunit

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomds: make cast explicit to suppress compiler warning.
Greg Farnum [Tue, 28 Jun 2011 16:37:23 +0000 (09:37 -0700)]
mds: make cast explicit to suppress compiler warning.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoMerge branch 'next'
Sage Weil [Tue, 28 Jun 2011 16:41:09 +0000 (09:41 -0700)]
Merge branch 'next'

14 years agotestradospp: fix compilation
Yehuda Sadeh [Tue, 28 Jun 2011 16:18:36 +0000 (09:18 -0700)]
testradospp: fix compilation

14 years agomon: Guard injectargs parsing to prevent crashes on bad input
Greg Farnum [Tue, 28 Jun 2011 15:28:28 +0000 (08:28 -0700)]
mon: Guard injectargs parsing to prevent crashes on bad input

While we're at it, reply to injectargs commands instead of
doing it silently.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomds: Explicitly initialize layout fields, and to the correct values.
Greg Farnum [Tue, 28 Jun 2011 00:03:42 +0000 (17:03 -0700)]
mds: Explicitly initialize layout fields, and to the correct values.

We were previously encoding an fl_pg_preferred of 0, which did
horrible things to the kernel client since 0 is a valid osd to ask for!
To make such things easier to track down in the future, explicitly
fill in defaults when memsetting the struct here.

(There remain other places that memset the struct to zero without
a lot of checks. But we definitely don't want to force them all
to fill in the individual fields, as that's fragile, and since they
don't seem to be breaking anything yet I'm inclined to leave them as
they are.)

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agov0.30 v0.30
Sage Weil [Tue, 28 Jun 2011 03:06:29 +0000 (20:06 -0700)]
v0.30

14 years agodebian: drop python-support version req
Sage Weil [Tue, 28 Jun 2011 05:23:40 +0000 (22:23 -0700)]
debian: drop python-support version req

14 years agorados: encode bufferlist in watch-notify
Yehuda Sadeh [Tue, 28 Jun 2011 00:20:34 +0000 (17:20 -0700)]
rados: encode bufferlist in watch-notify

14 years agorados: encode bufferlist in watch-notify
Yehuda Sadeh [Tue, 28 Jun 2011 00:20:34 +0000 (17:20 -0700)]
rados: encode bufferlist in watch-notify

14 years agorgw: fix some issues with call to clone_range
Yehuda Sadeh [Mon, 27 Jun 2011 19:20:22 +0000 (12:20 -0700)]
rgw: fix some issues with call to clone_range

14 years agorgw: fix clone_range
Yehuda Sadeh [Fri, 24 Jun 2011 23:50:48 +0000 (16:50 -0700)]
rgw: fix clone_range

14 years agorgw: radosgw_admin --help typo
Yehuda Sadeh [Fri, 24 Jun 2011 22:20:46 +0000 (15:20 -0700)]
rgw: radosgw_admin --help typo