Gregory Farnum
d763555233
Merge pull request #6301 from dx9/wip-12406-ditch-loff_t-for-off_t
...
libcephfs: Improve portability by replacing loff_t type usage with off_t
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-10-20 13:44:58 -07:00
David Zafman
6e002c6549
Merge pull request #6196 from guangyy/wip-12754
...
osd: auto repair EC pool
Reviewed-by: David Zafman <dzafman@redhat.com>
2015-10-20 11:11:00 -07:00
Zhiqiang Wang
597c43ea39
tracing: add tracepoints for cache pin/unpin
...
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:36:10 -04:00
Zhiqiang Wang
478389924b
osd: return ENOENT when object doesn't exist for cache pin/unpin
...
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:36:09 -04:00
Zhiqiang Wang
59d0de7c54
test/tier: add test for cache_pin
...
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:36:09 -04:00
Zhiqiang Wang
36b2d3d7bc
test/tier: test flush/evict on pinned object
...
Should return -EINVAL.
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:36:09 -04:00
Zhiqiang Wang
c18421819c
osd/ReplicatedPG: reject flush/evict ops on pinned objects
...
Return with -EINVAL.
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:36:09 -04:00
Zhiqiang Wang
c502ea1086
librados: add RADOS C interfaces for pin/unpin object
...
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:36:09 -04:00
Zhiqiang Wang
a07d4c95b6
osd: only allow pin/unpin op on the cache tier
...
Reject the op when the pin/unpin op is not on the cache tier.
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:36:09 -04:00
Zhiqiang Wang
0643845665
osd: add num_objects_pinned in object_stat_sum_t
...
To track the number of objects pinned in a PG.
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:36:09 -04:00
Zhiqiang Wang
f824c937e6
osd/ReplicatePG: skip flush/evict pinned objects
...
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:34:50 -04:00
Zhiqiang Wang
5cd10e431d
osd: force promotion when pin an object in cache tier
...
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:34:50 -04:00
Zhiqiang Wang
af8d6ec86b
osd: add support of pin/unpin objects in cache tier
...
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:34:49 -04:00
Zhiqiang Wang
28b7205216
rados: add the support of pin/unpin object in cache tier
...
Adding two new APIs in librados: cache_pin_object and cache_unpin_object
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:34:49 -04:00
Sage Weil
29fdadc4e6
Merge pull request #6174 from liewegas/wip-13345
...
fix MOSDOp encoding
Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-10-20 10:33:25 -04:00
Sage Weil
0278f5f725
doc/release-notes: drop 0.94.4 plaintext
...
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-19 17:31:04 -04:00
Sage Weil
5f8ba743ea
doc/releases: fix 0.94.4 link
...
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-19 17:29:01 -04:00
Sage Weil
49d3367fde
doc/release-notes: final v0.94.4 notes
...
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-19 17:05:31 -04:00
Sage Weil
993f5d437f
Merge pull request #6238 from dachary/wip-release-notes
...
release-notes: draft v0.94.4 release notes
2015-10-19 17:03:15 -04:00
John Wilkins
b0a819530f
Merge pull request #6297 from ritz303/wip-doc-13502
...
doc: Renamed the "Create a Ceph User" section and added verbage about…
Reviewed-by: jowilkin@redhat.com
2015-10-19 09:42:59 -07:00
Loic Dachary
d8a320869f
Merge pull request #6311 from liewegas/wip-rocksdb
...
rocksdb: build with PORTABLE=1
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-10-19 16:21:09 +02:00
Sage Weil
b22690e7d6
os/Makefile: build rocksdb with PORTABLE=1
...
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-19 10:15:38 -04:00
yangruifeng
c7f75b8f7c
mon: should not set isvalid = true when cephx_verify_authorizer return false
...
Fixes : #13525
Signed-off-by: Ruifeng Yang <yangruifeng.09209@h3c.com>
2015-10-19 08:54:18 -04:00
Adam Kupczyk
91497e4633
Speed optimizations. Merged 3 writes into 1.
...
Got rid of std::string construction.
More unification on syslog,stderr,fd.
Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
2015-10-19 14:05:20 +02:00
John Spray
d4a4e442d4
Merge pull request #6282 from dx9/wip-12406-client-flock
...
client: sys/file.h includes for flock operations
Reviewed-by: John Spray <john.spray@redhat.com>
2015-10-19 11:45:53 +01:00
Jianpeng Ma
f2a234599b
osd: remove the useless code.
...
For get_object_context with can_create is true, we already check
obc->ssc. So don't need other handle
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2015-10-19 14:44:45 +08:00
Jianpeng Ma
92454c2cce
osd: optimize get_object_context.
...
If soid didn't exist and soid is head or snapdir. In
get_snapset_context we can remove the useless objects_get_attr(SS_ATTR).
It mainly for create a new object.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2015-10-19 14:44:45 +08:00
John Coyle
d6803b8416
drop envz.h includes
...
Signed-off-by: John Coyle <dx9err@gmail.com>
2015-10-18 21:14:30 -04:00
Sage Weil
0ed9088874
Merge pull request #6216 from dx9/wip-12406-alpine-prefixed-typeof
...
compat: use prefixed typeof extension
Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-18 21:12:53 -04:00
Sage Weil
ba5100df6e
Merge pull request #6279 from branch-predictor/bp-reorder-pglog-fields
...
osd/PGLog.h: reorder bool fields in PGLog struct
Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-18 21:08:05 -04:00
John Coyle
5e811407be
client: sys/file.h includes for flock operations
...
Signed-off-by: John Coyle <dx9err@gmail.com>
2015-10-18 21:06:59 -04:00
Sage Weil
dc4a69b5ed
Merge pull request #6288 from dx9/wip-12406-file-offset-check
...
libcephfs: only check file offset on glibc platforms
Reviewed-by: John Spray <john.spray@redhat.com>
2015-10-18 21:05:46 -04:00
Sage Weil
58a7d66606
Merge pull request #6294 from dx9/wip-12406-rgw_main-compat
...
rgw/rgw_main: Added compat header for TEMP_FAILURE_RETRY
Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-18 21:04:51 -04:00
John Coyle
e138e78574
common/MemoryModel: Alpine is a linux variant but does not implement mallinfo(). Added explicit feature check.
...
Signed-off-by: John Coyle <dx9err@gmail.com>
2015-10-18 20:48:38 -04:00
John Coyle
c40754bdb5
compat: use prefixed typeof to support stricter environments
...
Signed-off-by: John Coyle <dx9err@gmail.com>
2015-10-18 15:27:15 -04:00
John Coyle
4f7bcabca7
assert: __STRING is not defined by musl libc. Define __STRING when it is missing.
...
Signed-off-by: John Coyle <dx9err@gmail.com>
2015-10-18 15:16:47 -04:00
John Coyle
1ff3870471
libcephfs: Improve portability by replacing loff_t type usage with off_t. 64-bit behavior on glibc is enforced with __USE_FILE_OFFSET64 compiler error.
...
Signed-off-by: John Coyle <dx9err@gmail.com>
2015-10-18 14:37:53 -04:00
Sage Weil
08b381e2fc
Merge pull request #5219 from ceph/wip-12315-libs-compat-conditional
...
ceph.spec.in: fix libs-compat / devel-compat conditional
Reviewed-by: Nathan Cutler <ncutler@suse.com>
2015-10-18 14:34:47 -04:00
Sage Weil
f771d4e186
Merge pull request #5917 from caibo2014/fix-tool-makefile
...
tools:remove duplicate references
Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-18 14:33:32 -04:00
Sage Weil
54745c4c95
Merge pull request #6290 from ceph/wip-rocksdb
...
rocksdb: use native rocksdb makefile (and our autotools)
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-10-18 08:36:21 -04:00
Sage Weil
abde0343ef
rocksdb: 4.1
...
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-17 15:56:18 -04:00
Sage Weil
ba0d2c333d
rocksdb: build rocksdb with its own Makefile
...
This lets us track upstream without mantaining our own autotools fork.
Move back to rocksdb vanilla 3.11.2 (without our autotools patches).
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-17 15:56:18 -04:00
Sage Weil
c1e44293d5
Makefile: link libos.a statically (no .la)
...
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-17 15:55:30 -04:00
Sage Weil
e8614f8978
Makefile: link mon statically (not .la)
...
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-17 15:39:03 -04:00
Sage Weil
f86fbdb735
Makefile: make libosd.a static (not .la)
...
We don't dynamically link the osd.
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-17 15:39:03 -04:00
Sage Weil
e10301b518
librados_test_stub: add missing headers
...
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-17 15:39:03 -04:00
yangruifeng
a099270cf1
osd/tools: new and delete ObjectStore::Transaction in a function is not necessary
...
Signed-off-by: Ruifeng Yang <yangruifeng.09209@h3c.com>
2015-10-16 22:01:41 -04:00
Loic Dachary
8b0f59331a
Merge pull request #6272 from zhouyuan/fix_cache_tier_doc
...
doc: fix outdated content in cache tier
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-10-17 00:12:05 +02:00
ritz303
212157a44c
doc: Renamed the "Create a Ceph User" section and added verbage about the "ceph" user
...
Fixes : #13502
Signed-off-by: ritz303 <ritz_303@yahoo.com>
2015-10-16 15:35:43 -05:00
Guang Yang
e82621345e
osd: off-by-one when check deep scrubbing
...
Signed-off-by: Guang Yang <yguang@yahoo-inc.com>
2015-10-16 20:29:49 +00:00