Commit Graph

43148 Commits

Author SHA1 Message Date
Casey Bodley
51a218c866 autoconf: build as c++11
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2015-08-03 11:16:13 -04:00
Casey Bodley
b2e484d942 cmake: build as c++11
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2015-08-03 11:16:13 -04:00
Kefu Chai
fdf0e030c3 Merge pull request #5422 from ceph/wip-fix-filestore-getattr
tests: fix the ObjectStore/StoreTest.SimpleCloneTest in "ceph_test_objectstore"

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-08-03 22:37:35 +08:00
Yan, Zheng
02590c1d65 Merge pull request #5375 from ceph/wip-config-root-ino
Make UID of new root inos configurable
2015-08-03 21:28:47 +08:00
Orit Wasserman
ef86e29259 Merge pull request #5445 from ceph/wip-12432
Wip 12432
2015-07-31 21:39:04 +02:00
Yehuda Sadeh
b8e28ab9f9 rgw: set http status in civetweb
Need to set the http status in civetweb so that we report it correctly.
Fixes: #12432

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-07-31 11:09:53 -07:00
Yehuda Sadeh
0451f19341 civetweb: update submodule to support setting of http status
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-07-31 11:09:53 -07:00
Yehuda Sadeh
c8653b11a8 Merge pull request #5258 from zhouyuan/rgw_skip_first_chunk
rgw: skip prefetch first chunk if range get falls to shadow objects

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-07-31 13:25:46 -04:00
Ilya Dryomov
3fbcf5e265 doc: krbd supports clones since 3.10
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2015-07-31 19:50:58 +03:00
Loic Dachary
a9cb1b89f9 Merge pull request #5438 from ceph/fix-doc-build
doc: fix the build of placement-groups.rst

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-07-31 12:29:04 +02:00
Kefu Chai
1fb9bacd0b os/FileStore: getattr() should return 0 if success
* fix the test of ObjectStore/StoreTest.SimpleCloneTest, the expected
  return value of getattr() should be 0. otherwise it otherwise it fails
  on objectstore backends of "memstore" and "keyvaluestore".
* change FileStore::getattr() to return 0 on success
* tighten related tests in ceph_test_objectstore, to test the return value
  of getattr() using ASSERT_EQ(r, 0) instead of ASSERT_GE(r, 0)

Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-07-31 17:35:31 +08:00
Haomai Wang
5760655554 KeyValueStore: Fix incorrect rm_keys behaviors
GenericObjectMap will copyup parents keys when rm keys, but if
caller(KeyValueStore) already buffer "set keys", it shouldn't
copyup reset keys.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2015-07-31 17:33:25 +08:00
Kefu Chai
81afcc206d doc: fix the build of placement-groups.rst
add a reference target of "mapping pgs to osds"

Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-07-31 17:08:20 +08:00
Kefu Chai
f008440765 Merge pull request #5432 from ceph/wip-fix-rbd-build
make: fix the build of "rbd"

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-07-31 16:47:55 +08:00
Loic Dachary
2d90da863c Merge pull request #5434 from tobegit3hub/remove_execute_mode
Remove execute mode of source files

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-07-31 09:55:01 +02:00
tobe
f8554f9b8e Remove execute mode of source files 2015-07-31 15:47:43 +08:00
Haomai Wang
1a2f29050a Merge pull request #5398 from mingyuez/master
rbd:If the image has any protected snaps,'rbd snap purge image' will return failure without removing any snaps.

Reviewed-by: Josh During <jdurgin@redhat.com>
Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
2015-07-31 15:41:32 +08:00
Kefu Chai
b255b4c51c make: fix the build of "rbd"
`CEPH_GLOBAL` was removed in fa78739, but the linked libraries does not
offer all needed symbols for "rbd". so add them back.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-07-31 14:45:55 +08:00
mingyuez
8a7a52dd93 rbd:'rbd purge image' will return failure without removing any snaps if the image has a protected snap
Signed-off-by: mingyuez <zhao.mingyue@h3c.com>
2015-07-31 12:06:12 +08:00
Kefu Chai
d5142ba29e Merge pull request #5395 from tchaikov/wip-12512
common/syncfs: fall back to sync(2) if syncfs(2) not available

Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-07-31 10:24:30 +08:00
Kefu Chai
f705d8c7e4 Merge pull request #5402 from ceph/wip-claim-sparse-read-buffer
osd/ReplicatedPG: claim the read buffer instead of copying it

Reviewed-by: David Zafman <dzafman@redhat.com>
2015-07-31 10:14:02 +08:00
Sage Weil
b7e5d2af47 Merge pull request #5428 from ceph/wip-kill-rest-bench
kill rest-bench

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2015-07-30 22:13:40 -04:00
Yuan Zhou
95745550ce rgw: skip prefetch first chunk if range get falls to shadow objects
Currently the head object will be prefetched in each GET:
 a) This is unnecessary if the Range GET falls to shadow objects.
 b) The GET request would be quite slow if we have a big head object
This patch adds some check on the Range. If it's not in the head
object(>=rgw_max_chunk_size) then skip the prefetch.

Fixes: #12539
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
2015-07-31 08:42:00 +08:00
Josh Durgin
03491ae843 Merge remote-tracking branch 'origin/next' 2015-07-30 16:35:01 -07:00
Josh Durgin
27fa210f40 Merge pull request #5425 from ceph/wip-12479-next
librbd: test crash during client upgrade suite

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-07-30 16:26:51 -07:00
Sage Weil
ca40bf0b30 Merge pull request #5423 from oddomatik/patch-1
doc: No CRUSH involvement in deciding PG target

Reviewed-by: Sage Weil <sage@redhat.com>
2015-07-30 17:32:52 -04:00
Josh Durgin
04d8766264 Merge pull request #5426 from ceph/wip-12383-next
rbd: remove dependency on non-ABI controlled CephContext

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-07-30 14:08:32 -07:00
Josh Durgin
115f370634 Merge pull request #5399 from tchaikov/wip-12458
rbd: add "--keyring" option to help message

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-07-30 14:00:15 -07:00
Yehuda Sadeh
d621d9878c Merge pull request #5414 from cxwshawn/master
doc: add bucket object version description.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-07-30 13:52:06 -04:00
Sage Weil
a634ab34b2 remove libs3 submodule
Signed-off-by: Sage Weil <sage@redhat.com>
2015-07-30 13:24:00 -04:00
Sage Weil
bbe84578bf remove rest-bench
This is a weak tool; users should look to cosbench or others instead.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-07-30 13:21:36 -04:00
Josh Durgin
744a71a81c Merge pull request #5419 from ceph/wip-kfsx-invalidate
test_librbd_fsx: invalidate before discard in krbd mode

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-07-30 09:25:30 -07:00
oddomatik
77cdb500af No CRUSH involvement in deciding PG target
Quoting from elsewhere "[we calculate] a placement group using the object name, a hash code, the number of PGs in the pool and the pool name"
2015-07-30 22:33:09 +08:00
Jason Dillaman
af0cade029 lockdep: allow lockdep to be dynamically enabled/disabled
librbd test cases attempt to enable lockdep coverage via the librados
API.  Use a configuration observer to register/unregister lockdep
support.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-07-30 09:01:54 -04:00
Jason Dillaman
2c51aadb44 tests: librbd API test cannot use private md_config_t struct
Remove all depencencies on md_config_t and instead use librados API
methods to get/set configuration values.

Fixes: #12479
Backport: hammer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-07-30 09:01:53 -04:00
Jason Dillaman
4d03c664f2 librados_test_stub: implement conf get/set API methods
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-07-30 09:01:36 -04:00
Kefu Chai
258cb348d6 rbd: add "--keyring" option to help message
Refs: #12458
Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-07-30 11:56:29 +08:00
Kefu Chai
7fbf013d44 Merge pull request #5401 from ceph/wip-12450
tools/rados: change the default max_ops to 16

Reviewed-by: David Zafman <dzafman@redhat.com>
2015-07-30 11:36:37 +08:00
shawn
5c395ff856 doc: add bucket object version description.
bucket object version has been supported, but do not have description in the docs,
so add this part.

Signed-off-by: shawn chen <cxwshawn@gmail.com>
2015-07-30 10:09:16 +08:00
Ilya Dryomov
f217865cf7 test_librbd_fsx: invalidate before discard in krbd mode
Commit bd050240ce ("test_librbd_fsx: flush before discard in krbd
mode") added an fsync() before BLKDISCARD.  Don't know what I was
thinking at the time, but I missed the invalidate part, for which we
need to use the BLKFLSBUF ioctl.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2015-07-29 21:01:08 +03:00
Samuel Just
c4872ddfac Log::reopen_log_file: take m_flush_mutex
Otherwise, _flush() might continue to write to m_fd after it's closed.
This might cause log data to go to a data object if the filestore then
reuses the fd during that time.

Fixes: #12465
Backport: firefly, hammer
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 8778ab3a1c)
2015-07-29 09:33:33 -04:00
Sage Weil
338ead0f49 Merge pull request #5348 from athanatos/wip-12465
log: take mutex when reopening log fd

Reviewed-by: Sage Weil <sage@redhat.com>
2015-07-29 09:30:37 -04:00
Kefu Chai
0559fd38b8 tools/rados: change the first op id to 0
the first op id was 16 by default, which is okay, but a non-zero
magic number could lead to questions. max_op was mixed up with
max_ops, and changed to 16 in 51e402e3 by mistake.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-07-29 19:52:53 +08:00
Kefu Chai
ee25b4276d tools/rados: change the default max_ops to 16
otherwise the load-gen will not emit any ops by default.

Fixes: #12450
Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-07-29 19:44:58 +08:00
Kefu Chai
08210d6a85 common/syncfs: fall back to sync(2) if syncfs(2) not available
Fixes: #12512
Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-07-29 16:42:55 +08:00
Jason Dillaman
fa78739933 rbd: remove dependency on non-ABI controlled CephContext
The rbd CLI tool no longer attempts to initialize a CephContext
and pass said context to librados since it's possible that the
structure will not be ABI compatible between rbd and librados.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-07-28 15:44:49 -04:00
Yehuda Sadeh
1113eb6b98 Merge pull request #5139 from jmunhoz/wip-7817-ms
rgw: add minimum support for copy multipart part

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-07-28 14:21:25 -04:00
Yehuda Sadeh
5afcabd375 Merge pull request #5313 from guce/rgw_access_invalid_argument
rgw: check subuser illegal access parameter.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-07-28 13:55:39 -04:00
Jason Dillaman
9fa0112dd9 crypto: use NSS_InitContext/NSS_ShutdownContex to avoid memory leak
Switched to context-aware NSS init/shutdown functions to avoid conflicts
with parent application.  Use a reference counter to properly shutdown the
NSS crypto library when the last CephContext is destroyed.  This avoids
memory leaks with the NSS library from users of librados.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-07-28 13:16:50 -04:00
Josh Durgin
d7440555c0 Merge pull request #5364 from xdonghai/master
doc:modified librados-intro.rst an error of document representation

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-07-28 09:20:55 -07:00