summaryrefslogtreecommitdiffstats
path: root/src/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #9381 from weiqiaomiao/wqm-wip-rgw-alignCasey Bodley2016-06-031-8/+8
|\ | | | | | | | | rgw:fix some indentation errors of "radosgw-admin --help" Reviewed-by: Casey Bodley <cbodley@redhat.com>
| * rgw:fix some indentation errors of "radosgw-admin --help"weiqiaomiao2016-06-031-8/+8
| | | | | | | | Signed-off-by: weiqiaomiao <wei.qiaomiao@zte.com.cn>
* | os/bluestore:Tree based bitmapallocRamesh Chander2016-06-032-157/+204
| | | | | | | | Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
* | Merge pull request #9460 from pritha-srivastava/wip-cmake-vstartCasey Bodley2016-06-021-1/+1
|\ \ | | | | | | | | | | | | cmake: detection scripts use lowercase project name Reviewed-by: Casey Bodley <cbodley@redhat.com>
| * | cmake: detection scripts use lowercase project namePritha2016-06-021-1/+1
| | | | | | | | | | | | | | | | | | | | | Changing the detection scripts to use the new project name, changed in commit c1a37101ea87a973068f2dc9858487f83ae57f88 (cmake: project name should be "ceph") Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
* | | Merge pull request #9449 from ifed01/wip-bluestore-crc32Sage Weil2016-06-021-0/+38
|\ \ \ | | | | | | | | | | | | | | | | os/bluestore: Some improvement for crc32c calculations Reviewed-by: Sage Weil <sage@redhat.com>
| * | | common/bufferlist: Adds test cases for bufferlist::iterator::crc32cIgor Fedotov2016-06-021-0/+36
| | | | | | | | | | | | | | | | Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
| * | | common/bufferlist: Fixes lack of offset increment in get_ptr_and_advanceIgor Fedotov2016-06-021-0/+2
| |/ / | | | | | | | | | Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
* / / test/osd/TestRados.cc: silence a compiler warningKefu Chai2016-06-021-0/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | fix following warning by returning `nullptr` after an assert(0). ``` ceph/src/test/osd/TestRados.cc: In member function ‘TestOp* WeightedTestGenerator::gen_op(RadosTestContext&, TestOpType)’: ceph/src/test/osd/TestRados.cc:241:3: warning: control reaches end of non-void function [-Wreturn-type] } ``` Signed-off-by: Kefu Chai <kchai@redhat.com>
* | cmake: rbd_mirror not linking rbd_test_mockAli Maredia2016-06-023-9/+13
| | | | | | | | | | | | | | | | Added rbd_test_mock lib, also changed name of journal_test to journal_test_mock to mimic automake naming. Signed-off-by: Ali Maredia <amaredia@redhat.com>
* | Merge pull request #9385 from ceph/wip-cmake-kefuMatt Benjamin2016-06-016-5/+32
|\ \ | | | | | | | | | | | | cmake: more fixes fixes make install workflow
| * | cmake: libradosstriper's OUTPUT_NAME should be radosstriperKefu Chai2016-06-011-1/+1
| | | | | | | | | | | | | | | | | | | | | and s/libradosstriper/radosstriper/ otherwise the created .so filename would be liblibradosstriper.so with the default prefix. Signed-off-by: Kefu Chai <kchai@redhat.com>
| * | cmake: install the artifacts the packaging requiresKefu Chai2016-06-015-0/+27
| | | | | | | | | | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
| * | cmake: s/ceph_test_xattr_bench/ceph_xattr_bench/Kefu Chai2016-06-011-4/+4
| | | | | | | | | | | | | | | | | | to match with automake and packager Signed-off-by: Kefu Chai <kchai@redhat.com>
* | | ceph_test_objecstore: Adds a test case for compression stuff verification ↵Igor Fedotov2016-06-011-2/+227
| | | | | | | | | | | | | | | | | | (incomplete) Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
* | | os/bluestore: Enables cow for cloning at bluestore for store testIgor Fedotov2016-06-011-0/+1
| | | | | | | | | | | | Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
* | | ceph_test_objectstore: extends SimpleObjectTest with the case where write ↵Igor Fedotov2016-06-011-0/+51
| | | | | | | | | | | | | | | | | | happens for neighboring csum blocks to verify for potential alignment issue Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
* | | compressor: Extends decompressor interface to be able to provide compressed ↵Igor Fedotov2016-06-013-4/+18
| | | | | | | | | | | | | | | | | | data length. Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
* | | compressor: add a get_type() method to Compressor interfaceSage Weil2016-06-013-9/+5
| | | | | | | | | | | | Signed-off-by: Sage Weil <sage@redhat.com>
* | | os/store_test: Fixes dump_mismatch_bl to avoid assert on lengths mismatch. ↵Igor Fedotov2016-06-011-21/+22
| | | | | | | | | | | | | | | | | | Starts using it for BufferCacheTest Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
* | | ceph_test_objectstore: fix BufferCacheReadTestSage Weil2016-06-011-8/+16
| | | | | | | | | | | | Signed-off-by: Sage Weil <sage@redhat.com>
* | | os/bluestore: Fixes improper length calculation in BufferSpace::read + adds ↵Igor Fedotov2016-06-011-5/+35
| | | | | | | | | | | | | | | | | | simplified test case to highlight an issue for append to existing blob Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
* | | os/bluestore/bluestore_types: blob_t: add tracking for released extentsSage Weil2016-06-011-0/+304
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We reference count which parts of the blob are used (by lextents), but currently we only release our space back to the system when all references go away. That is a problem if the blob is large (say, 4MB), and we, say, truncate off most (but not all) of it. Unfortunately, we can't simply deallocate anything that doesn't have a reference, because the logical refs are on byte boundaries, and allocation happens in larger units (min_alloc_size). A one byte logical punch_hole might be responsible for the release of a larger block of storage. To resolve this, we keep track of which portions of the blob have been released by poisoning the offset in the extents vector. We expect that this vector will be almost always short, so we do not bother with a indexed structure, since iterating a blob offset to determine if it is still allocated is likely faster. Signed-off-by: Sage Weil <sage@redhat.com>
* | | unittest_bluestore_types: benchmark different csum methodsSage Weil2016-06-011-0/+27
| | | | | | | | | | | | | | | | | | crc32c wins on my laptop. Signed-off-by: Sage Weil <sage@redhat.com>
* | | unittest_bluestore_types: run csum tests on all algorithmsSage Weil2016-06-011-31/+40
| | | | | | | | | | | | Signed-off-by: Sage Weil <sage@redhat.com>
* | | os/bluestore/bluestore_types: simpler {calc,verify}_csum methodsSage Weil2016-06-011-0/+41
| | | | | | | | | | | | | | | | | | | | | This keeps the CSUM_* definitions local to blob_t, and avoids passing arguments around. Signed-off-by: Sage Weil <sage@redhat.com>
* | | os/bluestore: Fixes some issues when using Buffer Cache from _do_read and ↵Igor Fedotov2016-06-011-9/+49
| | | | | | | | | | | | | | | | | | improves test coverage Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
* | | test/objectstore: Adds trivial test case to verify buffer cache use in bluestoreIgor Fedotov2016-06-011-0/+63
| | | | | | | | | | | | Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
* | | os/bluestore/bluestore_types: add bluestore_compression_header_tIgor Fedotov2016-06-011-0/+1
| | | | | | | | | | | | Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
* | | compressor: Refactor to allow bufferlist::iterator as an inputIgor Fedotov2016-06-012-1/+6
| | | | | | | | | | | | Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
* | | ceph_test_objectstore: new test SmallBlockWritesSage Weil2016-06-011-0/+109
| | | | | | | | | | | | Signed-off-by: Sage Weil <sage@redhat.com>
* | | ceph_test_objectstore: add BigWriteBigZero testSage Weil2016-06-011-0/+46
| | | | | | | | | | | | Signed-off-by: Sage Weil <sage@redhat.com>
* | | ceph_test_objectstore: expand SimpleObjectTest a bitSage Weil2016-06-011-0/+28
| | | | | | | | | | | | Signed-off-by: Sage Weil <sage@redhat.com>
* | | os/bluestore/bluestore_types: add onode_t::compress_extent_map()Sage Weil2016-06-011-0/+32
| | | | | | | | | | | | Signed-off-by: Sage Weil <sage@redhat.com>
* | | os/bluestore/bluestore_types: add blob_t::has_any_lextentsSage Weil2016-06-011-0/+41
| | | | | | | | | | | | Signed-off-by: Sage Weil <sage@redhat.com>
* | | os/bluestore/bluestore_types: test {find,seek}_lextentsSage Weil2016-06-011-0/+83
| | | | | | | | | | | | Signed-off-by: Sage Weil <sage@redhat.com>
* | | buffer: add buffer::list::iterator::get_ptr_and_advanceSage Weil2016-06-011-0/+21
| | | | | | | | | | | | | | | | | | Efficiently iterate over buffers in a list, via an iterator. Signed-off-by: Sage Weil <sage@redhat.com>
* | | os/bluestore/bluestore_types: extent_ref_map_t::intersectsSage Weil2016-06-011-0/+27
| | | | | | | | | | | | Signed-off-by: Sage Weil <sage@redhat.com>
* | | os/bluestore/bluestore_types: change extent_ref_map_tSage Weil2016-06-011-28/+33
| | | | | | | | | | | | | | | | | | - no more add, or weird add vs get assumptions Signed-off-by: Sage Weil <sage@redhat.com>
* | | os/bluestore/bluestore_types: onode_t::punch_hole()Sage Weil2016-06-011-0/+91
| | | | | | | | | | | | Signed-off-by: Sage Weil <sage@redhat.com>
* | | ceph_test_objectstore: show start and end offsets for buffer mismatchSage Weil2016-06-011-4/+9
| | | | | | | | | | | | Signed-off-by: Sage Weil <sage@redhat.com>
* | | os/bluestore: use pextent_t for releasesSage Weil2016-06-011-1/+1
| | | | | | | | | | | | | | | | | | Trying to remove the old extent_t Signed-off-by: Sage Weil <sage@redhat.com>
* | | os/bluestore: data structure to support compression/checksum verification. ↵Igor Fedotov2016-06-011-0/+3
| | | | | | | | | | | | | | | | | | | | | Read handler prototype implementation. Signed-off-by: Igor Fedotov <ifedotov@mirantis.com> Signed-off-by: Sage Weil <sage@redhat.com>
* | | rbd-mirror: copy snapshot parent image settingsJason Dillaman2016-05-315-13/+139
| | | | | | | | | | | | Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* | | rbd-mirror: add support for cloning images from mirrored parentJason Dillaman2016-05-316-33/+773
| | | | | | | | | | | | | | | Fixes: http://tracker.ceph.com/issues/14937 Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* | | rbd-mirror: helper state machine to open remote/read-only imagesJason Dillaman2016-05-311-0/+25
| | | | | | | | | | | | Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* | | rgw: support size suffixes for --max-size in radosgw-admin commandCasey Bodley2016-05-312-1/+16
|\ \ \ | | | | | | | | | | | | | | | | rgw: support size suffixes for --max-size in radosgw-admin command Reviewed-by: Casey Bodley <cbodley@redhat.com>
| * | | common: add int64_t template for strict_si_cast()Vikhyat Umrao2016-05-261-0/+15
| | | | | | | | | | | | | | | | Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
| * | | rgw: support size suffixes for --max-size inVikhyat Umrao2016-05-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | radosgw-admin command Fixes: http://tracker.ceph.com/issues/16004 Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
* | | | unittest_bluefs: debug bdev, bluefsSage Weil2016-05-311-0/+2
| |/ / |/| | | | | | | | | | | | | | | | | Hopefully this will catch the intermittent segv we are seeing. Signed-off-by: Sage Weil <sage@redhat.com>