Sage Weil
004ee202fa
osd/PG: drop waiting_on, use waiting_on_whom
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-01-14 10:47:24 -06:00
Sage Weil
ff9fa835da
qa/workunits/rados/test_rados_tool: remove stray |, fix race
...
Fixes: http://tracker.ceph.com/issues/22676
Signed-off-by: Sage Weil <sage@redhat.com>
2018-01-14 10:35:14 -06:00
dongdong tao
b233cbcc20
mds: fix some typo
...
Signed-off-by: dongdong tao <tdd21151186@gmail.com>
2018-01-14 22:19:55 +08:00
Kefu Chai
cfd4712e0a
librbd,librados: do not include stdbool.h in C++ headers
...
stdbool.h is offered to provide C++ keywords for C source file.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-01-14 18:03:38 +08:00
Jason Dillaman
070b87aa58
Merge pull request #12431 from VictorDenisov/snapshot_rename
...
rbd: group snapshot rename
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-01-13 20:48:39 -05:00
Brad Hubbard
d2c0fe9b53
mon/OSDMonitor: Better prepare_command_pool_set E2BIG error message
...
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2018-01-14 09:00:44 +10:00
Adam C. Emerson
1b7f7a05d1
cephfs: Switch MIN/MAX for std::min/max and use intarith templates
...
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2018-01-13 14:05:16 -05:00
Adam C. Emerson
d141634495
rbd: Switch MIN/MAX for std::min/max and use intarith templates
...
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2018-01-13 14:04:53 -05:00
Victor Denisov
838cae45af
rbd: Add group snapshot rename commands
...
Signed-off-by: Victor Denisov <denisovenator@gmail.com>
2018-01-13 14:00:31 -05:00
Victor Denisov
c4f2eb4adb
librbd: Add group snap rename method
...
Signed-off-by: Victor Denisov <denisovenator@gmail.com>
2018-01-13 14:00:30 -05:00
Sage Weil
ea2c99ec87
qa/workunits/rados/test_rados_tool.sh: -x
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-01-13 10:26:24 -06:00
Sage Weil
7907bc00a9
Merge pull request #19913 from adamemerson/wip-minimax-rados
...
rados: Prefer templates to macros
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-01-13 09:56:28 -06:00
Sage Weil
755ea1c054
Merge pull request #19914 from tchaikov/wip-cmake-check-boost-in-src
...
cmake: check version of boost in src/boost
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2018-01-13 09:56:08 -06:00
Sage Weil
f199490bbd
Merge pull request #19926 from batrick/i22527
...
mon: revert mds metadata argument name change
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2018-01-13 09:55:12 -06:00
Mykola Golub
79fbe60d5e
Merge pull request #19903 from dillaman/wip-librbd-op-features
...
librbd: add preliminary support for new operation feature bit
Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-01-13 04:13:49 +02:00
Shinobu Kinjo
97731e3ab0
common: Add min/max of ms_async_op_threads
...
Signed-off-by: Shinobu Kinjo <shinobu@redhat.com>
2018-01-13 10:02:39 +09:00
Yuri Weinstein
a7b97806fc
Merge pull request #19793 from badone/wip-blocking-deep-scrub
...
ceph.in: Add blocking mode for scrub and deep-scrub
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2018-01-12 14:47:30 -08:00
Yuri Weinstein
2b99d31d5e
Merge pull request #19910 from jdurgin/wip-21897
...
config: lower default omap entries recovered at once
Reviewed-by: Sage Weil <sage@redhat.com>
2018-01-12 14:46:26 -08:00
Patrick Donnelly
1f530c0fa8
Merge PR #19894 into master
...
* refs/pull/19894/head:
cmake: link against ceph-common instead of common
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-01-12 14:37:39 -08:00
Patrick Donnelly
653bfcc567
Merge PR #19920 into master
...
* refs/pull/19920/head:
client: fix cap revoke race
client: release revoking Fc after invalidate cache
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-01-12 14:37:32 -08:00
Patrick Donnelly
e592c0210f
Merge PR #19885 into master
...
* refs/pull/19885/head:
qa: increase osd count for ec testing
qa: add missing openstack configs
Reviewed-by: Sage Weil <sage@redhat.com>
2018-01-12 14:37:25 -08:00
Casey Bodley
4f72b20f09
rgw: RGWRados::put_system_obj takes const bufferlist
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-01-12 14:49:21 -05:00
Mykola Golub
de97a3be48
rbd: adjusted "showmapped" JSON and XML formatted output
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-01-12 21:36:00 +02:00
Adam C. Emerson
28d35abf89
rados: Switch MIN/MAX for std::min/max and use intarith templates
...
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2018-01-12 14:32:52 -05:00
Mykola Golub
443a7f5f7c
Merge pull request #19900 from dillaman/wip-rbd-lock-list
...
rbd: adjusted "lock list" JSON and XML formatted output
Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-01-12 21:31:54 +02:00
Casey Bodley
8b80074ccb
rgw: rgw_put_system_obj takes bufferlist
...
all callers were converting from bufferlist to const char*, then
RGWRados::put_system_obj() copied that back into a new bufferlist
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-01-12 14:26:13 -05:00
Casey Bodley
1fcc8e9b09
Merge pull request #19933 from qrGitHub/wip-rgw-useless-line4
...
rgw: drop redundant RGW_OP_STAT_OBJ check
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-01-12 13:17:48 -05:00
Jason Dillaman
619b0c0244
rbd: adjusted "lock list" JSON and XML formatted output
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-12 11:31:07 -05:00
Jason Dillaman
ffdb65374c
librbd: operations should return -EROFS if disabled
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-12 10:46:33 -05:00
Jason Dillaman
fef89753d8
librbd: retrieve the op features on image refresh
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-12 08:14:34 -05:00
Jason Dillaman
209f6fc5a4
librbd: track new operation features within image
...
This will initially be utilized to restrict older clients from
performing operations against an image if (1) it doesn't
support the new feature bit, or (2) doesn't support the specific
enabled op feature.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-12 08:12:58 -05:00
Adam C. Emerson
c06b97b3d7
include: Add templates along side macros in intarith
...
The macros can be removed later.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2018-01-12 01:45:53 -05:00
Zhi Zhang
a72527a650
kv/RocksDB: get index and filter blocks memory usage
...
Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
2018-01-12 14:40:43 +08:00
Bingyin Zhang
c378fe6d48
rgw: drop redundant RGW_OP_STAT_OBJ check
...
Signed-off-by: Bingyin Zhang <zhangbingyin@cloudin.cn>
2018-01-12 14:26:30 +08:00
Adam C. Emerson
98572fba64
denc: Clean up tuples even more
...
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2018-01-12 00:51:11 -05:00
Adam C. Emerson
dcd6d70eef
types: Output of arbitrary std::tuples
...
Again, using ceph::for_each
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2018-01-12 00:51:06 -05:00
Adam C. Emerson
54bc44c056
encoding: Encode/decode of arbitrary tuples
...
Using ceph::for_each to avoid fiddling with indices everywhere.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2018-01-12 00:51:04 -05:00
Adam C. Emerson
abd4c104f8
common: Add ceph::for_each for tuples
...
Expand to pairs, optionals, and variants later.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2018-01-12 00:49:36 -05:00
Adam C. Emerson
b3cd103281
common: Make maybe functions support std::optional
...
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2018-01-12 00:49:34 -05:00
Adam C. Emerson
9412de0c67
denc: Simplify tuple decode/encode
...
Use index_sequence instead of rolling our own support infrastructure.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2018-01-12 00:49:15 -05:00
Adam C. Emerson
3aefaa8131
denc: Fix std::array bound_encode
...
std::arrays are not variable length structures and thus are not
encoded with a length.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2018-01-12 00:49:01 -05:00
myoungwon oh
b6aa9ca674
osd: do not increase num_object if the object has manifest
...
In the case of redirected and chunked object, base tier
has metadata (same as existing object but, size is zero)
so do not need to update num_object
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
2018-01-12 14:39:28 +09:00
myoungwon oh
02c223273d
osd: take write lock when process_copy_chunk_manifest()
...
During promote_object for chunked object,
The object's read lock can be held due to recovery.
So, if the read lock is held, return EAGAIN and
reenqueue original an operation (This op will
invoke promote_object again if needed)
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
2018-01-12 14:39:18 +09:00
myoungwon oh
8bb5ddc00d
osd: fix using invalid value
...
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
2018-01-12 14:39:08 +09:00
myoungwon oh
93e986c064
qa/suites/rados/thrash: add tier_promote op
...
1.add tier_promote op for redirect and chunked cases.
2.rename set-chunk.yaml due to current chunked object
only for the read case.
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
2018-01-12 14:38:57 +09:00
myoungwon oh
14765eace9
src/test: add a test op (TierPromoteOp)
...
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
2018-01-12 14:38:44 +09:00
myoungwon oh
fae84218a0
src/test: add unit tests for tier_promote
...
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
2018-01-12 14:38:33 +09:00
myoungwon oh
05ad951d66
osd: promote_object() for redirect and chunked object
...
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
2018-01-12 14:38:20 +09:00
myoungwon oh
c6945d0361
osd,librados: a rados op to promote the object (redirect, chunked)
...
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
2018-01-12 14:38:11 +09:00
Adam C. Emerson
70487bbc48
denc: Remove unneeded enable_ifs
...
The idiom
```
template<typename U = T>
static enable_if_t<!!sizeof(U) && ... >
```
Exists to force SFINAE dependent on some aspect of T on functions that
are themselves members of a template parameterized on T. Without some
other expression conjoined to it, this construct is just noise.
Also replace the reserve switch with constexpr if.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2018-01-12 00:24:42 -05:00