Kefu Chai
8c2bb7e5c6
cmake: add Find{dpdk,pciaccess}.cmake
...
to ready the SPDK support
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-02-04 14:03:21 +08:00
Kefu Chai
ff56154620
NVMEDevice: fix the build error with latest spdk
...
* include spdk headers in source file
* declare const string with "const" specifier
* pass flag to nvme_ns_cmd_{write,read}()
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-02-04 14:03:21 +08:00
Loic Dachary
b04e17687f
Merge pull request #6268 from dachary/wip-13453-recovery-counters
...
recovery counters
Reviewed-by: Samuel Just <sjust@redhat.com>
2016-02-04 11:16:35 +07:00
Ken Dreyer
ec162f068b
doc: add orphans commands to radosgw-admin(8)
...
The --help text was added in 105a76bf54
.
Add the corresponding entries to the man page.
Fixes : #14637
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2016-02-03 19:53:25 -07:00
Sage Weil
c77e8fd6f1
config: set default bluestore wal size to 96 MB
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-03 21:43:50 -05:00
Sage Weil
316810d7e7
os/bluestore: change block file mkfs behavior
...
Previously, if path was set, we'd make a symlink. Otherwise, if
size was set, we'd create a file and resize it accordingly. This
means that setting the size means we create the block "device"
files, which is only useful for debugging, and we want to set a
size that can be used by ceph-disk when creating partitions.
Instead, if path is set, make a symlink. Then/also, if size is
set, and the file/symlink points to a regular file, and that
regular file is 0 bytes, then resize it. This way, vstart.sh
(or a dev) can just touch the file and then mkfs will size it up.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-03 21:43:50 -05:00
Samuel Just
31649e5c4f
test/osd/: rework ceph_test_rados buffer generation and verification
...
The previous implementation was staggeringly inefficient.
Signed-off-by: Samuel Just <sjust@redhat.com>
2016-02-03 13:12:01 -08:00
Samuel Just
67b6fac61c
ceph_test_rados: switch to std::minstd_rand0
...
Signed-off-by: Samuel Just <sjust@redhat.com>
2016-02-03 13:11:22 -08:00
Sage Weil
abe31b1a97
msg/simple: fix warning
...
msg/simple/Pipe.cc: In member function 'void Pipe::writer()':
msg/simple/Pipe.cc:1721:26: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
if(::write(sd, &tag, 1));
^
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-03 15:16:25 -05:00
Sage Weil
15c099879c
os/bluestore/KernelDevice: crash even when there is no io
...
If we set bdev_inject_crash, ensure we crash even if the device is
idle.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-03 15:16:25 -05:00
Sage Weil
b3903b8c82
os/bluestore/KernelDevice: make flush delay on inject crash tunable
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-03 15:16:25 -05:00
Sage Weil
dbf697921e
os/bluestore/BlueStore: tweak whitespace in _txc_finalize
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-03 15:16:25 -05:00
Sage Weil
96f23eb212
os/bluestore/BlueStore: fix wal tail block padding on zero
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-03 15:16:25 -05:00
Sage Weil
9a6e6619f2
os/bluestore/BlueStore: load OnodeRef in _txc_add_transaction
...
Get OnodeRef ready in the caller, and keep it in a vector so that it
can be reused for any subsequent operations in the transaction.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-03 15:16:24 -05:00
Sage Weil
dd6fdc7cc6
os/bluestore/BlueStore: dump txn in _txc_add_transaction at high debug
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-03 15:16:24 -05:00
Sage Weil
f1bf983e43
os/bluestore/BlueStore: fix wal tail block padding
...
If the wal write starts partway into the tail block, we need to allocate
less than a full block.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-03 15:16:24 -05:00
Sage Weil
8eac9c6b68
os/bluestore/BlueStore: wr lock collection in _txc_add_transaction
...
Do this in the caller to simplify the callees slightly.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-03 15:16:24 -05:00
Samuel Just
4453b46205
Merge pull request #7507 from tchaikov/wip-cmake
...
cmake: add KernelDevice.cc to libos_srcs
Reviewed-by: Samuel Just <sjust@redhat.com>
2016-02-03 10:40:11 -08:00
Kefu Chai
82637be7e5
cmake: add KernelDevice.cc to libos_srcs
...
which fixes the build
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-02-04 01:28:21 +08:00
changtao
457f023d5c
CMake: For CMake version <= 2.8.11, use LINK_{PRIVATE,PUBLIC} instead of PRIVATE,PUBLIC for backward compatibility
...
Signed-off-by: Tao Chang <changtao@hihuron.com>
2016-02-04 00:16:43 +08:00
Sage Weil
2aeadc9acf
Merge remote-tracking branch 'gh/jewel'
2016-02-03 09:46:47 -05:00
Sage Weil
cc2ce6ad1a
Merge branch 'wip-rados-bench'
2016-02-03 09:46:12 -05:00
Gu Zhongyan
669b932934
rados: Add units to rados bench output
...
Fixes : #12248
Signed-off-by: Gu Zhongyan <guzhongyan@360.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2016-02-03 09:45:55 -05:00
Sage Weil
bf77308416
Merge pull request #7386 from liewegas/wip-features
...
osd: skip redirect encoding if we can
Reviewed-by: Sage Weil <sage@redhat.com>
2016-02-03 09:44:28 -05:00
xiexingguo
06af9f09b5
os/kstore: insert new onode to the front position of onode LRU
...
See caed88264d
for detail information.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-03 22:41:49 +08:00
Sage Weil
e478a4f2a7
Merge branch 'weighted-priority-queue' of git://github.com/rldleblanc/ceph
...
Reviewed-by: Samuel Just <sjust@redhat.com>
2016-02-03 08:53:22 -05:00
Sage Weil
9a80477432
Merge branch 'gelf-logging-backend' of git://github.com/irq0/ceph
...
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-02-03 08:48:26 -05:00
Sage Weil
e85ffacb28
scripts/run-coverity: fix upload process
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-03 08:47:57 -05:00
Sage Weil
2e6db00dcb
Merge pull request #7357 from zhengbinh3c/master
...
osd: fix memory leak in ReplicatedPG.cc error path
Reviewed-by: Sage Weil <sage@redhat.com>
2016-02-03 08:52:02 -05:00
Sage Weil
178c52acf2
Merge pull request #7362 from xiexingguo/xxg-wip-fixbs
...
osd: BlueStore: fix fsck and blockdevice read-relevant issue
Reviewed-by: Sage Weil <sage@redhat.com>
2016-02-03 08:50:46 -05:00
Sage Weil
680a999f42
Merge pull request #7468 from liewegas/wip-test-fuse
...
qa/workunits/objectstore/test_fuse.sh: fix root check
2016-02-03 08:49:37 -05:00
Sage Weil
6c9a35b22a
Merge pull request #7476 from tchaikov/wip-include-expat-in-source
...
rgw: do not include "expat.h" in header file
Reviewed-by: Sage Weil <sage@redhat.com>
2016-02-03 08:49:28 -05:00
Sage Weil
a76755c427
Merge pull request #7479 from roidayan/fix_xio_compilation
...
msg/xio: fix compilation
2016-02-03 08:48:54 -05:00
Haomai Wang
41c3dc2e73
test_bufferlist: add move tests for bufferlist
...
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-03 16:58:06 +08:00
xie xingguo
573a2d956a
bluestore/NVMEDevice: remove unused local variables
...
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-03 16:57:00 +08:00
xie xingguo
83ca83029b
bluestore/NVMEDevice: fix fd leak
...
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-03 16:18:39 +08:00
xie xingguo
a5714fbe68
bluestore/NVMEDevice: fix wrong remove_device logic
...
It actually will reserve the device to be romoved only and clear others.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-03 15:54:03 +08:00
xie xingguo
06f383733f
bluestore/NVMEDevice: fix compiling error
...
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-03 15:53:56 +08:00
Jianjian Huo
caed88264d
os/bluestore: insert new onode to the front position of onode LRU
...
When new added onode comes, it should go to the front of the LRU,
since it's least recently used.
Signed-off-by: Jianjian Huo <samuel.huo@gmail.com>
2016-02-03 00:19:37 -05:00
xie xingguo
7c86775d87
bluestore/bluefs_types: fix imcomplete output message
...
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-03 12:03:37 +08:00
songbaisen
1c9c49ed81
Crush when get immediate parent quickly reply.
...
Fixes : #14334
Signed-off-by: song baisen <song.baisen@zte.com.cn>
2016-02-03 11:04:22 +08:00
xie xingguo
627535a794
KernelDevice: add aio_log_finish for write
...
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-03 10:54:51 +08:00
xie xingguo
cdbea72002
KernelDevice: remove unused local variables
...
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-03 10:54:51 +08:00
xie xingguo
b675b2eb19
KernelDevice: put a guard for sync read
...
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-03 10:54:51 +08:00
xie xingguo
edf4e2e425
KernelDevice: add error handling for sync_file_range
...
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-03 10:54:43 +08:00
xie xingguo
4d535f099a
KernelDevice: use standard errno for better tracing
...
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-03 10:53:30 +08:00
xie xingguo
f0534bb143
KernelDevice: use local aio config for start/stop logic
...
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-03 10:31:13 +08:00
xie xingguo
6325dea575
BlockDevice: fix result code overflow
...
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-03 10:26:44 +08:00
xie xingguo
3278968423
BlueFS: add a guard for log space allocation during mkfs
...
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-03 09:59:17 +08:00
xie xingguo
881ac7adda
BlueFS: fix race condition
...
Fixes : #14480
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-03 09:59:17 +08:00