]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agoPG: For needs_recovery, asap return if need recover. 4376/head
Jianpeng Ma [Wed, 22 Apr 2015 01:17:39 +0000 (09:17 +0800)]
PG: For needs_recovery, asap return if need recover.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoPG: remove the duplicated code.
Jianpeng Ma [Mon, 20 Apr 2015 15:03:06 +0000 (23:03 +0800)]
PG: remove the duplicated code.

assert(!actingbackfill.empty()) is equal to
assert(actingbackfill.end() != actingbackfill.begin()).

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoPG: fix logic error: don't set need_recovery if peer_missing don't have acting osd.
Jianpeng Ma [Thu, 16 Apr 2015 14:59:54 +0000 (22:59 +0800)]
PG: fix logic error: don't set need_recovery if peer_missing don't have acting osd.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoMerge pull request #4399 from trociny/fix-osd_df_avgutil
Sage Weil [Tue, 21 Apr 2015 21:27:48 +0000 (14:27 -0700)]
Merge pull request #4399 from trociny/fix-osd_df_avgutil

mon: osd df: fix average_util calculation

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4386 from ceph/wip-10657
Gregory Farnum [Tue, 21 Apr 2015 21:19:21 +0000 (14:19 -0700)]
Merge pull request #4386 from ceph/wip-10657

mds: warn when clients are not advancing their oldest_client_tid

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #4331 from ceph/wip-mds-misc
Gregory Farnum [Tue, 21 Apr 2015 21:13:09 +0000 (14:13 -0700)]
Merge pull request #4331 from ceph/wip-mds-misc

Wip mds misc

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #4424 from ceph/wip-doc-nuke-setmap
Josh Durgin [Tue, 21 Apr 2015 19:58:54 +0000 (12:58 -0700)]
Merge pull request #4424 from ceph/wip-doc-nuke-setmap

doc: don't mention ceph osd setmap

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #4420 from tchaikov/wip-man-fix-desc-in-name
Loic Dachary [Tue, 21 Apr 2015 17:34:45 +0000 (19:34 +0200)]
Merge pull request #4420 from tchaikov/wip-man-fix-desc-in-name

man: fix the description in NAME section

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4409 from ceph/wip-11437
Josh Durgin [Tue, 21 Apr 2015 17:34:15 +0000 (10:34 -0700)]
Merge pull request #4409 from ceph/wip-11437

rgw: don't use end_marker for namespaced object listing

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #4408 from ceph/wip-11436
Josh Durgin [Tue, 21 Apr 2015 17:31:22 +0000 (10:31 -0700)]
Merge pull request #4408 from ceph/wip-11436

rgw: adjust return code if can't find upload

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #4407 from ceph/wip-11435
Josh Durgin [Tue, 21 Apr 2015 17:29:08 +0000 (10:29 -0700)]
Merge pull request #4407 from ceph/wip-11435

rgw: fail if parts not specified on complete-multipart-upload

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agodoc: don't mention ceph osd setmap 4424/head
Ilya Dryomov [Tue, 21 Apr 2015 17:27:59 +0000 (20:27 +0300)]
doc: don't mention ceph osd setmap

ceph osd setmap command was disabled and subsequently removed 5 years
ago.  See 9aadd41b2095 ("mon: disable 'osd setmap'") and 6d292397aa26
("mon: remove dead 'setmap' code").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
10 years agoMerge pull request #4423 from ceph/wip-11370
Josh Durgin [Tue, 21 Apr 2015 17:23:44 +0000 (10:23 -0700)]
Merge pull request #4423 from ceph/wip-11370

librbd: better handling for duplicate flatten requests

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agolibrbd: better handling for duplicate flatten requests 4423/head
Jason Dillaman [Tue, 21 Apr 2015 16:59:33 +0000 (12:59 -0400)]
librbd: better handling for duplicate flatten requests

A proxied flatten request could be replayed, resulting in a
-EINVAL error code being generated on the second attempt. Filter
out that error if it is known the parent did exist before the
op started.

Fixes: #11370
Backport: hammer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agoMerge pull request #4372 from xiaoxichen/fix_kv_compact_on_mount
Sage Weil [Tue, 21 Apr 2015 16:31:15 +0000 (09:31 -0700)]
Merge pull request #4372 from xiaoxichen/fix_kv_compact_on_mount

Fix kv compact on mount

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4418 from oritwas/wip-11438
Yehuda Sadeh [Tue, 21 Apr 2015 15:44:52 +0000 (08:44 -0700)]
Merge pull request #4418 from oritwas/wip-11438

rgw: force content-type header for swift account responses without body

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoclient: add failure injection for not advancing oldest_tid 4386/head
Yan, Zheng [Tue, 21 Apr 2015 12:20:55 +0000 (20:20 +0800)]
client: add failure injection for not advancing oldest_tid

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: include size of completed_requests in session dump
Yan, Zheng [Thu, 16 Apr 2015 07:04:30 +0000 (15:04 +0800)]
mds: include size of completed_requests in session dump

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: warn when clients are not advancing their oldest_client_tid
Yan, Zheng [Thu, 16 Apr 2015 06:51:35 +0000 (14:51 +0800)]
mds: warn when clients are not advancing their oldest_client_tid

Fixes: #10657
Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agorgw: force content-type header for swift account responses without body 4418/head
Orit Wasserman [Tue, 21 Apr 2015 10:31:19 +0000 (12:31 +0200)]
rgw: force content-type header for swift account responses without body

This regression was introduced in commit 4cfeca03ade21861ab70ca759f94eb244c16cb39

Fixes: #11438
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
10 years agoman: fix the description in NAME section 4420/head
Kefu Chai [Tue, 21 Apr 2015 13:05:09 +0000 (21:05 +0800)]
man: fix the description in NAME section

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #4370 from guangyy/wip-ec-test-fix
Loic Dachary [Tue, 21 Apr 2015 11:50:51 +0000 (13:50 +0200)]
Merge pull request #4370 from guangyy/wip-ec-test-fix

qa : misc fixes to stabilize test-erasure-code suite

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4411 from hjwsm1989/wip-monstore-pool
Kefu Chai [Tue, 21 Apr 2015 11:36:36 +0000 (19:36 +0800)]
Merge pull request #4411 from hjwsm1989/wip-monstore-pool

mon: ceph-monstore-tool must do out_store.close() in "store-copy" command

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #4417 from osynge/wip-LimitNOFILE
Loic Dachary [Tue, 21 Apr 2015 09:50:19 +0000 (11:50 +0200)]
Merge pull request #4417 from osynge/wip-LimitNOFILE

Increase max files open limit for OSD daemon.

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agotools: ceph-monstore-tool must do out_store.close() 4411/head
huangjun [Tue, 21 Apr 2015 06:04:40 +0000 (14:04 +0800)]
tools: ceph-monstore-tool must do out_store.close()

this change fixes the "store-copy" command.
Like the bug reported in http://tracker.ceph.com/issues/10093.

Signed-off-by: huangjun <hjwsm1989@gmail.com>
10 years agoIncrease max files open limit for OSD daemon. 4417/head
Owen Synge [Tue, 21 Apr 2015 09:31:24 +0000 (11:31 +0200)]
Increase max files open limit for OSD daemon.

Under heavy load the number of file descriptors opened
by the OSD can go beyond the 64K file limit. This patch
increases the default to 128K.

Signed-off-by: Owen Synge <osynge@suse.com>
10 years agoclient: inlcude inline data in FLUSHSNAP cap message 4331/head
Yan, Zheng [Mon, 20 Apr 2015 03:25:49 +0000 (11:25 +0800)]
client: inlcude inline data in FLUSHSNAP cap message

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoclient: flush dirty snap data before allowing new writes
Yan, Zheng [Fri, 17 Apr 2015 12:27:56 +0000 (20:27 +0800)]
client: flush dirty snap data before allowing new writes

this guarantees that new writes do not overwrite existing dirty
snap data.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: properly update capability's client_follow
Yan, Zheng [Thu, 16 Apr 2015 08:34:25 +0000 (16:34 +0800)]
mds: properly update capability's client_follow

If snap inode exists, capability's client_follow has already been
updated by MDCache::cow_inode(). So we only update client_follow
when the inode was not COWed.

Besides, we need to check return of SnapRealm::get_snap_following().
It can return CEPH_NOSNAP, which is clearly invalid for client_follows.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: fix Locker::_do_null_snapflush
Yan, Zheng [Tue, 14 Apr 2015 04:02:49 +0000 (12:02 +0800)]
mds: fix Locker::_do_null_snapflush

the snapid check in Locker::_do_null_snapflush() prevents us from
flushing old snap inodes. The check does not make sense.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: do null snap flush when processing embeded cap releases
Yan, Zheng [Tue, 14 Apr 2015 03:41:46 +0000 (11:41 +0800)]
mds: do null snap flush when processing embeded cap releases

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: make sure snap inode's last match existing snapshots
Yan, Zheng [Fri, 10 Apr 2015 05:58:15 +0000 (13:58 +0800)]
mds: make sure snap inode's last match existing snapshots

MDCache::pick_inode_snap() and snap caps flushing code require
this.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: remove stray dentry from delayed list when it's queued for purging
Yan, Zheng [Thu, 9 Apr 2015 12:12:08 +0000 (20:12 +0800)]
mds: remove stray dentry from delayed list when it's queued for purging

this avoids assert(!dn->state_test(CDentry::STATE_PURGING)) in
eval_stray() being triggered when processing the delayed list.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: move snap inode to new dirfrag's dirty_rstat_inodes
Yan, Zheng [Thu, 9 Apr 2015 09:42:31 +0000 (17:42 +0800)]
mds: move snap inode to new dirfrag's dirty_rstat_inodes

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: keep auth pin on CDir when marking it dirty
Yan, Zheng [Thu, 9 Apr 2015 06:36:56 +0000 (14:36 +0800)]
mds: keep auth pin on CDir when marking it dirty

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoMerge pull request #4257 from rzarzynski/wip-10683
Yehuda Sadeh [Tue, 21 Apr 2015 00:24:11 +0000 (17:24 -0700)]
Merge pull request #4257 from rzarzynski/wip-10683

rgw: rectify support for GET on Swift's account with "limit" parameter == 0

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: don't use end_marker for namespaced object listing 4409/head
Yehuda Sadeh [Mon, 20 Apr 2015 23:00:34 +0000 (16:00 -0700)]
rgw: don't use end_marker for namespaced object listing

Fixes: #11437
Don't deal with end_marker if there's a namespace set for the object
listing. The cur_end_marker.empty() check is incorrect if no end_marker
is provided, but a namespace is set. Just avoid this issue entirely, as
it's not needed.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: adjust return code if can't find upload 4408/head
Yehuda Sadeh [Mon, 20 Apr 2015 22:01:34 +0000 (15:01 -0700)]
rgw: adjust return code if can't find upload

Fixes: #11436
Return NoSuchUpload (instead of NoSuchKey).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: fail if parts not specified on complete-multipart-upload 4407/head
Yehuda Sadeh [Mon, 20 Apr 2015 21:47:16 +0000 (14:47 -0700)]
rgw: fail if parts not specified on complete-multipart-upload

Fixes: #11435
A complete multipart upload should not succeed if parts were not
specified. Also, adjust return codes.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #4406 from ceph/wip-11433
Jason Dillaman [Mon, 20 Apr 2015 20:47:20 +0000 (16:47 -0400)]
Merge pull request #4406 from ceph/wip-11433

librbd: always initialize perf counters

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
10 years agolibrbd: always initialize perf counters 4406/head
Josh Durgin [Mon, 20 Apr 2015 18:32:13 +0000 (11:32 -0700)]
librbd: always initialize perf counters

If ImageCtx::init() fails, perf counters are still used when closing
the image. To prevent uninitialized use, it's easiest to always
initialize them before anything that can fail in ImageCtx::init().

This was moved in 6055df398557e4dbcabc66f463a0a126f9b5dc74, but it's
not necessary to delay perf counter initialization for any extra
configuration.

Fixes: #11433
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #4302 from ceph/wip-11339
Gregory Farnum [Mon, 20 Apr 2015 18:12:38 +0000 (11:12 -0700)]
Merge pull request #4302 from ceph/wip-11339

client: drop inode when rmdir request finishes

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #4282 from ceph/wip-3645
Gregory Farnum [Mon, 20 Apr 2015 18:10:21 +0000 (11:10 -0700)]
Merge pull request #4282 from ceph/wip-3645

mds: rename snapshot support

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com
10 years agoMerge pull request #4405 from ceph/wip-11380
Josh Durgin [Mon, 20 Apr 2015 17:23:54 +0000 (10:23 -0700)]
Merge pull request #4405 from ceph/wip-11380

cls_rbd: get_features needs to support legacy negative tests

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #4402 from ceph/wip-rbd-unmap-by-spec
Josh Durgin [Mon, 20 Apr 2015 17:19:27 +0000 (10:19 -0700)]
Merge pull request #4402 from ceph/wip-rbd-unmap-by-spec

rbd unmap <image-name>

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agocls_rbd: get_features needs to support legacy negative tests 4405/head
Jason Dillaman [Mon, 20 Apr 2015 16:40:33 +0000 (12:40 -0400)]
cls_rbd: get_features needs to support legacy negative tests

During Ceph upgrade testing, older Ceph test suites assume that
get_features will return -ENOENT if provided a missing snapshot.
Support these negative tests until the older releases are no
longer supported.

Fixes: #11380
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agoMerge pull request #3991 from rzarzynski/wip-11087
Yehuda Sadeh [Mon, 20 Apr 2015 16:38:20 +0000 (09:38 -0700)]
Merge pull request #3991 from rzarzynski/wip-11087

rgw: multiple fixes for copying Swift objects

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #3863 from rzarzynski/wip-10971
Yehuda Sadeh [Mon, 20 Apr 2015 16:21:24 +0000 (09:21 -0700)]
Merge pull request #3863 from rzarzynski/wip-10971

rgw: multiple fixes for Content-Length header generation in Swift API

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: make rgw_read_user_buckets() backward compatible. 4257/head
Radoslaw Zarzynski [Tue, 31 Mar 2015 10:41:11 +0000 (12:41 +0200)]
rgw: make rgw_read_user_buckets() backward compatible.

Fixes: #10683
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
10 years agorgw: rectify support for GET on Swift's account with limit == 0.
Radoslaw Zarzynski [Mon, 30 Mar 2015 19:11:39 +0000 (21:11 +0200)]
rgw: rectify support for GET on Swift's account with limit == 0.

Fixes: #10683
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
10 years agoMerge pull request #4400 from ceph/update-organization-1
Loic Dachary [Mon, 20 Apr 2015 08:13:03 +0000 (10:13 +0200)]
Merge pull request #4400 from ceph/update-organization-1

Update Haomai's organization

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #3847 from trociny/wip-test_with_crushtool.master
Kefu Chai [Mon, 20 Apr 2015 08:04:25 +0000 (16:04 +0800)]
Merge pull request #3847 from trociny/wip-test_with_crushtool.master

mon: ceph osd setcrushmap: test_with_crushtool improvements

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #4343 from ceph/wip-11356
Gregory Farnum [Mon, 20 Apr 2015 00:53:52 +0000 (17:53 -0700)]
Merge pull request #4343 from ceph/wip-11356

client: fix uninline data funtion

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #4223 from ceph/wip-11254
Gregory Farnum [Mon, 20 Apr 2015 00:53:00 +0000 (17:53 -0700)]
Merge pull request #4223 from ceph/wip-11254

mds: make sure lock state not stay in XLOCK/XLOCKDONE indefinitely

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #4218 from ceph/wip-11048
Gregory Farnum [Mon, 20 Apr 2015 00:52:09 +0000 (17:52 -0700)]
Merge pull request #4218 from ceph/wip-11048

mds: persist completed_requests reliably

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #4204 from ceph/wip-10368-mk3
Gregory Farnum [Mon, 20 Apr 2015 00:51:12 +0000 (17:51 -0700)]
Merge pull request #4204 from ceph/wip-10368-mk3

mds: separate MDLog::safe_pos from journaler

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agomon: osd df: fix average_util calculation 4399/head
Mykola Golub [Sat, 18 Apr 2015 13:59:12 +0000 (16:59 +0300)]
mon: osd df: fix average_util calculation

average_util should be calculated from the same set of nodes that
dump_item considers when calculating the stddev.

While here, remove unnecessary check for kb > 0:
get_bucket_utilization returns false if kb <= 0.

Also, update get_bucket_utilization accordingly to the preferred
convention to use pointers and not references for output arguments.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
10 years agoUpdate Haomai's organization 4400/head
Haomai Wang [Sun, 19 Apr 2015 16:48:42 +0000 (00:48 +0800)]
Update Haomai's organization

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agotest/cli-integration/rbd: add unmap test 4402/head
Ilya Dryomov [Fri, 17 Apr 2015 14:27:08 +0000 (17:27 +0300)]
test/cli-integration/rbd: add unmap test

Add a test to exercise rbd unmap.  This was inspired by and is mostly
for rbd unmap <image-name> (aka spec), but rbd unmap <device> is tested
as well.  Any significant change to krbd.cc or corresponding rbd cli
should be tested in the following three configurations at least:

- kernel < 3.14
- kernel >= 3.14, rbd.single_major=N
- kernel >= 3.14, rbd.single_major=Y

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
10 years agorbd: allow unmapping by spec
Ilya Dryomov [Sat, 11 Apr 2015 10:07:59 +0000 (13:07 +0300)]
rbd: allow unmapping by spec

Make use of krbd_unmap_by_spec() and allow unmapping by <image-name>
(i.e. pool/image@snap spec) with a bunch of careful adjustments to the
fragile command args/options parsing process to make --pool, --image
and --snap options work as expected for rbd unmap <image-name> case.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
10 years agokrbd: add krbd_unmap_by_spec()
Ilya Dryomov [Sat, 11 Apr 2015 10:07:49 +0000 (13:07 +0300)]
krbd: add krbd_unmap_by_spec()

Make unmapping by (pool, image, snap) spec possible.  For specs mapped
multiple times unmap one device per krbd_unmap_by_spec() call.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
10 years agokrbd: rename should_match_minor() to have_minor_attr()
Ilya Dryomov [Wed, 15 Apr 2015 14:18:05 +0000 (17:18 +0300)]
krbd: rename should_match_minor() to have_minor_attr()

Rename and clarify why simply checking kernel version doesn't work.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
10 years agoclient: drop inode when rmdir request finishes 4302/head
Yan, Zheng [Wed, 8 Apr 2015 12:16:45 +0000 (20:16 +0800)]
client: drop inode when rmdir request finishes

Current client code relies on cap message to trim unlinked inode
from cache. This method is too sensitive to message ordering. If
client receives the cap message while directory inode still contains
dentries that are referenced by unsafe requests, the inode can't
get trimmed.

The fix is, when rmdir/rename request finishes, try trimming the
unlinked inode again.

Fixes: #11339
Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoMerge pull request #4380 from ceph/wip-nodebug-build
Josh Durgin [Sat, 18 Apr 2015 04:52:21 +0000 (21:52 -0700)]
Merge pull request #4380 from ceph/wip-nodebug-build

tests: separate check_PROGRAMS from TESTS

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agotests: separate check_PROGRAMS from TESTS 4380/head
Jason Dillaman [Fri, 17 Apr 2015 00:55:53 +0000 (20:55 -0400)]
tests: separate check_PROGRAMS from TESTS

Not all programs that should be built during 'make check' should
be executed as tests.  A new variable, check_TESTPROGRAMS, was
introduced to specify which programs should be executed as a test
during a 'make check'.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agoMerge pull request #4311 from yuyuyu101/wip-async-fix-4
Sage Weil [Fri, 17 Apr 2015 17:58:53 +0000 (10:58 -0700)]
Merge pull request #4311 from yuyuyu101/wip-async-fix-4

Wip async fix 4

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4358 from gerhardqux/gerhardqux-nokey-exit-1
Sage Weil [Thu, 16 Apr 2015 17:14:23 +0000 (10:14 -0700)]
Merge pull request #4358 from gerhardqux/gerhardqux-nokey-exit-1

ceph-authtool: exit(1) when printing a non-existing key

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4012 from majianpeng/cache-tier-fadvise
Samuel Just [Thu, 16 Apr 2015 16:58:55 +0000 (09:58 -0700)]
Merge pull request #4012 from majianpeng/cache-tier-fadvise

Cache tier fadvise

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3606 from wonzhq/hitset-insert
Samuel Just [Thu, 16 Apr 2015 16:58:17 +0000 (09:58 -0700)]
Merge pull request #3606 from wonzhq/hitset-insert

osd: avoid inserting an op into hit set multiple times

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4378 from dachary/wip-11359-tier-tests-disable
Loic Dachary [Thu, 16 Apr 2015 16:50:23 +0000 (18:50 +0200)]
Merge pull request #4378 from dachary/wip-11359-tier-tests-disable

tests: comment out unstable tiering tests

10 years agotests: comment out unstable tiering tests 4337/head 4378/head
Loic Dachary [Fri, 10 Apr 2015 18:00:13 +0000 (20:00 +0200)]
tests: comment out unstable tiering tests

So that make check does not randomly fails.

http://tracker.ceph.com/issues/11359 Refs: #11359

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4377 from liewegas/wip-git.ceph.com
Alfredo Deza [Thu, 16 Apr 2015 15:33:55 +0000 (11:33 -0400)]
Merge pull request #4377 from liewegas/wip-git.ceph.com

use git.ceph.com

Reviewed-by: Alfredo Deza <adeza@redhat.com>
10 years agouse git://git.ceph.com 4377/head
Sage Weil [Thu, 16 Apr 2015 15:29:41 +0000 (08:29 -0700)]
use git://git.ceph.com

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoceph-authtool: exit(1) when printing a non-existing key 4358/head
Gerhard Muntingh [Tue, 14 Apr 2015 12:02:15 +0000 (14:02 +0200)]
ceph-authtool: exit(1) when printing a non-existing key

When printing a non-existing key, ceph-authtool exits with a success
value:

[root@ip-172-31-3-178 ~]# ceph-authtool /etc/ceph/ceph.mon.keyring -p -n
client.doesntexist ; echo $?
entity client.doesntexist not found
0

Expected result: 1

Signed-off-by: Gerhard Muntingh <gerhard@qux.nl>
10 years agoMerge pull request #4373 from dachary/wip-releases
Loic Dachary [Thu, 16 Apr 2015 09:03:36 +0000 (11:03 +0200)]
Merge pull request #4373 from dachary/wip-releases

releases: table of estimated end of life

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
10 years agoreleases: table of estimated end of life 4373/head
Loic Dachary [Thu, 16 Apr 2015 08:21:20 +0000 (10:21 +0200)]
releases: table of estimated end of life

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4339 from ceph/wip-da-SCA-20150317
Kefu Chai [Thu, 16 Apr 2015 06:46:26 +0000 (14:46 +0800)]
Merge pull request #4339 from ceph/wip-da-SCA-20150317

Various SCA and Coverity fixes

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #4367 from ceph/wip-ceph-disk-default-cluster
Loic Dachary [Thu, 16 Apr 2015 06:41:27 +0000 (08:41 +0200)]
Merge pull request #4367 from ceph/wip-ceph-disk-default-cluster

ceph-disk: set '--cluster=ceph' in 'prepare' subcommand

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoos/LevelDBStore:fix bug when compact_on_mount 4372/head
Xiaoxi Chen [Thu, 16 Apr 2015 05:42:42 +0000 (13:42 +0800)]
os/LevelDBStore:fix bug when compact_on_mount

Initialize the performance counter(l_rocksdb_compact)
before use it in compact().

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
10 years agoos/RocksDBStore: fix bug when compact_on_mount
Xiaoxi Chen [Thu, 16 Apr 2015 05:39:57 +0000 (13:39 +0800)]
os/RocksDBStore: fix bug when compact_on_mount

Initialize the performance counter(l_rocksdb_compact)
before use it in compact().

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
10 years agoMerge pull request #4366 from BCLibCoop/bclibcoop/rgw-hostnames
Yehuda Sadeh [Wed, 15 Apr 2015 16:20:24 +0000 (09:20 -0700)]
Merge pull request #4366 from BCLibCoop/bclibcoop/rgw-hostnames

rgw: Document & improve region hostnames

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoTestPGLog.cc: fix -Wsign-compare 4339/head
Danny Al-Gaaf [Wed, 15 Apr 2015 10:22:29 +0000 (12:22 +0200)]
TestPGLog.cc: fix -Wsign-compare

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoTestErasureCodeShec.cc: fix -Wsign-compare
Danny Al-Gaaf [Wed, 15 Apr 2015 10:21:42 +0000 (12:21 +0200)]
TestErasureCodeShec.cc: fix -Wsign-compare

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest_async_driver.cc: fix UNINIT
Danny Al-Gaaf [Fri, 10 Apr 2015 09:25:12 +0000 (11:25 +0200)]
test_async_driver.cc: fix UNINIT

Fix for:

CID 1254380 (#1 of 1): Uninitialized scalar variable (UNINIT)
 uninit_use_in_call: Using uninitialized value sa. Field
 sa.sin_zero is uninitialized when calling connect

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agopsim.cc: change initialzation of VLAs
Danny Al-Gaaf [Fri, 10 Apr 2015 08:19:25 +0000 (10:19 +0200)]
psim.cc: change initialzation of VLAs

Use memset to fill integer VLAs.

Fix for:

CID 1219649 (#1 of 1): Uninitialized scalar variable (UNINIT)
 uninit_use: Using uninitialized value primary_count[primary]

CID 1219648 (#1 of 1): Uninitialized scalar variable (UNINIT)
 uninit_use: Using uninitialized value first_count[osds[0UL]]

CID 1219647 (#1 of 1): Uninitialized scalar variable (UNINIT)
 uninit_use: Using uninitialized value count[osds[i]]

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agosystest_runnable.h: mark copy ctor as explicit
Danny Al-Gaaf [Wed, 1 Apr 2015 16:25:57 +0000 (18:25 +0200)]
systest_runnable.h: mark copy ctor as explicit

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agocommon/Thread.h: mark copy/move ctor as explicit
Danny Al-Gaaf [Wed, 1 Apr 2015 16:25:27 +0000 (18:25 +0200)]
common/Thread.h: mark copy/move ctor as explicit

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agocls_rbd.cc: reduce scope of local variable
Danny Al-Gaaf [Wed, 1 Apr 2015 16:25:00 +0000 (18:25 +0200)]
cls_rbd.cc: reduce scope of local variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoReplicatedBackend.cc: init 'Message *commit' to NULL
Danny Al-Gaaf [Tue, 24 Mar 2015 08:50:47 +0000 (09:50 +0100)]
ReplicatedBackend.cc: init 'Message *commit' to NULL

Init variable with NULL to make sure it crashes in error
case (would be a bug) if NDEBUG disable the assert() call.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoosd/PG.h: mark copy ctor explicit
Danny Al-Gaaf [Tue, 24 Mar 2015 09:06:42 +0000 (10:06 +0100)]
osd/PG.h: mark copy ctor explicit

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agomsg/Dispatcher.h: make copy/move ctor explicit
Danny Al-Gaaf [Thu, 19 Mar 2015 21:11:17 +0000 (22:11 +0100)]
msg/Dispatcher.h: make copy/move ctor explicit

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest_shared_cache.cc: reduce scope of variable
Danny Al-Gaaf [Wed, 18 Mar 2015 15:29:58 +0000 (16:29 +0100)]
test_shared_cache.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agorgw_rest_user.cc: UserQuotas init vars in ctor init list
Danny Al-Gaaf [Wed, 18 Mar 2015 14:03:28 +0000 (15:03 +0100)]
rgw_rest_user.cc: UserQuotas init vars in ctor init list

Fix for:

[src/rgw/rgw_rest_user.cc:631]: (performance) Variable 'bucket_quota' is
 assigned in constructor body. Consider performing initialization in
 initialization list.
[src/rgw/rgw_rest_user.cc:632]: (performance) Variable 'user_quota' is
 assigned in constructor body. Consider performing initialization in
 initialization list.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoclient/Client.cc: fix uninit variables
Danny Al-Gaaf [Wed, 18 Mar 2015 10:12:51 +0000 (11:12 +0100)]
client/Client.cc: fix uninit variables

This is caused by assert(). If assert is disabled we run into use
of uninitialized variables. Return -EINVAL in case assert() is
disabled.

Fix for:

[src/client/Client.cc:7791]: (error) Uninitialized variable: lock_state
[src/client/Client.cc:7829]: (error) Uninitialized variable: lock_type

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agolibcephfs.h: fix unnecessary forward declarations
Danny Al-Gaaf [Tue, 17 Mar 2015 21:58:19 +0000 (22:58 +0100)]
libcephfs.h: fix unnecessary forward declarations

This is an issue in case non-cpp code. Move the declaration of
inodeno_t and vinodeno_t structs into __cplusplus block where
they are needed.

Fix for cppcheck issue:

[src/include/cephfs/libcephfs.h:89] -> [src/include/cephfs/libcephfs.h:74]:
 The struct 'inodeno_t' forward declaration is unnecessary. Type struct is
 already declared earlier.
[src/include/cephfs/libcephfs.h:93] -> [src/include/cephfs/libcephfs.h:83]:
 The struct 'vinodeno_t' forward declaration is unnecessary. Type struct is
 already declared earlier.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoos/FileStore.cc: fix format qualifier in COMMIT_SNAP_ITEM
Danny Al-Gaaf [Tue, 17 Mar 2015 19:23:53 +0000 (20:23 +0100)]
os/FileStore.cc: fix format qualifier in COMMIT_SNAP_ITEM

All places COMMIT_SNAP_ITEM is used the variables are
'unsigned long long'. Change the format qualifier to reflect
this and to fix:

[src/os/FileStore.cc:1341]: (warning) %lld in format string (no. 1)
 requires 'long long *' but the argument type is 'unsigned long long *'.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agomds/MDCache.cc: fix potential null pointer dereference
Danny Al-Gaaf [Tue, 17 Mar 2015 17:18:34 +0000 (18:18 +0100)]
mds/MDCache.cc: fix potential null pointer dereference

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest/../chain_xattr.cc: fix suspicious usage of 'sizeof'
Danny Al-Gaaf [Tue, 17 Mar 2015 16:55:06 +0000 (17:55 +0100)]
test/../chain_xattr.cc: fix suspicious usage of 'sizeof'

Use sizeof(char) instead of sizeof('\0').

Fix for:

[src/test/objectstore/chain_xattr.cc:164]: (warning) Suspicious
 usage of 'sizeof' with a numeric constant as parameter.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoTestErasureCodeShec: fix some -Wsign-compare
Danny Al-Gaaf [Tue, 17 Mar 2015 16:16:42 +0000 (17:16 +0100)]
TestErasureCodeShec: fix some -Wsign-compare

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agorgw_rest_log.h: remove http_ret from some RGWOp_*_list classes
Danny Al-Gaaf [Tue, 17 Mar 2015 16:12:04 +0000 (17:12 +0100)]
rgw_rest_log.h: remove http_ret from some RGWOp_*_list classes

Remove http_ret from child class since there is already an integer
with the same name in the parent/base class.

Fix for:

[src/rgw/rgw_rest_log.h:79] -> [src/rgw/rgw_rest.h:275]: (warning) The
 class 'RGWOp_MDLog_List' defines member variable with name 'http_ret'
 also defined in its parent class 'RGWRESTOp'.
[src/rgw/rgw_rest_log.h:99] -> [src/rgw/rgw_rest.h:275]: (warning) The
 class 'RGWOp_MDLog_Info' defines member variable with name 'http_ret'
 also defined in its parent class 'RGWRESTOp'.
[src/rgw/rgw_rest_log.h:182] -> [src/rgw/rgw_rest.h:275]: (warning) The
 class 'RGWOp_DATALog_List' defines member variable with name 'http_ret'
 also defined in its parent class 'RGWRESTOp'.
[src/rgw/rgw_rest_log.h:202] -> [src/rgw/rgw_rest.h:275]: (warning) The
 class 'RGWOp_DATALog_Info' defines member variable with name 'http_ret'
 also defined in its parent class 'RGWRESTOp'.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>