Commit Graph

48474 Commits

Author SHA1 Message Date
Kefu Chai
1650324f1a Merge pull request #7451 from wjin/fix
msg/async: fix array boundary

Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-02-02 14:56:12 +08:00
Kefu Chai
636b8f11f8 rgw: do not include "expat.h" in heade file
Building Ceph without the Expat development library currently results in
the following build error:

~/ceph> ./configure --without-fuse --without-tcmalloc --without-radosgw
...
~/ceph> make
...
CXX ceph_dencoder-rgw_dencoder.o
In file included from rgw/rgw_dencoder.cc:6:0:
rgw/rgw_acl_s3.h:9:19: fatal error: expat.h: No such file or directory

The ceph-dencoder binary is built with rgw_dencoder.cc, which includes
rgw_acl_s3.h, which in turn includes expat.h. However, configure.ac
currently only checks for Expat as part of radosgw.

but we don't need expat.h for testing the encoding of rgw structs, so
move "#include <expat.h>" into the source file to avoid this dependency.
and as a side effect, this also speed up the compilation.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-02-02 14:26:51 +08:00
xie xingguo
f5f3282cff BlueStore: fix wrong action scope of enode
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-02 14:22:41 +08:00
Kefu Chai
2991e79f6e Merge pull request #7472 from badone/wip-ceph-disk-typo
ceph-disk: Fix trivial typo

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-02-02 14:11:44 +08:00
xie xingguo
41ff579f5e BlueStore: add error handling for clone
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-02 14:04:17 +08:00
xie xingguo
e10490abc6 BlueStore: add error handling for clone_range
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-02 14:04:17 +08:00
xie xingguo
d1d6014d6f BlueStore: fix wrong decode logic of nid_max
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-02 14:04:17 +08:00
xie xingguo
2d52438622 BlueStore: fix unhandled return code from blockdevice APIs
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-02 14:04:17 +08:00
xie xingguo
9bc0c31613 BlueStore: try to scan as many errors as possible
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-02 14:04:17 +08:00
xie xingguo
3e61e3b0dd BlueStore: fix duplicated counting of errors
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-02 14:04:17 +08:00
xie xingguo
559a81b18b BlueStore: fix enode verification logic
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-02 14:04:17 +08:00
xie xingguo
10bd8addf6 BlueStore: add a guard for collection loading
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-02 14:04:17 +08:00
xie xingguo
f761113abe BlueStore: add a guard for overlay loading
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-02 14:04:17 +08:00
Kefu Chai
3b93bc4764 Merge pull request #6813 from manens/pybind_rados_snapshot_read
pybind: Implementation of Ioctx.set_read to allow read from snapshots

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-02-02 11:26:47 +08:00
Yehuda Sadeh
105a76bf54 rgw-admin: document orphans commands in usage
Fixes: #14516

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-01 16:33:55 -08:00
Brad Hubbard
820a7605fa ceph-disk: Fix trivial typo
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2016-02-02 10:22:00 +10:00
Xinze Chi
3cf29729e4 msg: ignore request_redirect_t encode/decode when we not need
Signed-off-by: Xinze Chi <xinze@xsky.com>
2016-02-01 17:50:48 -05:00
Sage Weil
1179ddc2e3 Merge pull request #7445 from xiexingguo/xxg-wip-mem
osd: memstore: fix blocksize for statfs

Reviewed-by: Sage Weil <sage@redhat.com>
2016-02-01 17:12:53 -05:00
Sage Weil
15ea140b3b qa/workunits/objectstore/test_fuse.sh: fix root check
$EUID not defined everywhere.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-01 15:49:25 -05:00
Sage Weil
eb5db371c4 os/memstore: disable lockdep on Collection::lock
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-01 15:02:38 -05:00
Sage Weil
18d3a39aed os/kstore: disable lockdep on Collection::lock
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-01 15:02:37 -05:00
Sage Weil
fe649a34f6 os/bluestore: disable lockdep on Collection::lock
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-01 15:02:37 -05:00
Sage Weil
08df77a271 os/filestore/CollectionIndex: disable lockdep on access_lock
This overflows the lockdep table when there are too many PGs. This
code is static so I'm not worried about new locking bugs.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-01 15:02:37 -05:00
Sage Weil
622ed5ad17 common/RWLock: alloc lockdep to be disabled
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-01 15:02:37 -05:00
Sage Weil
ada41f469e lockdep: dump lock names if we run out of IDs
..just in case we are doing something silly, like misnaming locks.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-01 15:02:37 -05:00
Sage Weil
300b15d5ad os/bluestore: fix typo (again)
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-01 15:02:20 -05:00
Sage Weil
98586263e0 os/bluestore: fix typo
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-01 14:59:42 -05:00
Josh Durgin
70704837b3 Merge pull request #7400 from yuyuyu101/wip-13938
librbd: Avoid create two threads per image

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-02-01 11:44:42 -08:00
Josh Durgin
f5419676a9 Merge pull request #7409 from dillaman/wip-librbd-watch-notify
tests: improve simulation of watch/notify handling

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-02-01 11:42:27 -08:00
Yehuda Sadeh
da9c39554e Merge pull request #6562 from Aran85/authedpermcheck
rgw: fix the condition of  authenticated user's permit check .
2016-02-01 10:56:14 -08:00
Sage Weil
62906d88f9 osd/PG: fix scrub start object
This was changed in 05d79faa51 but it needs
to be more precise to avoid breaking BlueStore's assertions (that the
start position is within the collection range).

Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-01 13:32:41 -05:00
Kefu Chai
5374e4f40c Merge pull request #7291 from majianpeng/vstart.sh
vstart.sh: If use '-n' delete related source rather than consider '-k'.

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-02-01 23:52:32 +08:00
Igor Fedotov
4d2c0f5034 osd/ECTransaction: Removing unused local
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-02-01 18:34:39 +03:00
Igor Fedotov
ccebf7a37a osd/PGBackend: PGBackend interface cleanup - make some interface methods pure virtual instead of assertion usage.
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-02-01 18:33:43 +03:00
Sage Weil
1dfc8ef869 Merge pull request #7397 from tchaikov/wip-kill-warnings
build: kill warnings

Reviewed-by: Sage Weil <sage@redhat.com>
2016-02-01 10:26:39 -05:00
Haomai Wang
7d02b82210 configure: remove unused lines
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:05:02 +08:00
Haomai Wang
55c99558e7 BlueStore: use special symbol to distinguish backend type
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:02:19 +08:00
Haomai Wang
86cd2f8bdf NVMEDevice: use the only aio thread to process task
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:02:19 +08:00
Haomai Wang
81defd1643 NVMEDevice: add buffer write support
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:02:18 +08:00
Haomai Wang
557206408c BlueStore: add logger to record state transition latency
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:02:18 +08:00
Haomai Wang
dd5c36d9b2 NVMEDevice: add perf counter for queue time
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:01:27 +08:00
Haomai Wang
5497e2fa4e BlueStore: allow nvme driver read from path
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:01:27 +08:00
Haomai Wang
619c08c100 NVMEDevice: no need to detach nvme device
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:01:27 +08:00
Haomai Wang
79f9d1e129 NVMEDevice: add polling time perf counter
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:01:27 +08:00
Haomai Wang
584f8f98a9 NVMEDevice: add flush perf counter calculate
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:01:27 +08:00
Haomai Wang
bb5d9095c1 RocksDB: add block cache size option to RocksDB
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:01:27 +08:00
Haomai Wang
6b637df73f NVMEDevice: let perf counter do early
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:47 +08:00
Haomai Wang
91bf3bb39f NVMEDevice: make flush wait for all write completed
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:47 +08:00
Haomai Wang
b561d448ac NVMEDevice: delay nvme aio thread start in case of logger is null
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:47 +08:00
Haomai Wang
47335108e1 NVMEDevice: let aio_write submit request FIFO
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:46 +08:00