Commit Graph

48453 Commits

Author SHA1 Message Date
Haomai Wang
4e85f5ec9b NVMEDevice: fix unknown serial number problem
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:44 +08:00
Haomai Wang
0525aae5f9 NVMEDevice: wrap C header file
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:44 +08:00
Haomai Wang
5aa1c86f96 Makefile: let spdk/dpdk libraries linked in upper layer
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:43 +08:00
Haomai Wang
f911e2bf94 NVMEDevice: add spdk/pci.h
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:43 +08:00
Haomai Wang
bb1adcf406 NVMEDevice: nvme.h use _Static_assert which from c11
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:43 +08:00
Haomai Wang
b899452526 NVMEDevice: let IOContext can use NVMEDevice pointer
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:43 +08:00
Haomai Wang
abb19d6833 NVMEDevice: remove unused variables
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:43 +08:00
Haomai Wang
ba5973f7ff configure.ac: fix spdk external header location
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:43 +08:00
Haomai Wang
fbdcb12cc9 BlueFS: fix comparison warning
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:43 +08:00
Haomai Wang
153660c820 BlockDevice: Add override to explicit
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:43 +08:00
Haomai Wang
e64d16d54e BlockDevice: Fix compile error
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:42 +08:00
Haomai Wang
3a604066e4 NVMEDevice: fix compile error
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:42 +08:00
Haomai Wang
415111ff9e NVMEDevice: use device name instead of path
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:42 +08:00
Haomai Wang
ee4951d05c makefile: add SPDK detect and NVMEDevice to Makefile
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:42 +08:00
Haomai Wang
b771c02dc0 BlueStore: Add BlockDevice ability to create different backend
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:11 +08:00
Haomai Wang
1d9448eeae BlueStore: abostract BlockDevice based KernelDevice and NVMEDevice
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:11 +08:00
Haomai Wang
35576154ae bluestore: rename BlockDevice to KernelDevice matching NVMEDevice
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:11 +08:00
Haomai Wang
e76f716ac2 bluestore: add NVMEDevice backend
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:11 +08:00
Kefu Chai
e9872ad67a civetweb: update submodule to silence a compile warning
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-02-01 14:33:41 +08:00
Kefu Chai
493619a981 common,osd: remove _process(T *t) to silence warnings
* and mark the WorkQueue::_process(T *, TPHandle&) a pure virtual
  method. so we must override it
* and mark all override methods with the "override" specifier.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-02-01 14:33:40 +08:00
Zengran Zhang
3e469f6d33 rgw: fix the condition of authenticated user's permit check
before fix:
put a bucket under one user with authenticated-read permit
> ./s3curl.pl http://myobs.com/mybucket --put --H "x-amz-acl: authenticated-read"
GET the bucket with anonymous user
> curl http://myobs.com/mybucket -X GET

> successed!

after fix:
anonymous cant GET the authenticated-read bucket
other users who authenticated could GET it

Signed-off-by: Zengran Zhang <zhangzengran@h3c.com>
2016-01-31 23:58:58 -05:00
Sage Weil
64fbda8371 Merge pull request #7266 from sahithi-rv/master
common/str_map: cleanup: replaced get_str_map() function overloading by using default parameters for delimiters

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-31 10:03:14 -05:00
Sage Weil
ace46dadb4 Merge pull request #7344 from songbaisen/song8
crush: add safety assert

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-31 10:02:13 -05:00
Sage Weil
159df4294a Merge pull request #7363 from cxwshawn/mon-sync-fix
mon: add mon_config_key prefix when sync full

Fixes: #14577
Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-31 10:01:24 -05:00
Sage Weil
74c87566fd Merge pull request #7383 from liewegas/wip-bluestore
osd: bluestore: some new c++11-isms, a couple reverts
2016-01-31 10:00:10 -05:00
Wei Jin
a37b98a9da Event: fix array boundary
fd should be less than nevent when deleting

Signed-off-by: Wei Jin <wjin.cn@gmail.com>
2016-01-31 18:53:01 +08:00
Kefu Chai
b8bd9cbf00 cmake: fix "jobserver unavailable" warning
use ${MAKE} so the make command can be properly propagated to their
children

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-01-31 16:30:49 +08:00
Bin Zheng
a17ea399dd OSD:memory leak in ReplicatedPG.cc
"return NULL" in "if (p == snapset.clones.end())" can not free the
memory of "*repop"

Signed-off-by: Bin Zheng <zhengbin.08747@h3c.com>
2016-01-31 03:21:44 -05:00
Kefu Chai
f8adf40932 cmake: disable unused-variable warning for rocksdb
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-01-31 12:18:41 +08:00
Kefu Chai
2699c474b2 rgw: fix the signed/unsigned comparison warning
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-01-31 12:18:41 +08:00
Kefu Chai
d50bda5bc3 rados: bench: fix the signed/unsigned comparison warning
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-01-31 12:18:40 +08:00
Kefu Chai
4633e8d982 cmake: remove duplicated HAVE_EXECINFO_H macro
fixes the `"HAVE_EXECINFO_H" redefined` warning

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-01-31 01:12:15 +08:00
Kefu Chai
88a95b7b13 os/*stores: fix hidden warnings
the CollectionHandle variant methods are hidden by the subclasses
who do not override it. so the compiler complains. by adding
"using" statement we expose them again.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-01-31 01:05:40 +08:00
Kefu Chai
72d1984dd4 os/bluestore: fix unsigned/signed comparision warning
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-01-31 01:01:28 +08:00
Sage Weil
d44365bcdd Merge pull request #7014 from efirs/ef_replace_coll_t_by_const_coll_t_ref
osd: reduce CPU usage by replacing coll_t by const coll_t&

Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-30 09:04:21 -05:00
Sage Weil
c9a2c80825 Merge pull request #7333 from xdonghai/xdh1
osd: FileStore: modify the format of colon 

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-30 09:03:56 -05:00
Sage Weil
04ea77b912 Merge pull request #7392 from tianshan/wip-14536
rados: fix race condition in load-gen complete callback

Reviewed-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
2016-01-30 09:03:17 -05:00
Sage Weil
98289735a8 Merge pull request #7395 from xiexingguo/xxg-wip-fuse
os/fusestore: add error handling

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-30 09:02:47 -05:00
Sage Weil
1c9f2bcc6b Merge pull request #7396 from tchaikov/wip-14537
mon: compact full epochs also

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-30 09:00:12 -05:00
Sage Weil
9ad361a320 Merge pull request #7402 from liewegas/wip-rados-bench
rados: make rados bench metadata backward compatible

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-01-30 08:59:55 -05:00
Sage Weil
27c0d2b19d Merge pull request #7418 from renhwsky/renhw-wip-monmapmonitor-cleanup
mon: some cleanup in MonmapMonitor.cc

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
2016-01-30 08:59:37 -05:00
Sage Weil
34ff79f13f Merge pull request #7420 from mikulely/fix-osd-mon-exit-issue
osd, mon: fix exit issue

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-01-30 08:59:01 -05:00
Sage Weil
be74b77e75 Merge pull request #7430 from xiexingguo/xxg-wip-kstore
osd: kstore: fix decode logic and add flush

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-30 08:58:35 -05:00
Sage Weil
5ba0fc7044 Merge pull request #7432 from branch-predictor/bp-fix-read-bench
rados: fix wrong op/object sizes in rand/seq bench

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-30 08:49:33 -05:00
Sage Weil
d6208d71d9 Merge pull request #7436 from liewegas/wip-bash
tests: qa/workunits/objectstore/test_fuse.sh: no bashism
2016-01-30 08:48:45 -05:00
xie xingguo
cdf3c90016 os/memstore: return empty list if offset overflows
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-01-30 17:29:45 +08:00
xie xingguo
7d232d1a9d os/memstore: fix wrong blocksize for statfs
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-01-30 16:59:42 +08:00
Josh Durgin
7d1ede6bb7 Merge pull request #7404 from sahithi-rv/Mutex
rbd_fuse: replaced pthread_mutex*() functions with ceph Mutex wrapper

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-01-29 15:14:57 -08:00
Danny Al-Gaaf
579fbc8d5b add some cppcheck-suppress noExplicitConstructor comments
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-01-29 23:48:59 +01:00
Danny Al-Gaaf
bbf0582342 make ctors with one argument explicit
Use explicit keyword for constructors with one argument to
prevent implicit usage as conversion functions.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-01-29 23:48:58 +01:00