]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Adam C. Emerson [Thu, 31 Mar 2016 20:08:08 +0000 (16:08 -0400)]
rgw: Do not try to encode or decode time_t
time_t's width varies between machines. Also it fails to compile on 32
bit linux.
Fixes: http://tracker.ceph.com/issues/15330
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Adam C. Emerson [Thu, 31 Mar 2016 18:50:06 +0000 (14:50 -0400)]
time: Change temporary variable types in time decode
Since we're decoding 32-bit integers, just use uint32_t and then cast them to
what utime_t expects.
Fixes: http://tracker.ceph.com/issues/15330
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Casey Bodley [Mon, 4 Apr 2016 14:35:20 +0000 (10:35 -0400)]
Merge pull request #8422 from ceph/wip-fix-cmake
CMake: For CMake version <= 2.8.11, use LINK_PRIVATE
Casey Bodley [Mon, 4 Apr 2016 14:28:38 +0000 (10:28 -0400)]
Merge pull request #8410 from theanalyst/rgw/help-args
rgw: add a few more help options in admin interface
Sage Weil [Mon, 4 Apr 2016 13:42:57 +0000 (09:42 -0400)]
Merge pull request #8393 from jcsp/wip-15309-2
qa: update rest test cephfs calls (part 2)
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 4 Apr 2016 13:32:12 +0000 (09:32 -0400)]
Merge pull request #8402 from ilc/master
configure: Add -D_LARGEFILE64_SOURCE to Linux build.
Sage Weil [Mon, 4 Apr 2016 12:56:23 +0000 (08:56 -0400)]
Merge pull request #8420 from dzafman/wip-15347
test: Fix test to run with btrfs which has snap_### dirs
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 4 Apr 2016 12:55:53 +0000 (08:55 -0400)]
Merge pull request #8423 from wjin/fix
osdmap: rm nonused variable
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 4 Apr 2016 12:55:14 +0000 (08:55 -0400)]
qa/workunits/rbd: qemu tests need to wait for image to be createdReviewe
qa/workunits/rbd: qemu tests need to wait for image to be created
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 4 Apr 2016 12:54:11 +0000 (08:54 -0400)]
Merge pull request #8427 from ghxandsky/master
set 128MB tcmalloc cache size by bytes
Star Guo [Mon, 4 Apr 2016 05:41:52 +0000 (13:41 +0800)]
set 128MB tcmalloc cache size by bytes
Signed-off-by: Star Guo <star.guo@mevoco.com>
Sage Weil [Sun, 3 Apr 2016 22:13:28 +0000 (18:13 -0400)]
Merge pull request #8314 from dx9/wip-unittest-erasure-code-plugin
unittest_erasure_code_plugin: fix deadlock (Alpine)
Sage Weil [Sun, 3 Apr 2016 22:12:03 +0000 (18:12 -0400)]
Merge pull request #7693 from aclamk/auto_complete_python
ceph: bash auto complete for CLI based on mon command descriptions
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Sun, 3 Apr 2016 22:11:18 +0000 (18:11 -0400)]
Merge pull request #8366 from yangdongsheng/trival
build: fix compiling warnings
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Sun, 3 Apr 2016 18:28:23 +0000 (14:28 -0400)]
Merge remote-tracking branch 'gh/jewel'
Jason Dillaman [Sun, 3 Apr 2016 14:29:38 +0000 (10:29 -0400)]
qa/workunits/rbd: qemu tests need to wait for image to be created
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Sage Weil [Sun, 3 Apr 2016 13:13:31 +0000 (09:13 -0400)]
Merge pull request #8380 from dillaman/wip-cls-fadvise
cls_rbd: pass WILLNEED fadvise flags during object map update
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Wei Jin [Sun, 3 Apr 2016 06:20:16 +0000 (14:20 +0800)]
osdmap: rm nonused variable
Signed-off-by: Wei Jin <wjin.cn@gmail.com>
Haomai Wang [Sun, 3 Apr 2016 05:31:07 +0000 (13:31 +0800)]
CMake: For CMake version <= 2.8.11, use LINK_PRIVATE
Signed-off-by: Haomai Wang <haomai@xsky.com>
Josh Durgin [Sat, 2 Apr 2016 19:35:09 +0000 (12:35 -0700)]
Merge branch 'wip-cycles'
common/Cycles: Do not initialize Cycles globally
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Haomai Wang <haomai@xsky.com>
Richard W.M. Jones [Mon, 21 Mar 2016 14:24:35 +0000 (14:24 +0000)]
common/Cycles: Do not initialize Cycles globally.
Move initialization to the few tests that actually use it.
Fixes: http://tracker.ceph.com/issues/15225
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
John Coyle [Sat, 26 Mar 2016 03:05:41 +0000 (23:05 -0400)]
unittest_erasure_code_plugin: fix deadlock caused by locked mutex in cancelled thread
Added unlock when thread is cancelled.
Signed-off-by: John Coyle <dx9err@gmail.com>
Sage Weil [Fri, 1 Apr 2016 21:52:47 +0000 (17:52 -0400)]
Merge pull request #8193 from liewegas/wip-bluestore
os/bluestore: a few fixes
David Zafman [Fri, 1 Apr 2016 21:33:14 +0000 (14:33 -0700)]
test: Fix test to run with btrfs which has snap_### dirs
Fixes: http://tracker.ceph.com/issues/15347
Signed-off-by: David Zafman <dzafman@redhat.com>
Orit Wasserman [Fri, 1 Apr 2016 18:22:51 +0000 (20:22 +0200)]
Merge pull request #8404 from cbodley/wip-rgw-realm-pull-fix
radosgw-admin: fix for 'realm pull'
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Josh Durgin [Fri, 1 Apr 2016 17:54:02 +0000 (10:54 -0700)]
Merge pull request #8417 from dillaman/wip-librbd-mirroring-unsupported
librbd: avoid throwing error if mirroring is unsupported
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Josh Durgin [Fri, 1 Apr 2016 16:55:20 +0000 (09:55 -0700)]
Merge pull request #8325 from trociny/wip-rbd-mirror-test-misc
test: rbd-mirror: script improvements for manual testing
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Jason Dillaman [Fri, 1 Apr 2016 16:16:12 +0000 (11:16 -0500)]
Merge pull request #8413 from runsisi/wip-fix-eexist
cls_journal: fix -EEXIST checking
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Fri, 1 Apr 2016 16:08:12 +0000 (12:08 -0400)]
librbd: avoid throwing error if mirroring is unsupported
Attempting to remove an image will remove the image from the mirroring
directory. However, if the OSD is older and doesn't support this
new feature, avoid throwing an error.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Casey Bodley [Thu, 31 Mar 2016 21:19:12 +0000 (17:19 -0400)]
rgw: add exclusive flag to set_as_default()
this dodges the race in RGWRealm::create() and RGWZoneParams::create()
that decides whether to set the new object as a default. by calling
set_as_default() with exclusive=true, it will fail with EEXIST if a
default is already set
it also fixes an issue with 'realm pull' on a secondary zone, where a
'default' zone may be created but never actually set_as_default()
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Thu, 31 Mar 2016 16:16:08 +0000 (12:16 -0400)]
rgw: add exclusive flag to RGWRealm::create_control
this was causing failures in 'radosgw-admin realm pull':
ERROR creating control for new realm realm0: (17) File exists
'realm pull' calls RGWRealm::create() with exclusive=false, but
RGWRealm::create_control() was using exclusive=true
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Abhishek Lekshmanan [Fri, 1 Apr 2016 11:46:30 +0000 (13:46 +0200)]
rgw_admin: improve the orphans find help
Adding a few missing commandline switches and improve the help message
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
Kefu Chai [Fri, 1 Apr 2016 14:26:26 +0000 (22:26 +0800)]
Merge pull request #8406 from dmick/jewel
debian/rules: put init-ceph in /etc/init.d/ceph, not ceph-base
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Fri, 1 Apr 2016 14:19:46 +0000 (22:19 +0800)]
Merge pull request #8324 from tchaikov/wip-mon-cleanup
mon: remove remove_legacy_versions()
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Abhishek Lekshmanan [Fri, 1 Apr 2016 11:45:09 +0000 (13:45 +0200)]
rgw: add a few missing cmdline switches in help
Add a few missing commandlien switches for zone
operations (zone_id,source_zone,read_only) to the help options
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
runsisi [Fri, 1 Apr 2016 12:56:26 +0000 (20:56 +0800)]
cls_journal: fix -EEXIST checking
Signed-off-by: runsisi <runsisi@zte.com.cn>
Dan Mick [Fri, 1 Apr 2016 03:30:00 +0000 (20:30 -0700)]
debian/rules: put init-ceph in /etc/init.d/ceph, not ceph-base
When the package name changed from ceph to ceph-base, dh_installinit
started installing the init script into /etc/init.d/ceph-base. Fix
this by using --name ceph with dh_installinit, which requires
1) naming the .init file ceph-base.ceph.init, and
2) calling dh_installinit separately for each package
Fixes: http://tracker.ceph.com/issues/15329
Signed-off-by: Dan Mick <dan.mick@redhat.com>
Jason Dillaman [Thu, 31 Mar 2016 18:34:26 +0000 (13:34 -0500)]
Merge pull request #8371 from runsisi/wip-fix-eexist
cls_rbd: fix -EEXIST checking in cls::rbd::image_set
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Ira Cooper [Thu, 31 Mar 2016 16:30:45 +0000 (12:30 -0400)]
configure: Add -D_LARGEFILE64_SOURCE to Linux build.
Without -D_LARGEFILE64_SOURCE we can't build against libxfs,
because off64_t must be defined.
Signed-off-by: Ira Cooper <ira@redhat.com>
Sage Weil [Thu, 31 Mar 2016 15:21:50 +0000 (11:21 -0400)]
Merge pull request #8400 from qhjindev/fix_mon
mon: remove unnecessary comment for update_from_paxos
Casey Bodley [Thu, 31 Mar 2016 15:05:14 +0000 (11:05 -0400)]
Merge pull request #8399 from oritwas/wip-cmake-mirrorwatcher
cmake: add missing librbd/MirrorWatcher.cc and librd/ObjectWatcher.cc
Qinghua Jin [Thu, 31 Mar 2016 14:37:12 +0000 (22:37 +0800)]
mon: remove unnecessary comment for update_from_paxos
The return value comment for update_from_paxos is unnecessary.
Signed-off-by: Qinghua Jin <qhjin_dev@163.com>
Orit Wasserman [Thu, 31 Mar 2016 13:59:32 +0000 (15:59 +0200)]
cmake: add missing librbd/MirrorWatcher.cc and librd/ObjectWatcher.cc
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Orit Wasserman [Thu, 31 Mar 2016 13:57:55 +0000 (15:57 +0200)]
Merge pull request #8394 from xiexingguo/xxg-wip-compile
rgw: fix compiling error
Loic Dachary [Thu, 31 Mar 2016 13:16:29 +0000 (15:16 +0200)]
Merge pull request #8358 from dachary/wip-releases
releases: what is merged where and when ?
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.cz>
Reviewed-by: Sage Weil <sage@redhat.com>
Loic Dachary [Tue, 29 Mar 2016 17:17:14 +0000 (19:17 +0200)]
releases: what is merged where and when ?
Signed-off-by: Loic Dachary <loic@dachary.org>
Loic Dachary [Tue, 29 Mar 2016 17:16:31 +0000 (19:16 +0200)]
releases: update understanding the release cycle
Signed-off-by: Loic Dachary <loic@dachary.org>
Loic Dachary [Tue, 29 Mar 2016 16:16:53 +0000 (18:16 +0200)]
release-notes: v10.0.5 release notes
Signed-off-by: Loic Dachary <loic@dachary.org>
Orit Wasserman [Thu, 31 Mar 2016 12:52:02 +0000 (14:52 +0200)]
Merge pull request #7875 from badone/wip-coverity-rgw_file-unused
[rgw] Check return code in RGWFileHandle::write
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
xie xingguo [Thu, 31 Mar 2016 11:48:38 +0000 (19:48 +0800)]
rgw: fix compiling error
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Orit Wasserman [Thu, 31 Mar 2016 11:43:49 +0000 (13:43 +0200)]
Merge pull request #8200 from H3C/wip-rgw-bugfixb
rgw/rgw_admin:fix bug about list and stats command
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Mykola Golub [Thu, 31 Mar 2016 10:57:17 +0000 (13:57 +0300)]
qa/workunits/rbd: use cluster1/2 instead local/remote as cluster names
After adding tests that start daemons in both clusters, local/remote
names look confusing.
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Mykola Golub [Thu, 31 Mar 2016 10:34:30 +0000 (13:34 +0300)]
qa/workunits/rbd: add helper to determine rbd-mirror local cluster
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
John Spray [Wed, 30 Mar 2016 10:43:22 +0000 (11:43 +0100)]
qa: update rest test cephfs calls (part 2)
"mds stat" now gives fsmap output rather than
mdsmap. Update the rest api test's expectations.
Fixes: http://tracker.ceph.com/issues/15309
Signed-off-by: John Spray <john.spray@redhat.com>
Loic Dachary [Thu, 31 Mar 2016 10:21:56 +0000 (12:21 +0200)]
Merge pull request #8373 from wjwithagen/patch-4
ceph-detect-init/run-tox.sh: FreeBSD: No init detect
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Orit Wasserman [Thu, 31 Mar 2016 09:55:13 +0000 (11:55 +0200)]
Merge pull request #8387 from dreamhost/wip-mp-listpartresult-etag
rgw: Multipart ListPartsResult ETag quotes
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Mykola Golub [Thu, 31 Mar 2016 08:42:13 +0000 (11:42 +0300)]
qa/workunits/rbd: improvements for manual testing
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Adam Kupczyk [Thu, 31 Mar 2016 08:08:07 +0000 (10:08 +0200)]
bash_completion: now bash completion uses improved "ceph --completion"
Signed-off-by: Adam Kupczyk <a.kupczyk@mirantis.com>
Adam Kupczyk [Thu, 18 Feb 2016 09:47:56 +0000 (10:47 +0100)]
tools: Auto complete feature for CLI.
Now logic moved from bash to python.
Not bind to bash yet. Use as 'ceph --comp osd ls'.
Able to fulfill commands and print command line help.
Signed-off-by: Adam Kupczyk <a.kupczyk@mirantis.com>
Robin H. Johnson [Thu, 31 Mar 2016 06:24:40 +0000 (06:24 +0000)]
rgw: Multipart ListPartsResult ETag quotes
ListPartsResult output has always missed quotes on the ETag since it was
first committed.
Fixes: #15334
Backports: hammer, infernalis
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
Sage Weil [Thu, 31 Mar 2016 05:15:38 +0000 (01:15 -0400)]
Merge pull request #8372 from jcsp/wip-15309
qa: update rest test cephfs calls
Sage Weil [Thu, 31 Mar 2016 05:14:22 +0000 (01:14 -0400)]
Merge pull request #8258 from asheplyakov/bug-12065
monclient: avoid key renew storm on clock skew
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 31 Mar 2016 05:13:58 +0000 (01:13 -0400)]
Merge pull request #8348 from xiexingguo/xxg-wip-failurepending
osd: fix failure report handling during ms_handle_connect()
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 31 Mar 2016 05:08:01 +0000 (01:08 -0400)]
Merge pull request #8369 from xiexingguo/xxg-wip-tick
osd: fix tick relevant issues
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 31 Mar 2016 05:07:17 +0000 (01:07 -0400)]
Merge pull request #8354 from tchaikov/wip-missing-cls
osd/ClassHandler: only dlclose() the classes not missing
Reviewed-by: Sage Weil <sage@redhat.com>
Dongsheng Yang [Wed, 30 Mar 2016 02:51:31 +0000 (22:51 -0400)]
os/filestore: fix a -Wunused-label warning in compiling.
os/filestore/FileStore.cc: In member function ‘int FileStore::_zero(const coll_t&, const ghobject_t&, uint64_t, size_t)’:
os/filestore/FileStore.cc:3328:2: warning: label ‘out’ defined but not used [-Wunused-label]
out:
^
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
Dongsheng Yang [Wed, 30 Mar 2016 02:36:49 +0000 (22:36 -0400)]
test/objectstore: fix a -Wsign-compare warning in compiling.
In file included from test/objectstore/store_test.cc:33:0:
../src/gmock/gtest/include/gtest/gtest.h: In instantiation of ‘testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = unsigned int; T2 = int]’:
../src/gmock/gtest/include/gtest/gtest.h:1524:23: required from ‘static testing::AssertionResult testing::internal::EqHelper<true>::Compare(const char*, const char*, const T1&, const T2&, typename testing::internal::EnableIf<(! testing::internal::is_pointer<T2>::value)>::type*) [with T1 = unsigned int; T2 = int; typename testing::internal::EnableIf<(! testing::internal::is_pointer<T2>::value)>::type = void]’
test/objectstore/store_test.cc:1088:285: required from here
../src/gmock/gtest/include/gtest/gtest.h:1448:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (expected == actual) {
^
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
Dongsheng Yang [Wed, 30 Mar 2016 02:28:45 +0000 (22:28 -0400)]
test/system: fix a -Wsign-compare warning in compiling.
test/system/st_rados_create_pool.cc: In function ‘std::__cxx11::string get_temp_pool_name(const char*)’:
test/system/st_rados_create_pool.cc:128:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
assert(ret < sizeof(poolname));
^
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
Josh Durgin [Thu, 31 Mar 2016 01:46:11 +0000 (18:46 -0700)]
Merge pull request #8355 from dillaman/wip-15029
librbd: send notifications for mirroring status updates
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
runsisi [Wed, 30 Mar 2016 10:25:50 +0000 (18:25 +0800)]
cls_rbd: fix -EEXIST checking in cls::rbd::image_set
Signed-off-by: runsisi <runsisi@hust.edu.cn>
Jason Dillaman [Wed, 30 Mar 2016 22:43:50 +0000 (18:43 -0400)]
librados_test_stub: add new cls_cxx_read2/write2 methods
Fixes: http://tracker.ceph.com/issues/15332
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Wed, 30 Mar 2016 20:18:10 +0000 (16:18 -0400)]
cls_rbd: pass WILLNEED fadvise flag for object map update ops
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Wed, 30 Mar 2016 20:13:51 +0000 (16:13 -0400)]
objclass: add cls_cxx_read2/cls_cxx_write2
These new methods support passing op flags (e.g. cache hints).
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Sage Weil [Wed, 30 Mar 2016 22:36:42 +0000 (18:36 -0400)]
Merge pull request #8382 from athanatos/wip-15241
osd: fix epoch check in handle_pg_create
Reviewed-by: Sage Weil <sage@redhat.com>
Samuel Just [Tue, 22 Mar 2016 21:20:12 +0000 (14:20 -0700)]
OSD::handle_pg_create: check same_primary_since
Rather than add a flag to handle_pg_peering_evt, check
same_primary_since here and pass the create event to
handle_pg_peering_evt as if it originated at the current epoch (the
project_pg_history checks in handle_pg_peering_evt will be noops).
Fixes: tracker.ceph.com/issues/15241
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Wed, 30 Mar 2016 22:25:36 +0000 (15:25 -0700)]
Merge pull request #8147 from xiaoxichen/fix-get-map
osd/OSD.cc: finish full_map_request every MOSDMap message.
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Jason Dillaman [Tue, 29 Mar 2016 16:39:56 +0000 (12:39 -0400)]
librbd: integrate listener for new mirroring notification payloads
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Tue, 29 Mar 2016 15:42:02 +0000 (11:42 -0400)]
librbd: send notifications on mirroring updates
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Casey Bodley [Wed, 30 Mar 2016 21:01:31 +0000 (17:01 -0400)]
Merge pull request #8084 from sunfch/wip-rgw-init-max-response
rgw: accept data only at the first time in response to a request
Jason Dillaman [Tue, 29 Mar 2016 04:02:10 +0000 (00:02 -0400)]
librbd: helper methods for mirroring notifications
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Tue, 29 Mar 2016 03:45:38 +0000 (23:45 -0400)]
librbd: mirroring object notification types
Initial payloads for updated mirror pool mode and image state.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Tue, 29 Mar 2016 03:13:17 +0000 (23:13 -0400)]
librbd: generic object watcher and mirroring watcher
The ObjectWatcher can handle generic watch and recovery of
RADOS objects. The MirroringWatcher will handle updates
to the RBD mirroring object.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Wed, 30 Mar 2016 16:58:18 +0000 (12:58 -0400)]
Merge pull request #8375 from rjfd/wip-15265
librbd: disable image mirroring when image is removed
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Josh Durgin [Wed, 30 Mar 2016 16:20:19 +0000 (09:20 -0700)]
Merge pull request #8331 from sileht/sileht/rados-cython
pybind/rados: python3 fix
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Ricardo Dias [Wed, 30 Mar 2016 14:06:25 +0000 (15:06 +0100)]
rbd: rbd-mirroring: Automatically disable image mirroring when image is removed
Signed-off-by: Ricardo Dias <rdias@suse.com>
Fixes: #15265
Sage Weil [Wed, 30 Mar 2016 15:17:12 +0000 (11:17 -0400)]
os/bluestore: _do_write: fix _do_zero_tail_extent to handle shared extents
Also add a test case to reproduce this case.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 30 Mar 2016 15:12:05 +0000 (11:12 -0400)]
os/bluestore: _do_zero: simply truncate up if past eof
Avoid the _do_zero_tail_extent here; we're zeroing so this is no different
than a truncate up
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 30 Mar 2016 14:26:18 +0000 (10:26 -0400)]
os/bluestore: prevent rename src from getting trimmed from lru
We were putting it at the end of the LRU *and* not holding a reference.
Fix by letting oldo carry a ref to the Onode. This avoids a subsequent
lookup and also prevents it from getting trimmed.
Note that we could also put it at the front of the LRU, but given that it
is the rename source, I'm not sure that's appropriate. For example,
temp recovery objects get renamed into place and we don't want to keep
negative onodes for those around.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 28 Mar 2016 19:36:47 +0000 (15:36 -0400)]
os/bluestore: _do_zero: handle unzeroed tail blocks
- _do_write_zero when handling tail extent if it is
shared.
- handle tail extent we are also zeroing later (not in
the tail handler). THis mirrors how _do_write is
structured.
- handle eof to offset zeroing if our offset starts in
the tail extent. just like _do_write's wal path.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 28 Mar 2016 19:36:38 +0000 (15:36 -0400)]
os/bluestore: _do_write_zero: preserve onode size
Instead of handling this in each caller, make the helper
keep onode.size intact.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 28 Mar 2016 19:36:23 +0000 (15:36 -0400)]
os/bluestore: _do_write: handle gap from eof to offset in wal path
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 28 Mar 2016 19:36:14 +0000 (15:36 -0400)]
os/bluestore: _do_allocate: fix whitespace
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 28 Mar 2016 19:36:05 +0000 (15:36 -0400)]
os/bluestore: _do_truncate: no need to zero trailing block on truncate down
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 28 Mar 2016 19:35:43 +0000 (15:35 -0400)]
os/bluestore: _do_write: only use append case for aligned eof
The append case here only works if the EOF was aligned
and there is thus no partial-block zeroing we need to
do. If the condition fails, we fall through to the
generic WAL path below.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 28 Mar 2016 19:35:31 +0000 (15:35 -0400)]
os/bluestore: _do_zero_tail_extent: do not assume tail block is zeroed
We will change this shortly.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 28 Mar 2016 17:23:56 +0000 (13:23 -0400)]
os/bluestore: _do_zero_tail_extent helper
We do this from both _do_truncate and _do_write. No
functional change here.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 28 Mar 2016 17:10:09 +0000 (13:10 -0400)]
os/bluestore: break _do_zero out of _zero
Seems useless now, but it maintains symmetry and we'll
need it later.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sat, 26 Mar 2016 14:30:34 +0000 (10:30 -0400)]
os/bluestore: do not do gift beyond the max ratio
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 25 Mar 2016 15:04:08 +0000 (11:04 -0400)]
global/signal_handler: fix warning
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 25 Mar 2016 15:03:28 +0000 (11:03 -0400)]
os/bluestore: release wal_cleaning extents in order
We need to order the freelist updates so that they match the
commit order of the actual transactions. Otherwise we might, say,
set a key here, delete it in the _txc_update_fm, but commit in
the wrong order and end up with the key surviving.
Signed-off-by: Sage Weil <sage@redhat.com>