xie xingguo
ff6da97f8c
os/bluestore/BitAllocator: kill find_any_free_bits()
...
Which has no consumers.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-01-13 11:52:26 +08:00
xie xingguo
6a187e473c
os/bluestore: replace m_max_alloc_size with m_max_blocks
...
So we can get rid of the annoying transfer each time we
try to add an extent into an ExtentList.
Also simplify the add_extents() method a little.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-01-13 11:52:26 +08:00
Dan Mick
8ea09a23f7
Merge pull request #12848 from dzafman/wip-18469
...
ceph-objectstore-tool: Handle object names that are also valid json
Reviewed-by: Dan MIck <dmick@redhat.com>
2017-01-12 17:58:24 -08:00
Xie Xingguo
641ce6fcba
Merge pull request #12873 from Liuchang0812/wip-static-check
...
test: clean up unused variable
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-01-13 08:39:21 +08:00
John Spray
1dbff09ad5
client: populate metadata during mount
...
This way we avoid having to over-write the "root"
metadata during mount, and any user-set overrides (such
as bad values injected by tests) will survive.
Because Client instances may also open sessions without
mounting to send commands, add a call into populate_metadata
from mds_command as well.
Fixes: http://tracker.ceph.com/issues/18361
Signed-off-by: John Spray <john.spray@redhat.com>
2017-01-13 00:30:28 +00:00
Yuri Weinstein
8bdbf88ad2
Merge pull request #12913 from zmc/wip-smoke-openstack
...
Add openstack requirements to smoke suite
Reviewed-by: Yuri Weinstein <yweins@redhat.com>
2017-01-12 16:18:00 -08:00
Yuri Weinstein
d7a958a362
Merge pull request #12914 from tmuthamizhan/wip-ansible-fs-suite
...
qa: specify client for fs workunit
Reviewed-by: Yuri Weinstein <yweins@redhat.com>
2017-01-12 16:10:23 -08:00
Tamil Muthamizhan
8f6fd3a766
qa: specify client for fs workunit
...
s/all/client.0
Signed-off-by: Tamil Muthamizhan <tmuthami@redhat.com>
2017-01-12 15:29:56 -08:00
Zack Cerza
fe9b7552d1
Add openstack requirements to smoke suite
...
Signed-off-by: Zack Cerza <zack@redhat.com>
2017-01-12 14:55:26 -07:00
Michal Jarzabek
6ed7f2364a
client/Client.cc: prevent segfaulting
...
The segfaulting in the rmdir function is caused by calling
filepath::last_dentry() function.
last_dentry() function assumes that the bits vector has always at
least one element, which is not the case for the the filepath object
created with "/" input.
This commit also fixes other functions affected by this bug:
link, unlink, rename, mkdir, mknod and symlink.
Fixes: http://tracker.ceph.com/issues/9935
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2017-01-12 21:31:09 +00:00
Abhishek Lekshmanan
4ca18df719
rgw_admin: get master's period from store's current period info
...
This ensures that we get the current period in contrast to the admin log
which gets the master's earliest period.
Fixes: http://tracker.ceph.com/issues/18064
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2017-01-12 22:17:32 +01:00
Samuel Just
1753abc116
Merge pull request #12869 from athanatos/wip-18358
...
osdc/Objecter: resend pg commands on interval change
Reviewed-by: Sage Weil <sage@redhat.com>
2017-01-12 12:46:00 -08:00
Samuel Just
d89fdd2833
Objecter: resend pg commands on interval change
...
mark_lost_unfound* are now async since the rework, so we need
the Objecter to be able to resend on interval change. This
is preferable to somehow requeueing the Command because they
don't use the normal op queue.
Fixes: http://tracker.ceph.com/issues/18358
Signed-off-by: Samuel Just <sjust@redhat.com>
2017-01-12 12:45:03 -08:00
Samuel Just
bc57b7cb70
Objecter: fold last_force_resend into op_target_t
...
It's always passed along with op_target_t, this seems simpler.
Signed-off-by: Samuel Just <sjust@redhat.com>
2017-01-12 12:44:59 -08:00
Samuel Just
68defc2b05
ReplicatedBackend: take read locks for clone sources during recovery
...
Otherwise, we run the risk of a clone source which hasn't actually
come into existence yet being used if we grab a clone which *just*
got added the the ssc, but has not yet actually had time to be
created (can't rely on message ordering here since recovery messages
don't necessarily order with client IO!).
Fixes: http://tracker.ceph.com/issues/17831
Signed-off-by: Samuel Just <sjust@redhat.com>
2017-01-12 12:43:18 -08:00
Sage Weil
240d885c7f
Merge pull request #12888 from athanatos/wip-18165
...
osd/PrimaryLogPG::failed_push: update missing as well
Reviewed-by: Sage Weil <sage@redhat.com>
2017-01-12 14:17:58 -06:00
Gregory Farnum
6aa6f1d4b6
Merge pull request #12894 from dmick/wip-doc
...
doc/cephfs/troubleshooting: fix broken bullet list
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2017-01-12 10:39:54 -08:00
Jason Dillaman
3d7501ef05
Merge pull request #12905 from rjfd/wip-15824
...
librbd: added rbd_flatten_with_progress to API
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-01-12 12:20:09 -05:00
Mykola Golub
4b92adcb30
rbd-mirror: delayed replication support
...
Fixes: http://tracker.ceph.com/issues/15371
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-01-12 18:14:48 +01:00
Mykola Golub
b71a2d57cc
test/rbd_mirror: ImageReplayer mock tests
...
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-01-12 18:14:48 +01:00
Mykola Golub
ce867ce44a
rbd-mirror: tweaks to support creating mock test cases
...
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-01-12 18:14:48 +01:00
Mykola Golub
5c426683a5
test: add "resync requested" unit test for rbd-mirror bootstrap request
...
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-01-12 18:14:48 +01:00
Mykola Golub
72158bd9a3
qa/workunits/rbd: allow to tweak rbd-mirror test setup
...
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-01-12 18:09:02 +01:00
Kefu Chai
478c844b81
rocksdb: build with ppc64
...
changes included:
- cmake: check -momit-leaf-frame-pointer before using it
- util/thread_local.h: silence a clang-build warning
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-01-13 00:32:44 +08:00
Willem Jan Withagen
f12c8ebe0c
test/run-cli-tests: enable RBD testing
...
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-01-12 16:18:47 +01:00
Willem Jan Withagen
c605903802
test/librbd/Clang: Clang complains about reinterpret_cast where static_cast is sufficient
...
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-01-12 16:18:47 +01:00
Willem Jan Withagen
3d28554060
tools/rbd/action/Kernel.cc: create stubs for FreeBSD
...
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-01-12 16:12:41 +01:00
Willem Jan Withagen
915bd4ac4e
include/rbd_types.h: include/types.h for __le*
...
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-01-12 16:12:41 +01:00
Willem Jan Withagen
e30c27f03c
include/compat.h: define EREMOTEIO for FreeBSD
...
- and combined some FreeBSD defines with Apple's
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-01-12 16:12:41 +01:00
Willem Jan Withagen
052148398b
common/event_socket.h: include errno.h to use errno
...
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-01-12 16:12:41 +01:00
Willem Jan Withagen
a491ccdbf0
./do_freebsd.sh: Do not use KRBD
...
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-01-12 16:12:41 +01:00
Willem Jan Withagen
78c04b1c08
CMakeLists.txt: Introduce WITH_KBRD for kernel RBD
...
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-01-12 16:12:41 +01:00
Jason Dillaman
abbcbbded2
Merge pull request #12843 from trociny/wip-18465
...
librbd: metadata_set API operation should not change global config setting
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-01-12 09:54:20 -05:00
Jason Dillaman
438f99016b
Merge pull request #12880 from wjwithagen/wip-wjw-static_cast-NULL
...
tests: fix NULL references to be acceptable by Clang
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-01-12 09:53:06 -05:00
Ricardo Dias
52fae71fb7
rbd: added rbd_flatten_with_progress to librbd header
...
Fixes: http://tracker.ceph.com/issues/15824
Signed-off-by: Ricardo Dias <rdias@suse.com>
2017-01-12 14:30:29 +00:00
Nathan Cutler
8c724a5297
Merge pull request #12683 from SUSE/wip-run-make-check-deps
...
build/ops: add sanity checks to run-make-check.sh
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2017-01-12 15:22:19 +01:00
Xinze Chi
18f02de07c
os/bluestore: nullptr in OmapIteratorImpl::valid
...
call stack:
SnapMapper::get_next_object_to_trim -> MapCacher::get_next ->
OSDriver::get_next-> BlueStore::OmapIteratorImpl::valid()
In OSDriver::get_next, it call iter->upper_bound(key); // this may reset it to nullptr
Signed-off-by: Xinze Chi <xinze@xsky.com>
2017-01-12 22:20:40 +08:00
Jason Dillaman
59d0207e6c
Merge pull request #12864 from gaurav36/bug-18422-rbd-bench-write-crash-4G-io-size
...
rbd: bench-write should return error if io-size >= 4G
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-01-12 09:14:30 -05:00
Yan, Zheng
6526ecc084
qa/tasks: add test_open_ino_errors
...
Validate that errors encountered during opening inos are properly
propagated
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2017-01-12 20:15:53 +08:00
Mykola Golub
5b97cce360
Merge pull request #12863 from dillaman/wip-rbd-coverity
...
librbd: resolve static analyser warnings
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-01-12 12:48:18 +02:00
Haomai Wang
08caf09377
msgr: add client_bind to allow client messenger save ip
...
Signed-off-by: Haomai Wang <haomai@xsky.com>
2017-01-12 15:48:08 +08:00
Haomai Wang
2daffb84b5
test/TestOSDScrub: add ms to suite OSD construct change
...
Signed-off-by: Haomai Wang <haomai@xsky.com>
2017-01-12 15:48:08 +08:00
Haomai Wang
551cfee828
osd: separate hb client messenger to public and cluster
...
Signed-off-by: Haomai Wang <haomai@xsky.com>
2017-01-12 15:47:57 +08:00
Dan Mick
c278971bb6
doc/cephfs/troubleshooting: fix broken bullet list
...
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2017-01-11 18:45:15 -08:00
Jason Dillaman
60c36674bd
Merge pull request #12820 from trociny/wip-18447
...
rbd-mirror: check remote image mirroring state when bootstrapping
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-01-11 21:36:09 -05:00
xie xingguo
78cc0adfc8
os/bluestore: use Best-Effort policy when evicting onode from cache
...
We want a precise control of cache usage, and BE can achieve this goal
in a better way.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-01-12 09:28:59 +08:00
Zhang Shaowen
a142de3a9b
rgw: remove useless length comparison in lifecycle validate.
...
Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
2017-01-12 09:28:00 +08:00
yaoning
ca652104fe
mon: no delay for single message MSG_ALIVE and MSG_PGTEMP
...
delay and batch proposed as before if lots of messages arrive at the same time
if too many messages are MSG_ALIVE and MSG_PGTEMP, wait a long period as before
Signed-off-by: yaoning <yaoning@unitedstack.com>
2017-01-12 09:04:19 +08:00
John Spray
6048704d2f
Merge pull request #12465 from jcsp/wip-18159
...
mount: do not print "unknown" option to kclient
Reviewed-by: Jeff Layton <jlayton@redhat.com>
2017-01-12 00:48:29 +00:00
John Spray
3db51ae52d
Merge pull request #12794 from ukernel/wip-multimds-misc2
...
mds: misc multimds fixes part2
Reviewed-by: John Spray <john.spray@redhat.com>
2017-01-12 00:32:55 +00:00