]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agocmake: do not link ec_jerasure_generic against crush
Kefu Chai [Fri, 29 Jul 2016 03:38:46 +0000 (11:38 +0800)]
cmake: do not link ec_jerasure_generic against crush

crush is not used in erasure plugins at this moment.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: exclude private symbols in librbd
Kefu Chai [Fri, 29 Jul 2016 03:27:34 +0000 (11:27 +0800)]
cmake: exclude private symbols in librbd

missed it in 0edfad0.
* librbd: pass '--exclude-libs,ALL' to linker
* rbd: link against used libraries explicitly, rbd is accessing some
  internal symbols not exposed by librbd.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #10379 from xiexingguo/xxg-wip-bluestore-2016-07-21
Mark Nelson [Fri, 29 Jul 2016 00:49:09 +0000 (19:49 -0500)]
Merge pull request #10379 from xiexingguo/xxg-wip-bluestore-2016-07-21

os/bluestore: fix bitmap allocating failure if max_alloc_size is 0

Mark's Comments:

This passed Jenkins checks.
This passed "ceph_test_objectstore --gtest_filter=*/2".
This PR did not appear to have a significant impact on performance tests.

Reviewed-by: Mark Nelson <mnelson@redhat.com>
9 years agoMerge pull request #10140 from ifed01/wip-bluestore-fsck-update
Mark Nelson [Fri, 29 Jul 2016 00:32:15 +0000 (19:32 -0500)]
Merge pull request #10140 from ifed01/wip-bluestore-fsck-update

os/bluestore: replace interval_set with a bitset for used_block conta…

Mark's Comments:

This passed Jenkins checks.
This passed "ceph_test_objectstore --gtest_filter=*/2".
This PR did not appear to have a significant impact on performance tests, however no fsck specific performance or memory tests were performed.

Reviewed-by: Mark Nelson <mnelson@redhat.com>
9 years agoMerge pull request #10060 from trociny/wip-16386
Jason Dillaman [Thu, 28 Jul 2016 18:03:50 +0000 (14:03 -0400)]
Merge pull request #10060 from trociny/wip-16386

librbd: discard hangs when 'rbd_skip_partial_discard' is enabled

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #10472 from tchaikov/wip-cmake
Ali Maredia [Thu, 28 Jul 2016 17:44:49 +0000 (13:44 -0400)]
Merge pull request #10472 from tchaikov/wip-cmake

cmake: exclude non-public symbols in shared libraries

Reviewed-by: Ali Maredia <amaredia@redhat.com>
9 years agoMerge pull request #10273 from yonghengdexin735/wip-zzz-pip-delete-no_casting_required
Gregory Farnum [Thu, 28 Jul 2016 16:17:38 +0000 (09:17 -0700)]
Merge pull request #10273 from yonghengdexin735/wip-zzz-pip-delete-no_casting_required

msg/simple/Pipe: eliminating casts for the comparing of len and recv_max_prefetch

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #10477 from cbodley/wip-16839
Orit Wasserman [Thu, 28 Jul 2016 14:55:53 +0000 (16:55 +0200)]
Merge pull request #10477 from cbodley/wip-16839

radosgw-admin: zone[group] modify can change realm id
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #9988 from ifed01/wip-bluestore-reduce-blob4
Mark Nelson [Thu, 28 Jul 2016 14:53:01 +0000 (09:53 -0500)]
Merge pull request #9988 from ifed01/wip-bluestore-reduce-blob4

os/bluestore: get rid off blob's ref_map for non-shared objects

Mark's Comments:

This passed Jenkins checks.
This PR did not appear to have a significant impact on performance tests.
This initially failed "ceph_test_objectstore --gtest_filter=*/2" segfaulting in one of the tests.  See the attached log in the comments for the PR for details.  Subsequent reruns passed, and a run through valgrind's memcheck also passed.  Igor indicated that he has seen this particular segfault previously and believes it is related to running out of memory.  Given that the PR has passed the object store tests multiple times and the segfault has been observed in the past, I believe this PR is unrelated.

Reviewed-by: Mark Nelson <mnelson@redhat.com>
9 years agoMerge pull request #10439 from weiqiaomiao/wqm-wip-rgw-zonedump
Casey Bodley [Thu, 28 Jul 2016 14:50:21 +0000 (10:50 -0400)]
Merge pull request #10439 from weiqiaomiao/wqm-wip-rgw-zonedump

rgw: add lc_pool when decode or encode struct RGWZoneParams

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoradosgw-admin: zone[group] modify can change realm id 10477/head
Casey Bodley [Thu, 28 Jul 2016 13:55:05 +0000 (09:55 -0400)]
radosgw-admin: zone[group] modify can change realm id

allows the default zone and zonegroup (created with empty realm_id) to
be later added to a realm. the 'modify' command now accepts either
--realm_id=id or --rgw-realm=name

Fixes: http://tracker.ceph.com/issues/16839
Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #10476 from yonghengdexin735/wip-zzz-CDir
John Spray [Thu, 28 Jul 2016 13:53:53 +0000 (14:53 +0100)]
Merge pull request #10476 from yonghengdexin735/wip-zzz-CDir

mds/CDir: remove the part of judgment for _next_dentry_on_set

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agomds/CDir: remove the part of judgment for _next_dentry_on_set 10476/head
zhang.zezhu [Thu, 28 Jul 2016 12:31:39 +0000 (12:31 +0000)]
mds/CDir: remove the part of judgment for _next_dentry_on_set

Signed-off-by: zhang.zezhu <zhang.zezhu@zte.com.cn>
9 years agoMerge pull request #10428 from jcsp/wip-16592
John Spray [Thu, 28 Jul 2016 12:27:35 +0000 (13:27 +0100)]
Merge pull request #10428 from jcsp/wip-16592

mon: validate states transmitted in beacons

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agomon: validate states transmitted in beacons 10428/head
John Spray [Mon, 25 Jul 2016 11:59:19 +0000 (12:59 +0100)]
mon: validate states transmitted in beacons

Since FSMap was added, the state of a daemon can lead
to an entirely invalid map, but we were letting daemons
send any state they wanted.

Especially, we must not allow standby daemons to set
any state other than STANDBY.

Fixes: http://tracker.ceph.com/issues/16592
Signed-off-by: John Spray <john.spray@redhat.com>
9 years agocmake: link rgw_a against cls_lock_client 10472/head
Kefu Chai [Thu, 28 Jul 2016 10:41:13 +0000 (18:41 +0800)]
cmake: link rgw_a against cls_lock_client

rgw_lc.cc is using it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #10429 from jcsp/wip-16807-assertion
John Spray [Thu, 28 Jul 2016 11:15:27 +0000 (12:15 +0100)]
Merge pull request #10429 from jcsp/wip-16807-assertion

mds: add assertion in handle_slave_rename_prep

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Yan, Zheng <zyan@redhat.com>
9 years agocmake: exclude private symbols in public libs
Kefu Chai [Tue, 26 Jul 2016 06:53:07 +0000 (14:53 +0800)]
cmake: exclude private symbols in public libs

we should avoid exposing non-public symbols from user facing dynamic
libraries. so pass '--exclude-libs' with appropriate argument to linker.
as libcephfs does not add the ((visibility ("default"))) specifier to
the exported symbols, we can not set the default visiblity to hidden for
libcephfs, and "-export-symbols-regex" is a libtool option, we need to
develop a way for cmake to fix the visibility of libcephfs. it's still a
TODO.

* librados
  - pass '--exclude-libs=ALL' to linker
  - add buffer.cc to librados, so we can use '--exclude-libs=ALL'.
* libcephfs: pass '--exclude-libs=libcommon.a,libclient.a,libosdc.a' to
  linker
* libcommon
  - extract common_buffer_obj from libcommon, to avoid compilation
    this source file repeatly.
* tests:
  - link against common_internal_objs explicitly if the test in
    question is using the internal symbols.
* ceph-client-debug:
  - link against client explicitly, and do not link against librados
    anymore, as it is not used in this tool.

Fixes: http://tracker.ceph.com/issues/16556
Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: move common_utf8 closer to where it is used
Kefu Chai [Thu, 28 Jul 2016 09:41:30 +0000 (17:41 +0800)]
cmake: move common_utf8 closer to where it is used

for example, json_spirit uses common_utf8, so link json_spirit against common_utf8.
because libcommon includes json_spirit, this change does not impact the
consumers of libcommon.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9925 from fullerdj/wip-djf-11171
John Spray [Thu, 28 Jul 2016 10:35:20 +0000 (11:35 +0100)]
Merge pull request #9925 from fullerdj/wip-djf-11171

mds: Add path filtering for dump cache

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #10281 from vishalkanaujia/wip_inotable_repair
John Spray [Thu, 28 Jul 2016 10:25:18 +0000 (11:25 +0100)]
Merge pull request #10281 from vishalkanaujia/wip_inotable_repair

cephfs: Inotable repair during forward scrub

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agotest: fix librbd tests for rbd_skip_partial_discard 10060/head
Mykola Golub [Thu, 30 Jun 2016 11:31:23 +0000 (14:31 +0300)]
test: fix librbd tests for rbd_skip_partial_discard

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agolibrbd: discard hangs when 'rbd_skip_partial_discard' is enabled
Mykola Golub [Thu, 30 Jun 2016 11:30:08 +0000 (14:30 +0300)]
librbd: discard hangs when 'rbd_skip_partial_discard' is enabled

Fixes: http://tracker.ceph.com/issues/16386
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agomsg/simple/Pipe: eliminating casts for the comparing of len and recv_max_prefetch 10273/head
zhang.zezhu [Thu, 28 Jul 2016 01:47:37 +0000 (01:47 +0000)]
msg/simple/Pipe: eliminating casts for the comparing of len and recv_max_prefetch

Signed-off-by: zhang.zezhu <zhang.zezhu@zte.com.cn>
9 years agoMerge pull request #10457 from SUSE/wip-15497 10427/head
Loic Dachary [Wed, 27 Jul 2016 21:15:39 +0000 (23:15 +0200)]
Merge pull request #10457 from SUSE/wip-15497

doc: add Backporting section to Essentials chapter

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agodoc: add Backporting section to Essentials chapter 10457/head
Nathan Cutler [Wed, 27 Jul 2016 19:41:17 +0000 (21:41 +0200)]
doc: add Backporting section to Essentials chapter

... and fix some broken links.

Fixes: http://tracker.ceph.com/issues/15497
Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoMerge pull request #10414 from SUSE/wip-doc-dev
Loic Dachary [Wed, 27 Jul 2016 19:21:51 +0000 (21:21 +0200)]
Merge pull request #10414 from SUSE/wip-doc-dev

doc: add Upload logs to archive server section...

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agodoc: add Upload logs to archive server section... 10414/head
Nathan Cutler [Sat, 23 Jul 2016 21:30:53 +0000 (23:30 +0200)]
doc: add Upload logs to archive server section...

...to Testing in the cloud testing chapter

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoMerge pull request #10456 from cbodley/wip-16834
Orit Wasserman [Wed, 27 Jul 2016 18:13:09 +0000 (20:13 +0200)]
Merge pull request #10456 from cbodley/wip-16834

rgw: use endpoints from master zone instead of zonegroup
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: use endpoints from master zone instead of zonegroup 10456/head
Casey Bodley [Wed, 27 Jul 2016 16:16:57 +0000 (12:16 -0400)]
rgw: use endpoints from master zone instead of zonegroup

Fixes: http://tracker.ceph.com/issues/16834
Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #10396 from zhouruisong/master
Daniel Gryniewicz [Wed, 27 Jul 2016 16:20:54 +0000 (12:20 -0400)]
Merge pull request #10396 from zhouruisong/master

rgw:add a s3 API of make torrent for a object

9 years agoMerge pull request #10438 from ceph/wip-arm64
Kefu Chai [Wed, 27 Jul 2016 15:49:05 +0000 (23:49 +0800)]
Merge pull request #10438 from ceph/wip-arm64

ARM64 fixes

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Ali Maredia <amaredia@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Tested-by: tone zhang <tone.zhang@linaro.org>
9 years agoMerge pull request #10418 from wjwithagen/wip-wjw-freebsd-rocksdb
Kefu Chai [Wed, 27 Jul 2016 15:40:40 +0000 (23:40 +0800)]
Merge pull request #10418 from wjwithagen/wip-wjw-freebsd-rocksdb

cmake: pass cmake's compiler and flags to compile RocksDB into build

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9334 from yangdongsheng/rbd_clone_hiberit
Jason Dillaman [Wed, 27 Jul 2016 12:23:09 +0000 (08:23 -0400)]
Merge pull request #9334 from yangdongsheng/rbd_clone_hiberit

rbd: inherit the parent image features when cloning an image

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #10087 from yangdongsheng/rbd_snap_remove_force
Jason Dillaman [Wed, 27 Jul 2016 12:21:59 +0000 (08:21 -0400)]
Merge pull request #10087 from yangdongsheng/rbd_snap_remove_force

rbd: Allow user to remove snapshot with --force to auto flatten children

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #9371 from ukernel/wip-osx-fuse
Kefu Chai [Wed, 27 Jul 2016 12:19:04 +0000 (20:19 +0800)]
Merge pull request #9371 from ukernel/wip-osx-fuse

build ceph-fuse on OSX

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #10436 from gregsfortytwo/wip-snapshot-doc
John Spray [Wed, 27 Jul 2016 11:44:25 +0000 (12:44 +0100)]
Merge pull request #10436 from gregsfortytwo/wip-snapshot-doc

Add documentation about snapshots

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #10399 from renhwztetecs/renhw-wip-mds-cleanup2
John Spray [Wed, 27 Jul 2016 11:42:57 +0000 (12:42 +0100)]
Merge pull request #10399 from renhwztetecs/renhw-wip-mds-cleanup2

mds: unuse Class and cleanup

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #10444 from SUSE/wip-drop-cephfs-mopup
John Spray [Wed, 27 Jul 2016 11:15:40 +0000 (12:15 +0100)]
Merge pull request #10444 from SUSE/wip-drop-cephfs-mopup

man/Makefile-client.am: drop legacy cephfs tool

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
9 years agomds: unuse Class and cleanup 10399/head
huanwen ren [Wed, 27 Jul 2016 09:36:10 +0000 (17:36 +0800)]
mds: unuse Class and cleanup

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
9 years agosrc/CMakeLists.txt: pass compiler and flags used to compile into RocksDB build 10418/head
Willem Jan Withagen [Sun, 24 Jul 2016 13:48:50 +0000 (15:48 +0200)]
src/CMakeLists.txt: pass compiler and flags used to compile into RocksDB build

 - make sure the right compiler is used in CXX
 - NDEBUG if the current code is not being build with debugging

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
9 years agoMerge pull request #10433 from SUSE/wip-16808
Kefu Chai [Wed, 27 Jul 2016 05:32:05 +0000 (13:32 +0800)]
Merge pull request #10433 from SUSE/wip-16808

deb: merge ceph-fs-common into ceph-common

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #10342 from songbaisen/b6
Yuri Weinstein [Tue, 26 Jul 2016 22:48:54 +0000 (15:48 -0700)]
Merge pull request #10342 from songbaisen/b6

logmon: check is_leader() before doing any work on get_trim_to()

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #10343 from xiexingguo/xxg-wip-pipe-2016-07-19
Yuri Weinstein [Tue, 26 Jul 2016 22:48:22 +0000 (15:48 -0700)]
Merge pull request #10343 from xiexingguo/xxg-wip-pipe-2016-07-19

msg/simple: fix wrong condition checking of writing TAG_CLOSE on closing

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #10345 from tchaikov/wip-dump-cmdline
Yuri Weinstein [Tue, 26 Jul 2016 22:47:18 +0000 (15:47 -0700)]
Merge pull request #10345 from tchaikov/wip-dump-cmdline

global/signal_handler: dump cmdline instead of arg[0]

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge pull request #10356 from stiopaa1/msg_message_changeConstructorsRemoveCodeDupli...
Yuri Weinstein [Tue, 26 Jul 2016 22:46:03 +0000 (15:46 -0700)]
Merge pull request #10356 from stiopaa1/msg_message_changeConstructorsRemoveCodeDuplication

msg/Message.h: remove code duplication

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9290 from xiexingguo/xxg-wip-replicatedpg-cleaner
Yuri Weinstein [Tue, 26 Jul 2016 22:39:51 +0000 (15:39 -0700)]
Merge pull request #9290 from xiexingguo/xxg-wip-replicatedpg-cleaner

tools: do not closed stdout ; fix overload of "<" operator

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9362 from xiexingguo/xxg-wip-texttable-df
Yuri Weinstein [Tue, 26 Jul 2016 22:39:03 +0000 (15:39 -0700)]
Merge pull request #9362 from xiexingguo/xxg-wip-texttable-df

tools: use TextTable for "rados df" plain output

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9894 from gaowanlong/osd_recovery_max_omap_entries_per_chunk
Yuri Weinstein [Tue, 26 Jul 2016 22:38:10 +0000 (15:38 -0700)]
Merge pull request #9894 from gaowanlong/osd_recovery_max_omap_entries_per_chunk

osd: limit omap data in push op

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #10369 from ceph/wip-16715
Yuri Weinstein [Tue, 26 Jul 2016 22:36:01 +0000 (15:36 -0700)]
Merge pull request #10369 from ceph/wip-16715

msg/async/Event: ensure not refer to member variable which may destroyed

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #10358 from xiexingguo/xxg-wip-bluestore-2016-07-20
Mark Nelson [Tue, 26 Jul 2016 19:53:23 +0000 (14:53 -0500)]
Merge pull request #10358 from xiexingguo/xxg-wip-bluestore-2016-07-20

kv/MemDB: fix wrong output target and add sanity checks

Mark's Comments:

This passed Jenkins checks.
This passed "ceph_test_objectstore --gtest_filter=*/2".
This PR did not appear to have a significant impact on performance tests.

Reviewed-by: Mark Nelson <mnelson@redhat.com>
9 years agoMerge pull request #10349 from xiexingguo/xxg-wip-bluestore-2016-07-19
Mark Nelson [Tue, 26 Jul 2016 19:51:41 +0000 (14:51 -0500)]
Merge pull request #10349 from xiexingguo/xxg-wip-bluestore-2016-07-19

os/bluestore: add a boundary check of cache read

Mark's Comments:

This passed Jenkins checks.
This passed "ceph_test_objectstore --gtest_filter=*/2".
This PR did not appear to have a significant impact on performance tests.

Reviewed-by: Mark Nelson <mnelson@redhat.com>
9 years agoMerge pull request #10442 from weiqiaomiao/wqm-wip-rgw-getlc
Daniel Gryniewicz [Tue, 26 Jul 2016 19:07:35 +0000 (15:07 -0400)]
Merge pull request #10442 from weiqiaomiao/wqm-wip-rgw-getlc

rgw: return "NoSuchLifecycleConfiguration" if lifecycle config does not exist

9 years agoMerge pull request #10446 from cbodley/wip-16817
Orit Wasserman [Tue, 26 Jul 2016 17:43:03 +0000 (19:43 +0200)]
Merge pull request #10446 from cbodley/wip-16817

rgw: clear realm watch on failed watch_restart
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #10391 from ceph/wip-cmake
Ali Maredia [Tue, 26 Jul 2016 17:34:35 +0000 (13:34 -0400)]
Merge pull request #10391 from ceph/wip-cmake

cmake changes

Reviewed-by: Ali Maredia <amaredia@redhat.com>
9 years agoqa/qa_scripts/cephscrub.sh: do not try to remove ceph-fs-common package 10433/head
Nathan Cutler [Tue, 26 Jul 2016 17:12:22 +0000 (19:12 +0200)]
qa/qa_scripts/cephscrub.sh: do not try to remove ceph-fs-common package

The ceph-fs-common package is being dropped.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agorgw: clear realm watch on failed watch_restart 10446/head
Casey Bodley [Tue, 26 Jul 2016 16:50:13 +0000 (12:50 -0400)]
rgw: clear realm watch on failed watch_restart

if the realm is deleted while the gateway has a watch, it's disconnected
and watch_restart() will fail. this results in a watch handle of 0,
which leads to a segfault on ~RGWRealmWatcher when we pass it to
unwatch()

this commit cleans up the watch when watch_restart() fails, so we don't
try to unwatch() on destruction

Fixes: http://tracker.ceph.com/issues/16817
Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #10443 from wjwithagen/patch-13
Kefu Chai [Tue, 26 Jul 2016 15:02:50 +0000 (23:02 +0800)]
Merge pull request #10443 from wjwithagen/patch-13

src/CMakeLists.txt: remove double flag -Wno-invalid-offsetof

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoman/Makefile-client.am: drop legacy cephfs tool 10444/head
Nathan Cutler [Tue, 26 Jul 2016 14:26:59 +0000 (16:26 +0200)]
man/Makefile-client.am: drop legacy cephfs tool

Somehow c76c31d312ce7a623acd99dbdedfe471c0cd445f missed this bit.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoMerge pull request #10401 from theanalyst/rgw/test-multi-nose-attr
Casey Bodley [Tue, 26 Jul 2016 13:53:58 +0000 (09:53 -0400)]
Merge pull request #10401 from theanalyst/rgw/test-multi-nose-attr

rgw: test/multi.py add a destructive attr to tests

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agodoc: describe snapshots for developers, and warn about multi-fs 10436/head
Greg Farnum [Mon, 25 Jul 2016 21:21:15 +0000 (14:21 -0700)]
doc: describe snapshots for developers, and warn about multi-fs

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
9 years agosrc/CMakeLists.txt: remove double flag -Wno-invalid-offsetof 10443/head
Willem Jan Withagen [Tue, 26 Jul 2016 12:56:09 +0000 (14:56 +0200)]
src/CMakeLists.txt: remove double flag -Wno-invalid-offsetof

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
9 years agoMerge pull request #10375 from xiexingguo/xxg-wip-fix-bmap-ut-failure
Igor Fedotov [Tue, 26 Jul 2016 12:43:21 +0000 (15:43 +0300)]
Merge pull request #10375 from xiexingguo/xxg-wip-fix-bmap-ut-failure

os/bluestore: use small encoding for bluefs extent and fnode

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoos/bluestore: use small encoding for bluefs extent and fnode 10375/head
xie xingguo [Thu, 21 Jul 2016 07:50:56 +0000 (15:50 +0800)]
os/bluestore: use small encoding for bluefs extent and fnode

Also change bdev of extent from uint16_t to uint8_t, which matches
the fnode prefer_bdev field better, and is good for efficiency.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agotest_librbd: add a test for newly introduced api of snap_remove2 10087/head
Dongsheng Yang [Fri, 15 Jul 2016 08:45:14 +0000 (04:45 -0400)]
test_librbd: add a test for newly introduced api of snap_remove2

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
9 years agorbd: introduce no-progress for rbd snap remove.
Dongsheng Yang [Mon, 11 Jul 2016 14:41:26 +0000 (10:41 -0400)]
rbd: introduce no-progress for rbd snap remove.

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
9 years agoMerge pull request #10440 from tchaikov/wip-16686
Kefu Chai [Tue, 26 Jul 2016 11:10:09 +0000 (19:10 +0800)]
Merge pull request #10440 from tchaikov/wip-16686

msg/async: remove static member variable

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
9 years agodeb: merge ceph-fs-common into ceph-common
Nathan Cutler [Mon, 25 Jul 2016 17:03:03 +0000 (19:03 +0200)]
deb: merge ceph-fs-common into ceph-common

Fixes: http://tracker.ceph.com/issues/16808
Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agorgw: return "NoSuchLifecycleConfiguration" if lc config does not exist 10442/head
weiqiaomiao [Tue, 26 Jul 2016 10:03:31 +0000 (18:03 +0800)]
rgw: return "NoSuchLifecycleConfiguration" if lc config does not exist

return error code "NoSuchLifecycleConfiguration" if lifecycle configuration does not exist
as AmazonS3 latest API does.

Signed-off-by: weiqiaomiao <wei.qiaomiao@zte.com.cn>
9 years agorgw:add a s3 API of make torrent for a object 10396/head
zhouruisong [Wed, 8 Jun 2016 08:45:03 +0000 (16:45 +0800)]
rgw:add a s3 API of make torrent for a object

When you execute the command gettorrent of a object, a torrent file will be produced and returned.
The torrent also will be save into a pool named default.rgw.torrent.
If the torrent of a object exists in default.rgw.torrent, it will be returned.

Signed-off-by: zhouruisong <236131368@qq.com>
9 years agoMerge pull request #10430 from tchaikov/wip-cephtool-test.sh
Loic Dachary [Tue, 26 Jul 2016 06:51:25 +0000 (08:51 +0200)]
Merge pull request #10430 from tchaikov/wip-cephtool-test.sh

qa/workunits/cephtool/test.sh: use absolute path for TEMP_DIR

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agopybind: add remove_snap2 api in python binding
Dongsheng Yang [Fri, 1 Jul 2016 08:38:41 +0000 (04:38 -0400)]
pybind: add remove_snap2 api in python binding

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
9 years agotools/rbd: introduce an option of --force for snap remove
Dongsheng Yang [Fri, 1 Jul 2016 07:49:57 +0000 (03:49 -0400)]
tools/rbd: introduce an option of --force for snap remove

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
9 years agolibrbd: fix a incorrect input for cpp_strerror()
Dongsheng Yang [Fri, 1 Jul 2016 07:14:05 +0000 (03:14 -0400)]
librbd: fix a incorrect input for cpp_strerror()

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
9 years agolibrbd: coding style: fix the indent problem
Dongsheng Yang [Fri, 1 Jul 2016 07:12:54 +0000 (03:12 -0400)]
librbd: coding style: fix the indent problem

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
9 years agolibrbd: coding style: add space after comma
Dongsheng Yang [Fri, 1 Jul 2016 07:11:12 +0000 (03:11 -0400)]
librbd: coding style: add space after comma

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
9 years agolibrbd: introduce a new flag of RBD_SNAP_REMOVE_FLATTEN
Dongsheng Yang [Fri, 1 Jul 2016 07:06:22 +0000 (03:06 -0400)]
librbd: introduce a new flag of RBD_SNAP_REMOVE_FLATTEN

introduce RBD_SNAP_REMOVE_FLATTEN for flags of Image::snap_remove2()
to auto flatten the children of snapshot which we want to remove.

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
9 years agolibrbd: introduce a new api of snap_remove2
Dongsheng Yang [Thu, 30 Jun 2016 07:59:25 +0000 (03:59 -0400)]
librbd: introduce a new api of snap_remove2

currently, we only have one api for snap_remove, but if we want to
pass more options about snapshot removal, that's impossible.

This patch introduce a new api of snap_remove2 here to solve
this problem.

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
9 years agoMerge pull request #10423 from ceph/wip-16801
Kefu Chai [Tue, 26 Jul 2016 06:18:46 +0000 (14:18 +0800)]
Merge pull request #10423 from ceph/wip-16801

osd: fix the mem leak of RepGather

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agocmake: move flock.cc from libmds into libcommon 10391/head
Kefu Chai [Tue, 26 Jul 2016 05:41:48 +0000 (13:41 +0800)]
cmake: move flock.cc from libmds into libcommon

as we don't need to compile the whole mds just for building the
libcephfs

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agomsg/async: remove static member variable 10440/head
Kefu Chai [Tue, 26 Jul 2016 05:27:01 +0000 (13:27 +0800)]
msg/async: remove static member variable

msgr is part of libcommon. and the later is linked into both libcephfs
and librados. and hence into cephfs.so and rados.so. that's why we have
double free.

Fixes: http://tracker.ceph.com/issues/16686
Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #10304 from ukernel/wip-16610
Gregory Farnum [Tue, 26 Jul 2016 04:58:19 +0000 (21:58 -0700)]
Merge pull request #10304 from ukernel/wip-16610

ObjectCacher: fix last_write check in bh_write_adjacencies()
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agorgw: add lc_pool when decode or encode struct RGWZoneParams 10439/head
weiqiaomiao [Tue, 26 Jul 2016 03:12:35 +0000 (11:12 +0800)]
rgw: add lc_pool when decode or encode struct RGWZoneParams

Signed-off-by: weiqiaomiao <wei.qiaomiao@zte.com.cn>
9 years agoUpdate to upstream rocksdb 10438/head
Dan Mick [Fri, 22 Jul 2016 22:05:12 +0000 (22:05 +0000)]
Update to upstream rocksdb

Signed-off-by: Dan Mick <dan.mick@redhat.com>
9 years agosrc/test/CMakeLists.txt: don't assume Intel (sse/sse2)
Dan Mick [Tue, 26 Jul 2016 03:04:42 +0000 (20:04 -0700)]
src/test/CMakeLists.txt: don't assume Intel (sse/sse2)

Fixes ARM64 build of ceph_perf_local test

Signed-off-by: Dan Mick <dan.mick@redhat.com>
9 years agoerasure-code/jerasure/CMakeLists.txt: set NEON flags for neon objs
Dan Mick [Tue, 26 Jul 2016 03:04:07 +0000 (20:04 -0700)]
erasure-code/jerasure/CMakeLists.txt: set NEON flags for neon objs

Signed-off-by: Dan Mick <dan.mick@redhat.com>
9 years agoMerge pull request #10243 from jcsp/wip-cephfs-cleanup
John Spray [Mon, 25 Jul 2016 14:20:42 +0000 (15:20 +0100)]
Merge pull request #10243 from jcsp/wip-cephfs-cleanup

CephFS: misc. cleanups and remove legacy cephfs tool

Reviewed-by: Nathan Cutler <ncutler@suse.com>
9 years agomds: add assertion in handle_slave_rename_prep 10429/head
John Spray [Mon, 25 Jul 2016 14:09:29 +0000 (15:09 +0100)]
mds: add assertion in handle_slave_rename_prep

This function assumes that the source path
does not point to a null dentry, and that
path_traverse is therefore setting the
passed inode.

Candidate code path for crash
in http://tracker.ceph.com/issues/16807

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9716 from xiexingguo/xxg-wip-server_droppinlock2
John Spray [Mon, 25 Jul 2016 13:29:10 +0000 (14:29 +0100)]
Merge pull request #9716 from xiexingguo/xxg-wip-server_droppinlock2

Server: drop locks and auth pins if wait for pending truncate

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoos/bluestore: fix unittest_bluestore_types to properly handle different ref_map locations 9988/head
Igor Fedotov [Mon, 25 Jul 2016 12:11:20 +0000 (15:11 +0300)]
os/bluestore: fix unittest_bluestore_types to properly handle different ref_map locations

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoqa/workunits/cephtool/test.sh: use absolute path for TEMP_DIR 10430/head
Kefu Chai [Mon, 25 Jul 2016 08:57:51 +0000 (16:57 +0800)]
qa/workunits/cephtool/test.sh: use absolute path for TEMP_DIR

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #10261 from songbaisen/b1
Kefu Chai [Mon, 25 Jul 2016 08:44:08 +0000 (16:44 +0800)]
Merge pull request #10261 from songbaisen/b1

mon: remove the redundant cancel_probe_timeout function

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoosd: fix the mem leak of RepGather 10423/head
Kefu Chai [Mon, 25 Jul 2016 03:12:14 +0000 (11:12 +0800)]
osd: fix the mem leak of RepGather

ReplicatedPG::new_repop() returns a pointer to RepGather with two refcounts,
one is held by ReplicatedPG::repop_queue, the other is supposed to be
held by the caller of this function. but it's caller
ReplicatedPG::submit_log_entries() assigns it to a
boost::intrusive_ptr<RepGather>() directly, why by default add_ref() in
its constructor. this makes the refcount 3. that's why we have a leak of
RepGather in `ReplicatedPG::new_repop(ObcLockManager&&,
boost::optional<std::function<void ()>>&&)`.

Fixes: http://tracker.ceph.com/issues/16801
Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: do not link against profiler if gperftools is found
Kefu Chai [Mon, 25 Jul 2016 08:18:46 +0000 (16:18 +0800)]
cmake: do not link against profiler if gperftools is found

this behaviour matches the autotools. and we should not enable profiling
unless asked to do so.

Fixes: http://tracker.ceph.com/issues/16804
Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: cleanup Findgperftools.cmake
Kefu Chai [Mon, 25 Jul 2016 08:17:15 +0000 (16:17 +0800)]
cmake: cleanup Findgperftools.cmake

remove unused bits

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: cleanup Findudev.cmake
Kefu Chai [Fri, 22 Jul 2016 05:15:54 +0000 (13:15 +0800)]
cmake: cleanup Findudev.cmake

remove the crufts for handling the REQUIRED argument.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: cleanup Findblkid.cmake
Kefu Chai [Fri, 22 Jul 2016 05:06:59 +0000 (13:06 +0800)]
cmake: cleanup Findblkid.cmake

* remove unused bits
* fix the wrong mark_as_advanced() call.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: fix libaio detection
Kefu Chai [Fri, 22 Jul 2016 04:51:04 +0000 (12:51 +0800)]
cmake: fix libaio detection

* we used to check the header file of "aio.h" which is part of glibc,
  the glibc async i/o, and the corresponding library is librt. but what
  we are using is libaio.
* reference libaio using AIO_LIBRARIES for consistency.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: do not include undefind paths
Kefu Chai [Fri, 22 Jul 2016 04:23:32 +0000 (12:23 +0800)]
cmake: do not include undefind paths

for example
```
include_directories(${LEVELDB_PREFIX}/include)
```
does not make sense if `LEVELDB_PREFIX` is not defined.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: cleanup Findbabeltrace.cmake
Kefu Chai [Fri, 22 Jul 2016 03:56:58 +0000 (11:56 +0800)]
cmake: cleanup Findbabeltrace.cmake

* we don't need the BABELTRACE_PATH_HINT setting, as packaging script
  requires the the babeltrace pacakges explicitly.

Signed-off-by: Kefu Chai <kchai@redhat.com>