]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years ago mon: print the num_pools and num_objects in 'ceph -s -f json/json-pretty'. 11654/head
huangjun [Wed, 26 Oct 2016 03:40:05 +0000 (11:40 +0800)]
  mon: print the num_pools and num_objects in 'ceph -s -f json/json-pretty'.
Fixes: http://tracker.ceph.com/issues/17703
Signed-off-by: huangjun <hjwsm1989@gmail.com>
8 years agoMerge pull request #11594 from cbodley/wip-rgw-init-bucket-sync
Yehuda Sadeh [Tue, 25 Oct 2016 22:06:54 +0000 (15:06 -0700)]
Merge pull request #11594 from cbodley/wip-rgw-init-bucket-sync

rgw: fix for passing temporary in InitBucketSyncStatus

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #11505 from cbodley/wip-17571
Yehuda Sadeh [Tue, 25 Oct 2016 22:05:27 +0000 (15:05 -0700)]
Merge pull request #11505 from cbodley/wip-17571

rgw: clean up RGWShardedOmapCRManager on early return

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #11504 from cbodley/wip-17568
Yehuda Sadeh [Tue, 25 Oct 2016 22:04:02 +0000 (15:04 -0700)]
Merge pull request #11504 from cbodley/wip-17568

rgw: RGWSimpleRadosReadCR tolerates empty reads

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #11352 from dachary/wip-17526-rados-bench
John Wilkins [Tue, 25 Oct 2016 19:26:31 +0000 (12:26 -0700)]
Merge pull request #11352 from dachary/wip-17526-rados-bench

doc: document hostname constraints for rados bench

reviewed-by: John Wilkins <jowilkin@redhat.com>

8 years agoMerge pull request #11602 from dillaman/wip-17665
John Wilkins [Tue, 25 Oct 2016 19:23:31 +0000 (12:23 -0700)]
Merge pull request #11602 from dillaman/wip-17665

doc: clarify QEMU rbd cache settings

reviewed-by: John Wilkins <jowilkin@redhat.com>

8 years agoMerge pull request #9825 from liewegas/wip-addrvec
Kefu Chai [Tue, 25 Oct 2016 17:38:01 +0000 (01:38 +0800)]
Merge pull request #9825 from liewegas/wip-addrvec

msg: add entity_addr_t types; add new entity_addrvec_t type

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11517 from ukernel/wip-17562
John Spray [Tue, 25 Oct 2016 11:30:42 +0000 (12:30 +0100)]
Merge pull request #11517 from ukernel/wip-17562

Fix #17562 (backtrace check fails when scrubbing directory created by fsstress)

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #11593 from ukernel/wip-17275
John Spray [Tue, 25 Oct 2016 11:16:05 +0000 (12:16 +0100)]
Merge pull request #11593 from ukernel/wip-17275

osdc/ObjectCacher: wake up dirty stat waiters after removing buffers

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11604 from stiopaa1/mds_inotable_addOverride
John Spray [Tue, 25 Oct 2016 11:15:30 +0000 (12:15 +0100)]
Merge pull request #11604 from stiopaa1/mds_inotable_addOverride

mds/InoTable.h: add override to virtual functs

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #11613 from stiopaa1/mds_cdir_removeUnneededUseofCount
John Spray [Tue, 25 Oct 2016 11:14:42 +0000 (12:14 +0100)]
Merge pull request #11613 from stiopaa1/mds_cdir_removeUnneededUseofCount

mds/CDir.cc: remove unneeded use of count

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #11611 from batrick/i17670
John Spray [Tue, 25 Oct 2016 11:14:23 +0000 (12:14 +0100)]
Merge pull request #11611 from batrick/i17670

mds: check if down mds is known

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11191 from renhwztetecs/renhw-wip-add-libcephfs
John Spray [Tue, 25 Oct 2016 10:59:11 +0000 (11:59 +0100)]
Merge pull request #11191 from renhwztetecs/renhw-wip-add-libcephfs

libcephfs: add ceph_fsetattr&&ceph_lchmod&&ceph_lutime

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11560 from ukernel/wip-mds-context-wrapping
John Spray [Tue, 25 Oct 2016 10:58:42 +0000 (11:58 +0100)]
Merge pull request #11560 from ukernel/wip-mds-context-wrapping

MDS: reduce usage of context wrapper

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11345 from jcsp/wip-mgr-assert
Kefu Chai [Tue, 25 Oct 2016 08:02:33 +0000 (16:02 +0800)]
Merge pull request #11345 from jcsp/wip-mgr-assert

messages: fix out of range assertion

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11632 from VictorDenisov/group_pool_fix
Jason Dillaman [Tue, 25 Oct 2016 03:55:17 +0000 (23:55 -0400)]
Merge pull request #11632 from VictorDenisov/group_pool_fix

rbd: fix parsing of group and image specific pools

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agorbd: fix parsing of group and image specific pools 11632/head
Victor Denisov [Mon, 24 Oct 2016 23:50:19 +0000 (16:50 -0700)]
rbd: fix parsing of group and image specific pools

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
8 years agoMerge pull request #11036 from tomy-ac/wip-tc-rados_append
Yuri Weinstein [Mon, 24 Oct 2016 21:45:42 +0000 (14:45 -0700)]
Merge pull request #11036 from tomy-ac/wip-tc-rados_append

Added append functionality to rados tool.

Reviewed-by: Samuel Just <sjust@redhat.com>
8 years agoMerge pull request #11221 from stiopaa1/osd_osdmap_removeUseOfCount
Yuri Weinstein [Mon, 24 Oct 2016 21:45:00 +0000 (14:45 -0700)]
Merge pull request #11221 from stiopaa1/osd_osdmap_removeUseOfCount

osd/OSDMap.cc: remove unneeded use of count

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11388 from ukernel/wip-17177
Yuri Weinstein [Mon, 24 Oct 2016 21:44:04 +0000 (14:44 -0700)]
Merge pull request #11388 from ukernel/wip-17177

os/ObjectStore: properly clear object map when replaying OP_REMOVE

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11143 from kylinstorage/wip-fix-write-hang
Kefu Chai [Mon, 24 Oct 2016 16:16:17 +0000 (00:16 +0800)]
Merge pull request #11143 from kylinstorage/wip-fix-write-hang

osd: fix rados write op hang

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #11532 from javeme/run_in_thread-return
Kefu Chai [Mon, 24 Oct 2016 16:15:30 +0000 (00:15 +0800)]
Merge pull request #11532 from javeme/run_in_thread-return

pybind: avoid "exception 'int' object is not iterable"

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11610 from liewegas/wip-mon-forward-features
Sage Weil [Mon, 24 Oct 2016 16:10:54 +0000 (11:10 -0500)]
Merge pull request #11610 from liewegas/wip-mon-forward-features

messages/MForward: reencode forwarded message if target has differing features

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agomsg/Message: fix set_middle vs throttler 11610/head
Sage Weil [Sun, 23 Oct 2016 23:10:00 +0000 (18:10 -0500)]
msg/Message: fix set_middle vs throttler

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomsg: adjust byte_throttler from Message::encode
Sage Weil [Sun, 23 Oct 2016 23:40:57 +0000 (18:40 -0500)]
msg: adjust byte_throttler from Message::encode

Normally we never call encode on a message that has a byte_throttler set
because we only use it for messages we received.  However, for forwarded
messages that we clear_payload() before resending, we *do* reencode, and in
that case we need to retake the appropriate number of bytes from the
throttler--just like we release them in clear_payload().

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomessages/MForward: reencode forwarded message if target has differing features
Sage Weil [Sat, 22 Oct 2016 18:01:34 +0000 (14:01 -0400)]
messages/MForward: reencode forwarded message if target has differing features

This ensures we reencode the payload with the
appropriate set of features if the client, us, or the
target do not have identical features.  Otherwise we
may forward an encoding with more features than the
target can handle.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11595 from liewegas/wip-move-ranges
Sage Weil [Mon, 24 Oct 2016 16:08:06 +0000 (11:08 -0500)]
Merge pull request #11595 from liewegas/wip-move-ranges

os: fix offsets for move_ranges operation

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #11160 from VictorDenisov/consistency_groups_namespaces
Jason Dillaman [Mon, 24 Oct 2016 15:55:48 +0000 (11:55 -0400)]
Merge pull request #11160 from VictorDenisov/consistency_groups_namespaces

librbd: add support for snapshot namespaces

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agomds: fix compile error from merges
John Spray [Mon, 24 Oct 2016 12:36:32 +0000 (13:36 +0100)]
mds: fix compile error from merges

Two patches both added these definitions
in slightly different places, so git let them
merge without a conflict.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoMerge remote-tracking branch 'ukernel/wip-mdstypes-split'
John Spray [Mon, 24 Oct 2016 11:02:48 +0000 (12:02 +0100)]
Merge remote-tracking branch 'ukernel/wip-mdstypes-split'

8 years agoMerge pull request #11576 from ukernel/wip-17636-debug
John Spray [Mon, 24 Oct 2016 11:00:48 +0000 (12:00 +0100)]
Merge pull request #11576 from ukernel/wip-17636-debug

mds: add debug assertion for issue #17636

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #11578 from jcsp/wip-backtrace-repair
John Spray [Mon, 24 Oct 2016 10:53:47 +0000 (11:53 +0100)]
Merge pull request #11578 from jcsp/wip-backtrace-repair

mds: repair backtraces during scrub

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #11596 from liewegas/wip-osdmap-features
Sage Weil [Mon, 24 Oct 2016 10:28:44 +0000 (05:28 -0500)]
Merge pull request #11596 from liewegas/wip-osdmap-features

mon/OSDMonitor: encode OSDMap::Incremental with same features as OSDMap

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agounittest_bluestore_types: fix csum const name
Sage Weil [Fri, 21 Oct 2016 16:46:11 +0000 (12:46 -0400)]
unittest_bluestore_types: fix csum const name

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge branch 'wip-bluestore-per-pool-compress2' of https://github.com/ifed01/ceph
Sage Weil [Mon, 24 Oct 2016 09:57:34 +0000 (04:57 -0500)]
Merge branch 'wip-bluestore-per-pool-compress2' of https://github.com/ifed01/ceph

8 years agoMerge pull request #8751 from flyd1005/wip-fix-typo
Kefu Chai [Mon, 24 Oct 2016 03:15:12 +0000 (11:15 +0800)]
Merge pull request #8751 from flyd1005/wip-fix-typo

doc: fix typos

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agoMerge pull request #10955 from objoo/YD-mailmap-updates-Sept
Loic Dachary [Sun, 23 Oct 2016 21:32:34 +0000 (23:32 +0200)]
Merge pull request #10955 from objoo/YD-mailmap-updates-Sept

mailmap updates sept

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agomds/CDir.cc: remove unneeded use of count 11613/head
Michal Jarzabek [Sun, 23 Oct 2016 10:24:14 +0000 (11:24 +0100)]
mds/CDir.cc: remove unneeded use of count

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
8 years agomds: check if down mds is known 11611/head
Patrick Donnelly [Sat, 22 Oct 2016 22:47:03 +0000 (18:47 -0400)]
mds: check if down mds is known

This avoids an assertion failure where an MDS receives an mdsmap that
causes it to enter up:replay and also see another MDS go down.

Fixes: http://tracker.ceph.com/issues/17670
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #11607 from xiexingguo/xxg-wip-bluestore-1022
Sage Weil [Sat, 22 Oct 2016 14:54:54 +0000 (09:54 -0500)]
Merge pull request #11607 from xiexingguo/xxg-wip-bluestore-1022

os/bluestore: simplify can_split_at()

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: literal changes 11607/head
xie xingguo [Sat, 22 Oct 2016 06:14:41 +0000 (14:14 +0800)]
os/bluestore: literal changes
1. drop redundant semicolon
2. fix wrong output message

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agotest/libcephfs: add ceph_fsetattr() test 11191/head
huanwen ren [Tue, 18 Oct 2016 08:24:16 +0000 (16:24 +0800)]
test/libcephfs: add ceph_fsetattr() test

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
8 years agocls_rbd: Allow snapshots with the same name in different namespaces 11160/head
Victor Denisov [Thu, 20 Oct 2016 00:31:31 +0000 (17:31 -0700)]
cls_rbd: Allow snapshots with the same name in different namespaces

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
8 years agorbd: Use user snapshot namespace in rbd_mirror for now
Victor Denisov [Wed, 21 Sep 2016 04:36:26 +0000 (21:36 -0700)]
rbd: Use user snapshot namespace in rbd_mirror for now

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
8 years agolibrbd: By default create snapshots in UserNamespace
Victor Denisov [Wed, 21 Sep 2016 04:35:30 +0000 (21:35 -0700)]
librbd: By default create snapshots in UserNamespace

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
8 years agocls_rbd: Add snapshot namespaces data structures
Victor Denisov [Wed, 21 Sep 2016 04:30:56 +0000 (21:30 -0700)]
cls_rbd: Add snapshot namespaces data structures

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
8 years agoos/bluestore: simplify can_split_at()
xie xingguo [Sat, 22 Oct 2016 02:33:20 +0000 (10:33 +0800)]
os/bluestore: simplify can_split_at()

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11026 from jcsp/wip-pg-files
Gregory Farnum [Fri, 21 Oct 2016 21:48:31 +0000 (14:48 -0700)]
Merge pull request #11026 from jcsp/wip-pg-files

tools/cephfs: add pg_files command

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #11456 from tchaikov/wip-17558
Gregory Farnum [Fri, 21 Oct 2016 21:40:46 +0000 (14:40 -0700)]
Merge pull request #11456 from tchaikov/wip-17558

mon: send updated monmap to its subscribers

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agomds/InoTable.h: add override to virtual functs 11604/head
Michal Jarzabek [Fri, 21 Oct 2016 21:32:15 +0000 (22:32 +0100)]
mds/InoTable.h: add override to virtual functs

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
8 years agoMerge pull request #11599 from tanghaodong25/wip-2q-cache
Sage Weil [Fri, 21 Oct 2016 20:14:45 +0000 (15:14 -0500)]
Merge pull request #11599 from tanghaodong25/wip-2q-cache

os/bluestore: make 2q cache kin/kout size tunable

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11603 from liewegas/wip-bluestore-obj-remove
Sage Weil [Fri, 21 Oct 2016 19:45:08 +0000 (14:45 -0500)]
Merge pull request #11603 from liewegas/wip-bluestore-obj-remove

os/bluestore: clear extent map on object removal

8 years agoMerge pull request #11597 from ifed01/wip-bluestore-reshard-fix
Sage Weil [Fri, 21 Oct 2016 19:43:16 +0000 (14:43 -0500)]
Merge pull request #11597 from ifed01/wip-bluestore-reshard-fix

os/bluestore: fix lack of resharding

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: clear extent map on object removal 11603/head
Sage Weil [Fri, 21 Oct 2016 19:42:19 +0000 (15:42 -0400)]
os/bluestore: clear extent map on object removal

Clear ExtentMap (esp shards, etc.) when an object is removed.  Otherwise
if we recreate it we will have stale state (like the shards vector or
inline_bl) that are bogus.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agodoc: clarify QEMU rbd cache settings 11602/head
Jason Dillaman [Fri, 21 Oct 2016 18:49:13 +0000 (14:49 -0400)]
doc: clarify QEMU rbd cache settings

http://tracker.ceph.com/issues/17665
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11230 from yehudasa/wip-rgw-resharding
Orit Wasserman [Fri, 21 Oct 2016 17:49:41 +0000 (19:49 +0200)]
Merge pull request #11230 from yehudasa/wip-rgw-resharding

rgw: bucket resharding
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoos/bluestore: make 2q cache kin/kout size tunable 11599/head
haodong [Fri, 21 Oct 2016 06:05:56 +0000 (14:05 +0800)]
os/bluestore: make 2q cache kin/kout size tunable

default kin/hot queue size is 50% of max buffer size.
50% is a better choice for the number of page slot in kout.
we make it tunable.

Signed-off-by: Haodong Tang <haodong.tang@intel.com>
8 years agoos/bluestore: fix black of resharding 11597/head
Igor Fedotov [Fri, 21 Oct 2016 16:30:36 +0000 (16:30 +0000)]
os/bluestore: fix black of resharding

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agomon/OSDMonitor: encode OSDMap::Incremental with same features as OSDMap 11596/head
Sage Weil [Fri, 21 Oct 2016 16:25:08 +0000 (12:25 -0400)]
mon/OSDMonitor: encode OSDMap::Incremental with same features as OSDMap

The Incremental encode stashes encode_features, which is
what we use later to reencode the updated OSDMap.  Use
the same features so that the encoding will match!

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/OSDMonitor: do not encode osdmap with MSG_ADDR2 until kraken flag is set 9825/head
Sage Weil [Fri, 30 Sep 2016 22:28:42 +0000 (18:28 -0400)]
mon/OSDMonitor: do not encode osdmap with MSG_ADDR2 until kraken flag is set

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos: fix offsets in move_ranges 11595/head
Sage Weil [Fri, 21 Oct 2016 16:07:05 +0000 (12:07 -0400)]
os: fix offsets in move_ranges

This simplifies the interface, and avoids problems in
bluestore with alignment.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11566 from oritwas/wip-rgw-put-acl-underscore
Casey Bodley [Fri, 21 Oct 2016 16:00:53 +0000 (12:00 -0400)]
Merge pull request #11566 from oritwas/wip-rgw-put-acl-underscore

rgw: fix put_acls for objects starting and ending with underscore

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #11591 from liewegas/wip-bluestore-test-dev
Sage Weil [Fri, 21 Oct 2016 15:57:26 +0000 (10:57 -0500)]
Merge pull request #11591 from liewegas/wip-bluestore-test-dev

ceph_test_objectstore: smaller device

8 years agoMerge pull request #11444 from cbodley/wip-rgw-get-system-obj
Orit Wasserman [Fri, 21 Oct 2016 15:25:17 +0000 (17:25 +0200)]
Merge pull request #11444 from cbodley/wip-rgw-get-system-obj

rgw: get_system_obj does not use result of get_system_obj_state
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #11588 from xiexingguo/wip-fix-fastinfo-id
Sage Weil [Fri, 21 Oct 2016 13:56:08 +0000 (08:56 -0500)]
Merge pull request #11588 from xiexingguo/wip-fix-fastinfo-id

osd: fix duplicated id of incompat feature "fastinfo"

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agorgw: fix for passing temporary in InitBucketSyncStatus 11594/head
Casey Bodley [Fri, 21 Oct 2016 02:59:35 +0000 (22:59 -0400)]
rgw: fix for passing temporary in InitBucketSyncStatus

Fixes: http://tracker.ceph.com/issues/17661
Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoosdc/ObjectCacher: wake up dirty stat waiters after removing buffers 11593/head
Yan, Zheng [Fri, 21 Oct 2016 13:24:15 +0000 (21:24 +0800)]
osdc/ObjectCacher: wake up dirty stat waiters after removing buffers

Fixes: http://tracker.ceph.com/issues/17275
Signed-off-by: Yan, Zheng <zyan@redhat.com>
8 years agoceph_test_objectstore: smaller device 11591/head
Sage Weil [Fri, 21 Oct 2016 13:17:30 +0000 (09:17 -0400)]
ceph_test_objectstore: smaller device

This is faster.  The bitmap has to be scanned during
startup and fsck and that's slow.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomessages: fix out of range assertion 11345/head
John Spray [Thu, 6 Oct 2016 10:20:47 +0000 (12:20 +0200)]
messages: fix out of range assertion

When clang uses an 8 bit type for the enum, it
complains (out of range) if comparing <256,
and complains (tautological) if comparing <=256.

Avoid this by explicitly making the enum an
uint8_t, and just asserting that that it has
that size at the point that we assume so for
the encoding (in case someone modified the
type definition without checking how it was used).

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: repair backtraces during scrub 11578/head
John Spray [Thu, 20 Oct 2016 10:49:42 +0000 (11:49 +0100)]
mds: repair backtraces during scrub

Fixes: http://tracker.ceph.com/issues/17639
Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: fix CDir::log_mark_dirty() 11560/head
Yan, Zheng [Fri, 21 Oct 2016 03:38:44 +0000 (11:38 +0800)]
mds: fix CDir::log_mark_dirty()

CDir::log_mark_dirty() moves dirfrag to current log segment's dirty
dirfrag list, but it does not submit any log event. Old log segments
(that include events which dirty the dirfrag) may get expired before
the dirfrag gets committed. If MDS crashes, the changes in expired
log segments get lost.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
8 years agomds: avoid wrapping contexts during logging
Yan, Zheng [Wed, 19 Oct 2016 15:41:43 +0000 (23:41 +0800)]
mds: avoid wrapping contexts during logging

For each log event, mds allocate two extra contexts, one for
marking op tracker event, one for updating log's safe_pos after
executing the finish context. This is sub-optimization.

This patch defines MDSLogContextBase for log event context.
MDSLogContextBase::complete() function can do the extra jobs.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
8 years agomds: avoid wrapping C_IO_Wrapper with C_OnFinisher
Yan, Zheng [Wed, 19 Oct 2016 12:42:25 +0000 (20:42 +0800)]
mds: avoid wrapping C_IO_Wrapper with C_OnFinisher

Signed-off-by: Yan, Zheng <zyan@redhat.com>
8 years agoMerge pull request #11575 from ceph/wip-17260
Kefu Chai [Fri, 21 Oct 2016 03:54:53 +0000 (11:54 +0800)]
Merge pull request #11575 from ceph/wip-17260

cmake: link tests against static librados

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Ali Maredia <amaredia@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #10490 from Yan-waller/yj-wip-msgtest-0729
xiexingguo [Fri, 21 Oct 2016 03:01:32 +0000 (11:01 +0800)]
Merge pull request #10490 from Yan-waller/yj-wip-msgtest-0729

msg/test: fix the guided compile-command to ceph_test_msgr

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoosd: fix duplicated id of incompat feature "fastinfo" 11588/head
xie xingguo [Fri, 21 Oct 2016 02:38:23 +0000 (10:38 +0800)]
osd: fix duplicated id of incompat feature "fastinfo"

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11436 from chhabaramesh/master
Sage Weil [Fri, 21 Oct 2016 01:26:16 +0000 (20:26 -0500)]
Merge pull request #11436 from chhabaramesh/master

kv/MemDB: making memdb code adapt to generic maps

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11455 from stiopaa1/mds_mutation_simplifyConstructors
John Spray [Thu, 20 Oct 2016 21:55:17 +0000 (23:55 +0200)]
Merge pull request #11455 from stiopaa1/mds_mutation_simplifyConstructors

mds/Mutation.h: simplify constructors

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #11509 from stiopaa1/mds_fsmapuser_makeAssignCopyDefault
John Spray [Thu, 20 Oct 2016 21:43:58 +0000 (23:43 +0200)]
Merge pull request #11509 from stiopaa1/mds_fsmapuser_makeAssignCopyDefault

mds/FSMapUser.h: remove copy ctr and assign op

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #10359 from songbaisen/b11
Yuri Weinstein [Thu, 20 Oct 2016 21:34:34 +0000 (14:34 -0700)]
Merge pull request #10359 from songbaisen/b11

mon:  paxos add the timeout function when peon recovery

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
8 years agoMerge pull request #11165 from xiexingguo/xxg-wip-throttle-0921
Yuri Weinstein [Thu, 20 Oct 2016 21:33:08 +0000 (14:33 -0700)]
Merge pull request #11165 from xiexingguo/xxg-wip-throttle-0921

common/throttle: simplify Throttle::_wait()

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11583 from stiopaa1/mds_snapserver_addOverride
John Spray [Thu, 20 Oct 2016 21:21:28 +0000 (23:21 +0200)]
Merge pull request #11583 from stiopaa1/mds_snapserver_addOverride

mds/SnapServer.h: add override to virtual functs

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11523 from stiopaa1/mds_migrator_removeUnneededCount
John Spray [Thu, 20 Oct 2016 21:14:58 +0000 (23:14 +0200)]
Merge pull request #11523 from stiopaa1/mds_migrator_removeUnneededCount

mds/Migrator.cc: remove unneeded use of count

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #11543 from batrick/cdir-unique-ptr
John Spray [Thu, 20 Oct 2016 21:14:26 +0000 (23:14 +0200)]
Merge pull request #11543 from batrick/cdir-unique-ptr

mds: use unique_ptr to simplify resource mgmt

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11581 from yehudasa/wip-17635
Casey Bodley [Thu, 20 Oct 2016 21:14:06 +0000 (17:14 -0400)]
Merge pull request #11581 from yehudasa/wip-17635

rgw: handle empty POST condition

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #11565 from stiopaa1/mds_sessionmap_removeUnneededFunction
John Spray [Thu, 20 Oct 2016 21:04:17 +0000 (23:04 +0200)]
Merge pull request #11565 from stiopaa1/mds_sessionmap_removeUnneededFunction

mds/SessionMap.h: remove unneeded function

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agorgw: handle empty POST condition 11581/head
Yehuda Sadeh [Thu, 20 Oct 2016 17:17:36 +0000 (10:17 -0700)]
rgw: handle empty POST condition

Fixes: http://tracker.ceph.com/issues/17635
Before accessing json entity, need to check that iterator is valid.
If there is no entry return appropriate error code.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agomds/SnapServer.h: add override to virtual functs 11583/head
Michal Jarzabek [Thu, 20 Oct 2016 19:03:30 +0000 (20:03 +0100)]
mds/SnapServer.h: add override to virtual functs

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
8 years agoMerge pull request #11580 from cbodley/wip-rgw-deadlock-dump-crs
Yehuda Sadeh [Thu, 20 Oct 2016 18:36:51 +0000 (11:36 -0700)]
Merge pull request #11580 from cbodley/wip-rgw-deadlock-dump-crs

rgw: dump remaining coroutines when cr deadlock is detected

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #11526 from ukernel/wip-17591
Gregory Farnum [Thu, 20 Oct 2016 16:39:00 +0000 (09:39 -0700)]
Merge pull request #11526 from ukernel/wip-17591

client: get caller's uid/gid on every libcephfs operation

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agorgw: dump remaining coroutines when cr deadlock is detected 11580/head
Casey Bodley [Wed, 19 Oct 2016 17:01:39 +0000 (13:01 -0400)]
rgw: dump remaining coroutines when cr deadlock is detected

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #11553 from Aran85/wip-datasync-status
Casey Bodley [Thu, 20 Oct 2016 15:13:07 +0000 (11:13 -0400)]
Merge pull request #11553 from Aran85/wip-datasync-status

rgw multisite: fix the increamtal bucket sync init

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #11577 from jcsp/wip-17636
Kefu Chai [Thu, 20 Oct 2016 14:50:20 +0000 (22:50 +0800)]
Merge pull request #11577 from jcsp/wip-17636

denc: don't pass null instances into encoder fns

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoinclude/fs_types: fix crash in inodeno_t encode 11577/head
John Spray [Thu, 20 Oct 2016 14:14:07 +0000 (15:14 +0100)]
include/fs_types: fix crash in inodeno_t encode

Passing by value tries to copy from a null and segfaults.

Fixes: http://tracker.ceph.com/issues/17636
Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11055 from gcharot/ceph-lazy
Loic Dachary [Thu, 20 Oct 2016 14:21:34 +0000 (16:21 +0200)]
Merge pull request #11055 from gcharot/ceph-lazy

Adding ceph-lazy tool

Reviewed-by: Sébastien Han <han.sebastien@gmail.com>
8 years agoMerge pull request #8316 from dx9/wip-ceph-detect-init
Loic Dachary [Thu, 20 Oct 2016 11:02:44 +0000 (13:02 +0200)]
Merge pull request #8316 from dx9/wip-ceph-detect-init

ceph_detect_init: add support for Alpine

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agomds: add debug assertion for issue #17636 11576/head
Yan, Zheng [Thu, 20 Oct 2016 09:42:08 +0000 (17:42 +0800)]
mds: add debug assertion for issue #17636

Signed-off-by: Yan, Zheng <zyan@redhat.com>
8 years agoMerge pull request #11520 from dillaman/wip-17590
Venky Shankar [Thu, 20 Oct 2016 09:26:50 +0000 (14:56 +0530)]
Merge pull request #11520 from dillaman/wip-17590

journal: do not prematurely flag object recorder as closed

8 years agoMerge pull request #11480 from dillaman/wip-17566
Kefu Chai [Thu, 20 Oct 2016 09:13:15 +0000 (17:13 +0800)]
Merge pull request #11480 from dillaman/wip-17566

test: TestJournalReplay test cases need to wait for event commit

Reviewed-by: Venky Shankar <vshankar@redhat.com>
8 years agotest/encoding: do not include unused headers 11575/head
Kefu Chai [Thu, 20 Oct 2016 08:51:16 +0000 (16:51 +0800)]
test/encoding: do not include unused headers

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