]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Sage Weil [Fri, 2 May 2014 23:41:26 +0000 (16:41 -0700)]
osd/ReplicatedPG: fix trim of in-flight hit_sets
We normally need to stat the hit_set to know how many bytes to adjust the
stats by. If the hit_set was just written, we will get ENOENT.
Get the obc instead, which will either get the in-memory copy (because the
repop is still in flight) or load it off of disk.
Fixes: #8283
Backport: firefly
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Fri, 2 May 2014 22:10:43 +0000 (15:10 -0700)]
mon/PGMonitor: set tid on no-op PGStatsAck
The OSD needs to know the tid. Both generally, and specifically because
the flush_pg_stats may be blocking on it.
Fixes: #8280
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
Sage Weil [Fri, 2 May 2014 22:00:11 +0000 (15:00 -0700)]
mon/OSDMonitor: share latest map with osd on dup boot message
If we get a dup boot message, share the newer maps with the osd so that
they know they are living in the past.
Fixes: #8279
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
Sage Weil [Fri, 2 May 2014 21:48:35 +0000 (14:48 -0700)]
mon/MonClient: remove stray _finish_hunting() calls
Callig _finish_hunting() clears out the bool hunting flag, which means we
don't retry by connection to another mon periodically. Instead, we send
keepalives every 10s. But, since we aren't yet in state HAVE_SESSION, we
don't check that the keepalives are getting responses. This means that an
ill-timed connection reset (say, after we get a MonMap, but before we
finish authenticating) can drop the monc into a black hole that does not
retry.
Instead, we should *only* call _finish_hunting() when we complete the
authentication handshake.
Fixes: #8278
Backport: firefly, dumpling
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
Sage Weil [Fri, 2 May 2014 21:22:17 +0000 (14:22 -0700)]
Merge pull request #1754 from nereocystis/hardware-to-glossary
doc: Include links from hardware-recommendations to glossary
Kevin Dalley [Fri, 2 May 2014 00:04:43 +0000 (17:04 -0700)]
doc: Include links from hardware-recommendations to glossary
Included :term: in parts of hardware-recommendations so that glossary
links appear.
Signed-off-by: Kevin Dalley <kevin@kelphead.org>
Danny Al-Gaaf [Thu, 1 May 2014 23:06:26 +0000 (01:06 +0200)]
Merge pull request #1749 from hufman/fix-typo-releasenotes-pyramind
Fixes a very minor typo in the release notes
Reviewed-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Sage Weil [Thu, 1 May 2014 22:07:50 +0000 (15:07 -0700)]
mds: note MDiscoverReply encoding change in corpus
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Thu, 1 May 2014 20:46:40 +0000 (13:46 -0700)]
mds: bump protocol
In commit
f689e5f049736bb0a0fa437e05936f6c1b9c1bb6 we change the encoding
and semantics for MDiscoverReply.
Signed-off-by: Sage Weil <sage@inktank.com>
Samuel Just [Thu, 1 May 2014 17:46:31 +0000 (10:46 -0700)]
Merge pull request #1738 from ceph/wip-8147
osd: automatically scrub PGs with invalid stats
Reviewed-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
Sage Weil [Thu, 1 May 2014 16:59:37 +0000 (09:59 -0700)]
doc/release-notes: changelog link
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Thu, 1 May 2014 15:36:42 +0000 (08:36 -0700)]
doc/release-notes: final v0.67.8 notes and changelog
Signed-off-by: Sage Weil <sage@inktank.com>
John Wilkins [Thu, 1 May 2014 06:07:53 +0000 (23:07 -0700)]
Merge pull request #1750 from nereocystis/doc-link-to-involved
doc: documenting links to get-involved
Walter Huf [Thu, 1 May 2014 05:25:00 +0000 (00:25 -0500)]
Fixes a very minor typo in the release notes
pyramind -> pyramid
Kevin Dalley [Thu, 1 May 2014 04:31:06 +0000 (21:31 -0700)]
doc: documenting links to get-involved
Create a link from documenting-ceph so that it is easy to find the
github repository used for ceph.
Signed-off-by: Kevin Dalley <kevin@kelphead.org>
Samuel Just [Fri, 18 Apr 2014 00:26:17 +0000 (17:26 -0700)]
ReplicatedPG: block scrub on blocked object contexts
Fixes: #8011
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Sage Weil [Wed, 30 Apr 2014 22:09:45 +0000 (15:09 -0700)]
Merge pull request #1745 from ceph/wip-7941
rados.h,ReplicatedPG: add CEPH_OSD_FLAG_ENFORCE_SNAPC and use on flush
Reviewed-by: Sage Weil <sage@inktank.com>
Sage Weil [Wed, 30 Apr 2014 22:07:51 +0000 (15:07 -0700)]
Merge pull request #1744 from ceph/wip-8161
ECBackend::continue_recovery_op: handle a source shard going down
Reviewed-by: Sage Weil <sage@inktank.com>
Sage Weil [Wed, 30 Apr 2014 22:03:45 +0000 (15:03 -0700)]
Merge pull request #1746 from ceph/wip-8086
Wip 8086
Reviewed-by: Sage Weil <sage@inktank.com>
Alfredo Deza [Wed, 30 Apr 2014 17:52:00 +0000 (13:52 -0400)]
Merge pull request #1629 from ceph/wip-die-mkcephfs
remove mkcephfs (merge post-firefly?)
Reviewed-by: Alfredo Deza <alfredo.deza@inktank.com>
Yan, Zheng [Wed, 30 Apr 2014 17:36:49 +0000 (01:36 +0800)]
Merge pull request #1741 from ceph/wip-early-reply
Wip early reply
Yan, Zheng [Wed, 30 Apr 2014 10:30:25 +0000 (18:30 +0800)]
mds: avoid adding replicas of target dentry to rename witnesses
When the rename target dentry is NULL, we can use MDentryLink messages
instead of slave requests to update its replicas.
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Yan, Zheng [Wed, 30 Apr 2014 05:45:31 +0000 (13:45 +0800)]
mds: allow early reply when request's witness list is empty
Early reply should be Ok when there were slave requests, but all
of them were for acquiring locks.
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Sage Weil [Wed, 30 Apr 2014 17:11:42 +0000 (10:11 -0700)]
Merge pull request #1121 from ceph/wip-no-anchor
mds: remove anchor table (merge post-firefly only)
Reviewed-by: Sage Weil <sage@inktank.com>
Sage Weil [Wed, 30 Apr 2014 17:10:24 +0000 (10:10 -0700)]
Merge pull request #1670 from yuyuyu101/wip-test-clone
Add clone test on store_test
Reviewed-by: Sage Weil <sage@inktank.com>
Yan, Zheng [Wed, 30 Apr 2014 05:42:48 +0000 (13:42 +0800)]
mds: include authority of the source inode in rename witnesses
rename updates source inode's ctime
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Sage Weil [Tue, 29 Apr 2014 18:23:58 +0000 (11:23 -0700)]
osd: automatically scrub PGs with invalid stats
If a PG has recnetly split and has invalid stats, scrub it now, even if
it has scrubbed recently. This helps the stats become valid again soon.
Fixes: #8147
Signed-off-by: Sage Weil <sage@inktank.com>
Yan, Zheng [Thu, 23 Jan 2014 05:03:10 +0000 (13:03 +0800)]
mds: remove discover ino
Anchor table was the main user of MDCache::discover_ino(), it has
been removed. MDCache::discover_path() can replace discover_ino()
in remaining places. This patch removes discover ino related code.
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Yan, Zheng [Thu, 26 Dec 2013 09:24:00 +0000 (17:24 +0800)]
mds: remove anchor table
use backtrace instead of anchors to find/open remote inodes
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Haomai Wang [Fri, 11 Apr 2014 09:28:13 +0000 (17:28 +0800)]
Copy range using fiemap not entire length
Under rbd usage, if a volume has tens of thousands of objects and each 4M
object only has several KB(run fio on this volume or other cases), this volume
will be very low performance during a long time after create snapshot on
this volume. The OSD will be busy with large bandwidth read/write although
the object actually has few bytes needed to be copied.
This commit try to use fiemap if backend fs support, it can skip unnecessary
range to write. It also can be beneficial to space effective, because the copied
object will be regard as snapshot object which is access infrequently.
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Shawn Edwards [Tue, 29 Apr 2014 00:05:36 +0000 (17:05 -0700)]
rbd-fuse: fix unlink
The path contains a leading / that needs to be ignored.
Fixes: #8197
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Sage Weil [Mon, 28 Apr 2014 23:52:12 +0000 (16:52 -0700)]
Merge pull request #1701 from ceph/wip-libkrbd
libkrbd convenience library
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Sage Weil [Mon, 28 Apr 2014 23:51:33 +0000 (16:51 -0700)]
Merge pull request #1648 from ceph/wip-client-sleep
Wip client sleep
Reviewed-by: Sage Weil <sage@inktank.com>
Josh Durgin [Mon, 28 Apr 2014 22:51:43 +0000 (15:51 -0700)]
Merge pull request #1709 from dachary/wip-brag
brag : useability changes
Reviewed-by: Babu Shanmugam <anbu@enovance.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Josh Durgin [Mon, 28 Apr 2014 22:36:32 +0000 (15:36 -0700)]
Merge branch 'wip-rbd-invalidate'
Reviewed-by: Sage Weil <sage@inktank.com>
Josh Durgin [Mon, 28 Apr 2014 22:33:34 +0000 (15:33 -0700)]
Merge pull request #1737 from steveftaylor/add_rbd_fuse_image_restriction
Added a new command line parameter (-i or --image=) that allows rbd-fuse...
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Josh Durgin [Mon, 28 Apr 2014 22:28:31 +0000 (15:28 -0700)]
Merge pull request #1699 from chrisglass/python-api-cleanup
Simple mechanical cleanups
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Josh Durgin [Thu, 24 Apr 2014 21:47:24 +0000 (14:47 -0700)]
librbd: add an interface to invalidate cached data
This is useful for qemu to guarantee live migration with caching is
safe, by invalidating the cache on the destination before starting it.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Josh Durgin [Thu, 24 Apr 2014 21:43:35 +0000 (14:43 -0700)]
librbd: check return code and error out if invalidate_cache fails
This will only happen when shrinking or rolling back an image is done
while other I/O is in flight to the same ImageCtx. This is unsafe, so
return an error before performing the resize or rollback.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Stephen F Taylor [Mon, 28 Apr 2014 21:31:07 +0000 (15:31 -0600)]
Changed the -i parameter to -r in order to avoid a conflict with a generic flag interpreted by the common code.
Sage Weil [Mon, 28 Apr 2014 21:13:24 +0000 (14:13 -0700)]
Merge pull request #1652 from ceph/wip-5170-firefly
Wip 5170 firefly
Sage Weil [Mon, 28 Apr 2014 21:11:20 +0000 (14:11 -0700)]
Merge pull request #1734 from ceph/wip-8202
rgw: fix url escaping
Reviewed-by: Sage Weil <sage@inktank.com>
Yehuda Sadeh [Mon, 28 Apr 2014 21:06:11 +0000 (14:06 -0700)]
Merge pull request #1736 from ceph/wip-7500-wusui
Fix s3 tests in the rgw workunit.
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Warren Usui [Mon, 28 Apr 2014 20:30:40 +0000 (13:30 -0700)]
Fix s3 tests in the rgw workunit.
Make it possible to set RGW_PORT with ENV variable.
Fixes: 7500
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Stephen F Taylor [Mon, 28 Apr 2014 20:49:30 +0000 (14:49 -0600)]
Added a new command line parameter (-i or --image=) that allows rbd-fuse to specify a single image to be made available within
the mount directory. The purpose of this is to allow a single RBD to be "mounted" in userspace without opening (and locking)
the other RBDs in the pool.
This is accomplished by performing a case-sensitive string compare in enumerate_images() when an image name is
specified on the command line. If no image name is specified, all images appear in the mount directory. If a non-existent
image name is specified, the mount directory is empty.
Signed-off-by: Stephen F Taylor <steveftaylor@gmail.com>
Samuel Just [Fri, 25 Apr 2014 23:28:38 +0000 (16:28 -0700)]
ReplicatedPG: we can get EAGAIN on missing clone flush
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Fri, 11 Apr 2014 01:15:30 +0000 (18:15 -0700)]
ReplicatedPG: do not preserve op context during flush
Any information stashed in the OpContext may be obsolete by the time we
actually mark the object clean. Instead, let the start_flush caller
clean up its OpContext and in try_flush_mark_clean we'll create a new
one. The primary reason to keep the OpContext would have been locking,
but we can set the obc as blocking without holding an OpContext, and
that would allow trimming to happen in the mean time (which is good
since trim_object does not respect rw locks since it doesn't change user
visible state). In try_flush_mark_clean, we requeue the fop->op along
with (but ahead of) the fop->dup_ops.
Fixes: #8068
Signed-off-by: Samuel Just <sam.just@inktank.com>
Sage Weil [Mon, 28 Apr 2014 19:40:04 +0000 (12:40 -0700)]
doc/release-notes: v0.67.8 notes
Signed-off-by: Sage Weil <sage@inktank.com>
Yehuda Sadeh [Fri, 25 Apr 2014 21:11:27 +0000 (14:11 -0700)]
rgw: fix url escaping
Fixes: #8202
This fixes the radosgw side of issue #8202. Needed to cast value
to unsigned char, otherwise it'd get padded.
Backport: dumpling
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yan, Zheng [Fri, 11 Apr 2014 08:42:42 +0000 (16:42 +0800)]
client: cleanup unsafe requests if MDS session is reset
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Yan, Zheng [Fri, 11 Apr 2014 08:31:29 +0000 (16:31 +0800)]
client: wake up cap waiters if MDS session is reset
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Yan, Zheng [Fri, 11 Apr 2014 07:34:25 +0000 (15:34 +0800)]
client: drop dirty/flushing caps if auth MDS' session is reset
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Yan, Zheng [Fri, 11 Apr 2014 07:03:37 +0000 (15:03 +0800)]
client: add asok command to kick sessions that were remote reset
Fixes: #8021
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Yan, Zheng [Sat, 26 Apr 2014 12:49:16 +0000 (20:49 +0800)]
Merge pull request #1729 from ceph/wip-7966
readlink result in resapwn
Reviewed-by: Yan, Zheng <zheng.z.yan@intel.com>
Sage Weil [Sat, 26 Apr 2014 02:46:24 +0000 (19:46 -0700)]
mds: terminate readlink result in resapwn
readlink(2) does not null terminate the buffer; we need to do that.
Fixes: #7966
Signed-off-by: Sage Weil <sage@inktank.com>
wusui [Fri, 25 Apr 2014 23:20:20 +0000 (16:20 -0700)]
Merge pull request #1727 from ceph/wip-8193
ceph_test_rados_api_tier: increase HitSetTrim timeouts
Sage Weil [Fri, 25 Apr 2014 22:58:47 +0000 (15:58 -0700)]
Merge pull request #1725 from FlorentCoppint/master
Skipping '_netdev' Debian fstab option
Reviewed-by: Sage Weil <sage@inktank.com>
Sage Weil [Fri, 25 Apr 2014 22:49:06 +0000 (15:49 -0700)]
ceph_test_rados_api_tier: increase HitSetTrim timeouts
...so that they pass when they get unlucky with thrashing.
This will vastly decrease the probability of failure, but failure will
always be possible when a timeout is in place.
Fixes: #8193
Signed-off-by: Sage Weil <sage@inktank.com>
FlorentCoppint [Fri, 25 Apr 2014 07:20:02 +0000 (09:20 +0200)]
Skipping '_netdev' Debian fstab option
Signed-off-by: Florent Bautista <florent@coppint.com>
Samuel Just [Tue, 1 Apr 2014 23:27:20 +0000 (16:27 -0700)]
rados.h,ReplicatedPG: add CEPH_OSD_FLAG_ENFORCE_SNAPC and use on flush
We need to ensure that even with pool snaps, we use the snapc provided in order
to ensure that the clones are written back correctly.
Fixes: #7941
Signed-off-by: Samuel Just <sam.just@inktank.com>
Loic Dachary [Thu, 24 Apr 2014 20:42:09 +0000 (22:42 +0200)]
Merge pull request #1717 from dachary/wip-auid
mon: add ceph osd pool set <pool> auid
Reviewed-by: Greg Farnum <greg@inktank.com>
wusui [Thu, 24 Apr 2014 20:27:40 +0000 (13:27 -0700)]
Merge pull request #1724 from ceph/wip-uselocalgithubforqemu-wusui
Use new git mirror for qemu-iotests
Warren Usui [Thu, 24 Apr 2014 19:55:26 +0000 (12:55 -0700)]
Use new git mirror for qemu-iotests
Fixes: 8191
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Samuel Just [Thu, 24 Apr 2014 19:48:44 +0000 (12:48 -0700)]
ECBackend::continue_recovery_op: handle a source shard going down
get_min_avail_to_read_shards might return an error if there are
no longer enough sources to reconstruct the missing shards.
This is possible if osds went down while we were writing the
previous chunk -- we already notice in check_recovery_sources
if a source goes down during a read.
Fixes: #8161
Signed-off-by: Samuel Just <sam.just@inktank.com>
Loic Dachary [Tue, 22 Apr 2014 13:41:47 +0000 (15:41 +0200)]
brag : implement --verbose on client
Signed-off-by: Loic Dachary <loic@dachary.org>
Loic Dachary [Tue, 22 Apr 2014 13:35:20 +0000 (15:35 +0200)]
brag : document the zero argument behavior
Signed-off-by: Loic Dachary <loic@dachary.org>
Loic Dachary [Tue, 22 Apr 2014 13:24:32 +0000 (15:24 +0200)]
brag : meaningfull error messages
To help figure out problems, include the error message in the output
when a submission fails.
Signed-off-by: Loic Dachary <loic@dachary.org>
Sage Weil [Thu, 24 Apr 2014 01:00:59 +0000 (18:00 -0700)]
Merge remote-tracking branch 'gh/firefly'
Sage Weil [Thu, 24 Apr 2014 00:23:12 +0000 (17:23 -0700)]
Merge pull request #1720 from jdurgin/wip-list-children-test
test_rbd.py: ignore children in cache pools
Reviewed-by: Sage Weil <sage@inktank.com>
Sage Weil [Wed, 23 Apr 2014 23:07:02 +0000 (16:07 -0700)]
Merge pull request #1719 from ceph/wip-8168
Wip 8168
Reviewed-by: Sage Weil <sage@inktank.com>
Samuel Just [Tue, 22 Apr 2014 23:03:48 +0000 (16:03 -0700)]
ReplicatedPG::do_osd_ops: consider head whiteout in list-snaps
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Tue, 22 Apr 2014 22:12:52 +0000 (15:12 -0700)]
ReplicatedPG::do_op: don't return ENOENT for whiteout on snapdir read
Signed-off-by: Samuel Just <sam.just@inktank.com>
Josh Durgin [Wed, 23 Apr 2014 20:47:02 +0000 (13:47 -0700)]
Merge pull request #1718 from ceph/wip-7882-wusui
Support latest qemu iotest code
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Josh Durgin [Wed, 23 Apr 2014 20:27:48 +0000 (13:27 -0700)]
test_rbd.py: ignore children in cache pools
This is necessary until http://tracker.ceph.com/issues/8187 is fixed.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Loic Dachary [Wed, 23 Apr 2014 19:55:57 +0000 (21:55 +0200)]
mon: add ceph osd pool set <pool> auid
When a pool is created with ceph osd pool create, the auid is not
inferred from the session auid and is set to zero. Add the
ceph osd pool set <pool> auid <int>
command to set it after it is created, and the matching get:
ceph osd pool get <pool> auid
Signed-off-by: Loic Dachary <loic@dachary.org>
Warren Usui [Wed, 23 Apr 2014 20:20:14 +0000 (13:20 -0700)]
Support latest qemu iotest code
Modified qemu-iotests workunit script to check for versions
that use the latest qemu (currently only Trusty). Limit the
tests to those that are applicable to rbd.
Fixes: 7882
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Sage Weil [Wed, 23 Apr 2014 15:51:26 +0000 (08:51 -0700)]
Merge pull request #1714 from ceph/wip-fs-client
two small fixes for client
Reviewed-by: Sage Weil <sage@inktank.com>
Ilya Dryomov [Wed, 23 Apr 2014 08:57:12 +0000 (12:57 +0400)]
rbd: deprecate --no-settle option
Waiting for udev has been the default for a while now, and, after
switching to libkrbd, is no longer an option. (libkrbd waits for
specific devices to show up, the old behaviour was to wait for
everything udev.)
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Ilya Dryomov [Fri, 18 Apr 2014 17:18:29 +0000 (21:18 +0400)]
doc: 'rbd showmapped' doesn't need privileges
No need to run 'rbd showmapped' with sudo.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Ilya Dryomov [Fri, 18 Apr 2014 17:19:27 +0000 (21:19 +0400)]
doc: do not mention modprobe in rbd docs
rbd binary will load rbd.ko itself, with appropriate options. Loading
it by hand with default options is undesirable.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Ilya Dryomov [Thu, 17 Apr 2014 15:03:24 +0000 (19:03 +0400)]
rbd: switch to libkrbd for 'rbd {map,showmapped,unmap}' operations
Thanks to libkrbd, 'rbd map' now outputs the device node it mapped to
to stdout:
$ sudo rbd map foo
/dev/rbd0
This will allow us to get rid of a lot of ad-hoc poll/sleep code in our
qa scripts.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Ilya Dryomov [Thu, 17 Apr 2014 15:03:24 +0000 (19:03 +0400)]
mount.ceph: switch to module_load()
Implement modprobe() in terms of module_load() from common/module.h
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Ilya Dryomov [Thu, 17 Apr 2014 15:03:24 +0000 (19:03 +0400)]
rbd: add libkrbd convenience library
Add libkrbd libtool convenience library to provide an interface for
mapping and unmapping rbd images programmatically. This will be used
by the rbd binary itself and the librbd_fsx testing tool.
libkrbd takes care of the kernel module stuff (common/module.h) and
makes use of libudev to be able to properly wait for block device
creation and deletion and tell which block device got assigned by the
kernel to the newly created mapping.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Yan, Zheng [Mon, 21 Apr 2014 08:26:33 +0000 (16:26 +0800)]
client: check cap ID when handling cap export message
handle following sequence of events:
- mds0 exports an inode to mds1. client receives the cap import
message from mds1. caps from mds0 are removed while handling
the cap import message.
- mds1 exports an inode to mds0. client receives the cap export
message from mds1. handle_cap_export() adds placeholder caps
for mds0
- client receives the first cap export message (for exporting
inode from mds0 to mds1)
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Yan, Zheng [Tue, 22 Apr 2014 02:26:50 +0000 (10:26 +0800)]
client: avoid releasing caps that are being used
To avoid releasing caps that are being used, encode_inode_release()
should send implemented caps to MDS.
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Samuel Just [Wed, 23 Apr 2014 00:36:20 +0000 (17:36 -0700)]
Merge pull request #1713 from ceph/wip-7439
Wip 7439
Reviewed-by: Sage Weil <sage@inktank.com>
Samuel Just [Tue, 22 Apr 2014 21:56:08 +0000 (14:56 -0700)]
ReplicatedPG: handle ec pools in mark_all_unfound_lost
Signed-off-by: Samuel Just <sam.just@inktank.com>
Jenkins [Tue, 22 Apr 2014 21:21:45 +0000 (21:21 +0000)]
0.80-rc1
Samuel Just [Tue, 22 Apr 2014 19:45:28 +0000 (12:45 -0700)]
ReplicatedPG: enable mark_unfound_lost delete for ec pools
revert is tricky to implement at this time for ec pools, so
we'll instead just implement delete for ec pools.
Fixes: #7439
Signed-off-by: Samuel Just <sam.just@inktank.com>
Sage Weil [Tue, 22 Apr 2014 16:42:16 +0000 (09:42 -0700)]
qa/workunits/rbd/copy.sh: skip some tests when tiering is enabled
The rados ls bit doesn't work.
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Sage Weil [Tue, 22 Apr 2014 16:37:32 +0000 (09:37 -0700)]
qa/workunits/rbd/copy.sh: fix test
I broke this in commit
9d64ac66082bd108ec3c2a74e2e77475b5564eae .
Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Sage Weil [Tue, 22 Apr 2014 19:40:02 +0000 (12:40 -0700)]
Merge pull request #1691 from ceph/wip-8139
osd_types: pg_t: allow is_split to handle checks for splits prior to the most recent
Reviewed-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Tue, 22 Apr 2014 17:21:55 +0000 (10:21 -0700)]
ECBackend: use std::swap for boost::optional
Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: Samuel Just <sam.just@inktank.com>
Ilya Dryomov [Thu, 17 Apr 2014 15:03:24 +0000 (19:03 +0400)]
common: add module_{load,has_parameter}()
Add two kernel module helpers: module_{module,has_parameter}(). They
are going to live in common/module.[ch].
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Ilya Dryomov [Thu, 17 Apr 2014 15:03:24 +0000 (19:03 +0400)]
Makefile: build common/secret.c with libtool
Turn common/secret.c into a libtool convenience library, libsecret.la.
Currently it is build directly, twice: for mount.ceph and rbd binaries.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Ilya Dryomov [Thu, 17 Apr 2014 15:03:24 +0000 (19:03 +0400)]
configure: check for blkid/blkid.h header
The check for the presence of blkid/blkid.h was missing.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Ilya Dryomov [Wed, 16 Apr 2014 07:39:00 +0000 (11:39 +0400)]
rbd: use stringify() in options parsing routines
Use stringify() in map_option_{uuid,ip,int}_cb() instead of essentially
open-coding it.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Ilya Dryomov [Wed, 16 Apr 2014 07:39:00 +0000 (11:39 +0400)]
stringify: use ostringstream instead of stringstream
Use ostringstream, as we don't need both input and output of the
stringstream in stringify().
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Yehuda Sadeh [Tue, 22 Apr 2014 16:02:33 +0000 (09:02 -0700)]
Merge pull request #1710 from ceph/wip-coverity
a couple coverity fixes
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Sage Weil [Tue, 22 Apr 2014 15:37:21 +0000 (08:37 -0700)]
Merge pull request #1711 from ceph/wip-coverity-respawn
mds: make strncpy in ::respawn safer
Reviewed-by: Sage Weil <sage@inktank.com>