]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Jason Dillaman [Fri, 4 Sep 2015 19:01:38 +0000 (15:01 -0400)]
tests: base gmock class support for librbd
Created mock classes to represent a few central librbd classes
and a basic gmock test fixture for future gmock-based unit tests.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Fri, 4 Sep 2015 18:59:09 +0000 (14:59 -0400)]
librbd: support templating of ImageCtx for async state machines
This will facilitate the creation of unit test mocks to verify
non-librados actions. The templates (by default) will be flagged
as extern to avoid the translation unit bloat.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Tue, 18 Aug 2015 00:51:50 +0000 (20:51 -0400)]
librados_test_stub: add mock class for IoCtx operations
Unit tests can now use gmock to simulate responses from the OSDs
via a mocked librados library.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Mon, 29 Jun 2015 22:38:48 +0000 (18:38 -0400)]
librados_test_stub: add reference counting to pools
This will ensure that in-flight operations can't access freed
pool memory.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Tue, 18 Aug 2015 17:42:45 +0000 (13:42 -0400)]
gtest: enable use of TR1 tuples
Since the TR1 tuple is already in use within the Ceph project,
this flag needs to be enabled to avoid gmock link errors within
gtest.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Sage Weil [Fri, 4 Sep 2015 13:02:24 +0000 (09:02 -0400)]
Merge pull request #5808 from ceph/wip-simplify-logrotate
logrotate.conf: Simplify log files reopening after log rotation
Reviewed-by: Milan Broz <mbroz@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Fri, 4 Sep 2015 11:29:01 +0000 (19:29 +0800)]
Merge pull request #5771 from ceph/wip-fix-i386-build
memstore: fix the build on i386
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Loic Dachary [Fri, 4 Sep 2015 09:19:22 +0000 (11:19 +0200)]
Merge pull request #5804 from tchaikov/wip-fix-build-boost-1.59
mon: fix the build with boost 1.59
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Boris Ranto [Fri, 4 Sep 2015 08:08:35 +0000 (10:08 +0200)]
logrotate.conf: Simplify log files reopening after log rotation
SIGHUP (1) signal makes ceph services reopen its log files so we do not
need to call any init scripts magic, here.
Additionally, the old approach caused problems with rhel-based systems
since it found the service command and tried to reload ceph.service
instead of ceph.target.
This also caused problems with SELinux as processes with context
logrotate_t are not allowed to issue systemctl reload on a process.
This patch is also in sync with other logrotate postrotate scripts which
do exactly the same thing (send SIGHUP to the daemon).
Signed-off-by: Boris Ranto <branto@redhat.com>
Loic Dachary [Fri, 4 Sep 2015 07:18:35 +0000 (09:18 +0200)]
Merge pull request #5802 from liewegas/wip-coverity
a few coverity fixes
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Kefu Chai [Fri, 4 Sep 2015 02:37:26 +0000 (10:37 +0800)]
mon: fix the build with boost 1.59
cmd_vartype is a
boost::variant<std::string, bool, int64_t, double,
std::vector<std::string>>, so we can not get a
int8_t from it.
Fixes: #12922
Signed-off-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Fri, 4 Sep 2015 02:01:19 +0000 (22:01 -0400)]
osd/ReplicatedPG: ProxyWriteOp::reqid should not be a ref
CID
1322778 (#1 of 1): Pointer to local outside scope (RETURN_LOCAL)
1. escape_local_addr: Returning, through this->reqid, the address of stack variable _reqid.
2. return: Returning here.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 4 Sep 2015 01:59:00 +0000 (21:59 -0400)]
osd/osd_types: init coll_t::removal_seq in all ctors
CID
1322784 (#1 of 1): Uninitialized scalar variable (UNINIT)
2. uninit_use_in_call: Using uninitialized value coll.removal_seq when calling coll_t. [show details]
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 4 Sep 2015 01:57:56 +0000 (21:57 -0400)]
test_cls_numops: fix iterator use
CID
1322828 (#1 of 1): Wrapper object use after free (WRAPPER_ESCAPE)
28. use_after_free: Using invalidated internal representation of local it.
CID
1322827 (#1 of 1): Wrapper object use after free (WRAPPER_ESCAPE)
25. use_after_free: Using invalidated internal representation of local it.
CID
1322826 (#1 of 1): Wrapper object use after free (WRAPPER_ESCAPE)
31. use_after_free: Using invalidated internal representation of local it.
CID
1322825 (#1 of 1): Wrapper object use after free (WRAPPER_ESCAPE)
31. use_after_free: Using invalidated internal representation of local it.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 3 Sep 2015 22:41:52 +0000 (18:41 -0400)]
debian: package radosgw-object-expirer in radosgw deb
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 3 Sep 2015 22:41:26 +0000 (18:41 -0400)]
ceph.spec: package new rgw files
/usr/bin/radosgw-object-expirer
/usr/lib64/rados-classes/libcls_timeindex.so
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 3 Sep 2015 19:44:43 +0000 (15:44 -0400)]
Merge pull request #5799 from liewegas/wip-cmake
cmake: fix build (newstore issues)
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Sage Weil [Thu, 3 Sep 2015 19:27:45 +0000 (15:27 -0400)]
CMakeLists.txt: add newstore files
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 3 Sep 2015 19:27:34 +0000 (15:27 -0400)]
.gitignore: ignore build (usually used by cmake)
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 3 Sep 2015 19:15:01 +0000 (15:15 -0400)]
Merge remote-tracking branch 'gh/master' into infernalis
Sage Weil [Thu, 3 Sep 2015 19:13:40 +0000 (15:13 -0400)]
rgw/Makefile.am: ship rgw_object_expirer_core.h
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 3 Sep 2015 19:09:49 +0000 (15:09 -0400)]
Merge pull request #5744 from ceph/wip-12909
cmake: update FUSE_INCLUDE_DIRS to match autoconf
Sage Weil [Thu, 3 Sep 2015 19:08:36 +0000 (15:08 -0400)]
Merge pull request #5610 from ceph/wip-cmake
cmake: make check
Sage Weil [Thu, 3 Sep 2015 19:01:53 +0000 (15:01 -0400)]
ceph.spec: build requires cmake
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 3 Sep 2015 19:01:34 +0000 (15:01 -0400)]
debian/control: build requires cmake
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 3 Sep 2015 18:59:37 +0000 (14:59 -0400)]
debian/control: build-requires libboost-regex-dev
Signed-off-by: Sage Weil <sage@redhat.com>
Yehuda Sadeh [Thu, 3 Sep 2015 17:23:00 +0000 (10:23 -0700)]
Merge pull request #5692 from ceph/wip-rgw-swift-expiration
Wip rgw swift expiration
Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Matt Benjamin [Tue, 25 Aug 2015 17:49:25 +0000 (13:49 -0400)]
cmake: install crushtool to destdir/bin
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
Casey Bodley [Tue, 1 Sep 2015 19:33:31 +0000 (15:33 -0400)]
cmake: add blkid as dependency to libcommon
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Ali Maredia [Tue, 25 Aug 2015 17:49:23 +0000 (13:49 -0400)]
cmake: Changed name of crc32 target to crc32c
Signed-off-by: Ali Maredia <amaredia@redhat.com>
Ali Maredia [Mon, 24 Aug 2015 22:01:09 +0000 (18:01 -0400)]
cmake: Added shell script tests
Signed-off-by: Ali Maredia <amaredia@redhat.com>
Ali Maredia [Mon, 24 Aug 2015 19:32:53 +0000 (15:32 -0400)]
cmake: Fixed HAVE_BETTER_YASM_ELF64 variable
Signed-off-by: Ali Maredia <amaredia@redhat.com>
Ali Maredia [Mon, 24 Aug 2015 18:11:01 +0000 (14:11 -0400)]
cmake: Removed trailing spaces from isa .s files
Signed-off-by: Ali Maredia <amaredia@redhat.com>
Ali Maredia [Fri, 21 Aug 2015 17:33:05 +0000 (13:33 -0400)]
cmake: Uncommented erasure-code/shec conditional
Signed-off-by: Ali Maredia <amaredia@redhat.com>
Ali Maredia [Wed, 19 Aug 2015 20:15:46 +0000 (16:15 -0400)]
cmake: Removed traces of CDS, minor cmake fixes
Signed-off-by: Ali Maredia <amaredia@redhat.com>
Ali Maredia [Tue, 18 Aug 2015 21:03:58 +0000 (17:03 -0400)]
cmake: Fixed rbd_replay build issue
Signed-off-by: Ali Maredia <amaredia@redhat.com>
Ali Maredia [Tue, 18 Aug 2015 19:44:36 +0000 (15:44 -0400)]
cmake: Removed scripts, check_PROGRAMS included
Removed the unittest scripts for the time being.
Built unittests included in check_PROGRAMS target.
Signed-off-by: Ali Maredia <amaredia@redhat.com>
Ali Maredia [Tue, 18 Aug 2015 18:34:54 +0000 (14:34 -0400)]
cmake: Cleaned up syntax for make check targets
Signed-off-by: Ali Maredia <amaredia@redhat.com>
Ali Maredia [Mon, 17 Aug 2015 20:26:47 +0000 (16:26 -0400)]
cmake: check_TESTPROGRAMS tests running
Make check working, accept rocksdb tests. Clean up coming.
Signed-off-by: Ali Maredia <amaredia@redhat.com>
Ali Maredia [Tue, 4 Aug 2015 16:45:52 +0000 (12:45 -0400)]
README.md: Add basic CMake instructions
README.md: Fixed spacing, trimmed cmake section
Signed-off-by: Ali Maredia <amaredia@redhat.com>
Sage Weil [Thu, 3 Sep 2015 15:03:26 +0000 (11:03 -0400)]
Merge pull request #5792 from ceph/wip-vstart-rgw
vstart: add -c argument to radosgw-admin commands
Reviewed-by: Sage Weil <sage@redhat.com>
Casey Bodley [Wed, 2 Sep 2015 14:54:44 +0000 (10:54 -0400)]
vstart: add -c argument to radosgw-admin commands
Signed-off-by: Casey Bodley <cbodley@redhat.com>
John Spray [Thu, 3 Sep 2015 09:35:06 +0000 (10:35 +0100)]
Merge pull request #5590 from majianpeng/mds
Mds: add osdmap epoch for setxattr.
Reviewed-by: John Spray <john.spray@redhat.com>
Yehuda Sadeh [Thu, 3 Sep 2015 00:56:07 +0000 (17:56 -0700)]
rgw: don't copy delete_at attr, unless it's intra region copy
We don't want to keep the expiration value of a copied object, unless
we're doing a copy within the same zone group.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Thu, 27 Aug 2015 23:38:04 +0000 (16:38 -0700)]
rgw: objexp shards index by key
Not by time. This should provide better concurrency.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Thu, 27 Aug 2015 23:02:44 +0000 (16:02 -0700)]
rgw: delete-at and delete-after also on obj put / copy
And potentially later we could use also the S3 api, so it
could work with multipart upload, and POST obj.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Sage Weil [Wed, 2 Sep 2015 15:38:25 +0000 (11:38 -0400)]
Merge pull request #5775 from dachary/wip-do-autogen
tools: fix do_autogen.sh -R
Sage Weil [Wed, 2 Sep 2015 14:15:44 +0000 (10:15 -0400)]
Merge pull request #5712 from yuyuyu101/wip-12801
Mon: Make ceph osd metadata support dump all osds
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Loic Dachary [Wed, 2 Sep 2015 14:00:10 +0000 (16:00 +0200)]
tools: fix do_autogen.sh -R
The R letter was missing from the getopts flags. Also sort the flags
alphabetically to make it easier to spot that kind of lossage.
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Kefu Chai [Wed, 2 Sep 2015 13:01:57 +0000 (21:01 +0800)]
rocksdb: fix 32-bit build
Signed-off-by: Kefu Chai <kchai@redhat.com>
Loic Dachary [Wed, 2 Sep 2015 10:05:52 +0000 (12:05 +0200)]
Merge pull request #5752 from wonzhq/doc-write-recency
doc: add the doc for min_write_recency_for_promote
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Kefu Chai [Wed, 2 Sep 2015 09:20:36 +0000 (17:20 +0800)]
memstore: fix the build on i386
on i386, uint64 is `unsigned long long`, while size_t is `unsigned int`.
std::min(uint64, size_t) can not be resolved.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Yan, Zheng [Wed, 2 Sep 2015 06:38:30 +0000 (14:38 +0800)]
Merge pull request #5739 from ceph/wip-12776
mds: fix shutdown while in standby
Zhiqiang Wang [Wed, 2 Sep 2015 06:00:40 +0000 (14:00 +0800)]
doc: add the doc for min_write_recency_for_promote
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
Loic Dachary [Wed, 2 Sep 2015 05:19:19 +0000 (07:19 +0200)]
Merge pull request #5736 from tianshan/wip-12864
rados: make 'rados bench' support json format output
Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Loic Dachary [Wed, 2 Sep 2015 05:16:48 +0000 (07:16 +0200)]
Merge pull request #5748 from liewegas/wip-warnings
fix newstore warning
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Sage Weil [Wed, 2 Sep 2015 01:43:04 +0000 (21:43 -0400)]
ceph-osd-prestart.sh: fix osd data dir ownership check
Signed-off-by: Sage Weil <sage@redhat.com>
Haomai Wang [Wed, 2 Sep 2015 01:34:32 +0000 (09:34 +0800)]
Merge pull request #5749 from liewegas/wip-async-ms
msg/async: log tx/rx at level 1
Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
Sage Weil [Wed, 2 Sep 2015 01:15:20 +0000 (21:15 -0400)]
vstart.sh: enable all experimental features for vstart
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 2 Sep 2015 01:15:07 +0000 (21:15 -0400)]
ms/async: log message tx/rx at level 1
Signed-off-by: Sage Weil <sage@redhat.com>
Loic Dachary [Wed, 2 Sep 2015 00:11:20 +0000 (02:11 +0200)]
Merge pull request #5722 from cxwshawn/vs-fix
vstart.sh: add --mon_num --osd_num --mds_num --rgw_port option
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Loic Dachary [Wed, 2 Sep 2015 00:05:27 +0000 (02:05 +0200)]
Merge pull request #5693 from tchaikov/wip-12730
common/SubProcess: silence compiler warnings
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Loic Dachary [Tue, 1 Sep 2015 23:56:01 +0000 (01:56 +0200)]
Merge pull request #5643 from dreamhost/wip-make-check-makeopt
make-check: support MAKEOPTS overrides.
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Loic Dachary [Tue, 1 Sep 2015 23:03:14 +0000 (01:03 +0200)]
Merge pull request #5299 from hjwsm1989/pgmonitor-const
mon: added const to dump_* functions in PGMonitor
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Loic Dachary [Tue, 1 Sep 2015 22:51:58 +0000 (00:51 +0200)]
Merge pull request #5156 from rubenk/fix-indentation
Fix indentation
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Loic Dachary [Tue, 1 Sep 2015 22:49:23 +0000 (00:49 +0200)]
Merge pull request #5275 from tchaikov/wip-12287
pybind/ceph_argparse: do not choke on non-ascii prefix
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Loic Dachary [Tue, 1 Sep 2015 21:57:53 +0000 (23:57 +0200)]
Merge pull request #5702 from Sandy4999/wip-doc-sandy
doc:radosgw: correct typos of the command removing a subuser
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Sage Weil [Tue, 1 Sep 2015 20:11:21 +0000 (16:11 -0400)]
Merge pull request #5747 from ceph/wip-user
fix ceph-disk
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Loic Dachary [Tue, 1 Sep 2015 19:15:21 +0000 (21:15 +0200)]
Merge pull request #5742 from dachary/wip-user
tests: ceph-disk: dmcrypt simplification
Reviewed-by: Sage Weil <sage@redhat.com>
Loic Dachary [Tue, 1 Sep 2015 19:04:38 +0000 (21:04 +0200)]
Merge pull request #5746 from ceph/wip-fix-doc-build
doc: fix the code-block in ruby.rst
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Kefu Chai [Tue, 1 Sep 2015 17:41:55 +0000 (01:41 +0800)]
doc: fix the code-block in ruby.rst
* and add the link to library homepage in the section titles
Signed-off-by: Kefu Chai <kchai@redhat.com>
Casey Bodley [Tue, 1 Sep 2015 15:35:42 +0000 (11:35 -0400)]
cmake: update FUSE_INCLUDE_DIRS to match autoconf
client/fuse_ll.cc is now including <fuse.h> and <fuse_lowlevel.h>
instead of <fuse/fuse.h> and <fuse/fuse_lowlevel.h>, so we need to add
the fuse directory to the FUSE_INCLUDE_DIRS variable
using find_path() with just fuse.h was finding a /usr/include/fuse.h
instead of the one in /usr/include/fuse/. looking for fuse_common.h and
fuse_lowlevel.h first causes it to generate the correct
FUSE_INCLUDE_DIRS=/usr/include/fuse
Fixes: #12909
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Sage Weil [Tue, 1 Sep 2015 17:59:40 +0000 (13:59 -0400)]
os/newstore: fix swarning
os/newstore/NewStore.cc: In member function 'int NewStore::_zero(NewStore::TransContext*, NewStore::CollectionRef&, const ghobject_t&, uint64_t, size_t)':
os/newstore/NewStore.cc:3693:32: warning: ignoring return value of 'int ftruncate(int, __off64_t)', declared with attribute warn_unused_result [-Wunused-result]
::ftruncate(fd, f.length);
^
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 1 Sep 2015 17:48:06 +0000 (13:48 -0400)]
Merge pull request #5578 from ceph/wip-newstore
osd: newstore (experimental)
Sage Weil [Tue, 1 Sep 2015 17:14:03 +0000 (13:14 -0400)]
ceph_test_keyvaluedb: add simple commit latency benchmark
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 1 Sep 2015 17:13:47 +0000 (13:13 -0400)]
os/newstore: update todo
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 27 Aug 2015 18:21:23 +0000 (14:21 -0400)]
do_autogen.sh: build static rocksdb by default
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 27 Aug 2015 15:45:58 +0000 (11:45 -0400)]
rocksdb: update alt dist rule
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 26 Aug 2015 19:41:50 +0000 (15:41 -0400)]
ceph_test_objectstore: make OMapIterator test work with FileStore
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 1 Sep 2015 17:22:02 +0000 (13:22 -0400)]
ceph_test_objectstore: enable newstore tests
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 26 Aug 2015 18:57:28 +0000 (14:57 -0400)]
rocksdb: update to 3.11.2
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 26 Aug 2015 18:54:00 +0000 (14:54 -0400)]
os/RocksDBStore: make other rmkey match
No need for Slice() here; it can take a string.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 26 Aug 2015 18:52:56 +0000 (14:52 -0400)]
os/RocksDBStore: fix rmkey()
This took way too long to debug!
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 26 Aug 2015 17:55:45 +0000 (13:55 -0400)]
ceph_test_keyvaluedb: some simple KeyValueDB unit tests
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 24 Aug 2015 21:59:34 +0000 (17:59 -0400)]
os/newstore: fix end bound on collection_list
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sat, 22 Aug 2015 14:33:40 +0000 (10:33 -0400)]
os/newstore: flush object before doing omap reads
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 18 Aug 2015 21:22:32 +0000 (17:22 -0400)]
os/newstore: add 'newstore backend options' to pass options to e.g. rocksdb
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 18 Aug 2015 19:33:39 +0000 (15:33 -0400)]
os/newstore: change escaping chars
# is lowest besides space and !, except for " (which would be too
confusing).
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 18 Aug 2015 19:09:21 +0000 (15:09 -0400)]
os/newstore: trim overlay when zeroing extent
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 18 Aug 2015 19:08:55 +0000 (15:08 -0400)]
os/newstore: tolerate null pnext to collection_list()
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 18 Aug 2015 18:57:47 +0000 (14:57 -0400)]
os/newstore: fix collection range for temp objects
Signed-off-by: Sage Weil <sage@redhat.com>
Xiaoxi Chen [Thu, 7 May 2015 07:41:20 +0000 (15:41 +0800)]
os/newstore: Implement fiemap
For simplicity we ignore holes inside an fragment now.
Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
Sage Weil [Mon, 4 May 2015 18:05:27 +0000 (11:05 -0700)]
os/newstore: make sync/async submit_transaction optional
It seems doing this synchronously may be better for SSDs?
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sat, 2 May 2015 23:29:24 +0000 (16:29 -0700)]
os/newstore: renamed TransContext::fds -> sync_items
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sat, 2 May 2015 00:22:57 +0000 (17:22 -0700)]
os/newstore: queue kv transactions in kv_sync_thread
It appears that db->submit_transaction() will block if there is a sync
commit that is in progress instead of simply queueing the new txn for
later. To work around this, submit these to the backend in the
kv_sync_thread prior to the synchronous submit_transaction_sync().
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sat, 2 May 2015 00:21:23 +0000 (17:21 -0700)]
os/newstore: process multiple aio completions at a time
This isn't affecting things for a slow disk, but it will matter for faster
backends.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 29 Apr 2015 22:00:46 +0000 (15:00 -0700)]
os/newstore: clean up kv commit debug output
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 29 Apr 2015 21:51:00 +0000 (14:51 -0700)]
os/newstore: only ftruncate if i_size is incorrect
Even a no-op ftruncate can block in the kernel. Prior to this change I
could frequently see ftruncate wait for an aio completion on the same
file.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 29 Apr 2015 20:57:40 +0000 (13:57 -0700)]
Revert "os/newstore: avoid sync append for small ios"
This reverts commit
69baab2f7eaca7688ce1d45802a82fc3539cd906 .
This is slower. :(
Sage Weil [Wed, 29 Apr 2015 18:52:55 +0000 (11:52 -0700)]
os/newstore: avoid sync append for small ios
An append is expensive in terms of latency (write, fdatasync, kv commit),
while a wal write is just the kv commit and the write and fdatasync are
async. For small IOs doing the wal may improve performance.
Signed-off-by: Sage Weil <sage@redhat.com>