Commit Graph

33224 Commits

Author SHA1 Message Date
Jianpeng Ma
f4e7d4a9c1 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>
2015-04-22 09:11:11 +08:00
Sage Weil
6063a21f9e logrotate.conf: prefer service over invoke-rc.d
On trusty 14.04, service works but invoke-rc.d does not (but is present).

Fixes: #11330
Reported-by: Wim Heirman <wim@heirman.net>
Signed-off-by: Sage Weil <sage@redhat.com>
2015-04-21 16:08:09 -07:00
Loic Dachary
8aea730f69 tests: osd-bench.sh must be verbose on failure
When a command fail as it should but it does not contain the expected
output, display the entire output to confirm it's a false negative.

http://tracker.ceph.com/issues/11441 Fixes: #11441

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-04-21 23:35:28 +02:00
Loic Dachary
14cb7b8f59 tests: convert osd-bench.sh to ceph-helpers.sh
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-04-21 23:35:28 +02:00
Loic Dachary
5871781b10 ceph-helpers: implement test_expect_failure
To display the output in case the command did not fail with the expected
output.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-04-21 23:35:28 +02:00
Sage Weil
67990c57a6 Merge pull request #4399 from trociny/fix-osd_df_avgutil
mon: osd df: fix average_util calculation

Reviewed-by: Sage Weil <sage@redhat.com>
2015-04-21 14:27:48 -07:00
Gregory Farnum
1c8913cf2c 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>
2015-04-21 14:19:21 -07:00
Gregory Farnum
881cb27426 Merge pull request #4331 from ceph/wip-mds-misc
Wip mds misc

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-04-21 14:13:09 -07:00
Yehuda Sadeh
7a432f7bdf civetweb: update max num of threads
Fixes: #10243
cherry-picked upstream fixed into submodule

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-04-21 11:08:45 -07:00
Josh Durgin
cbc941cb9b 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>
2015-04-21 10:34:15 -07:00
Josh Durgin
d87fb08220 Merge pull request #4408 from ceph/wip-11436
rgw: adjust return code if can't find upload

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-04-21 10:31:22 -07:00
Josh Durgin
36ff465020 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>
2015-04-21 10:29:08 -07:00
Josh Durgin
0c278d7a3c Merge pull request #4423 from ceph/wip-11370
librbd: better handling for duplicate flatten requests

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-04-21 10:23:44 -07:00
Jason Dillaman
ef7e210c3f 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>
2015-04-21 13:02:29 -04:00
Sage Weil
86ea4cfbd4 Merge pull request #4372 from xiaoxichen/fix_kv_compact_on_mount
Fix kv compact on mount

Reviewed-by: Sage Weil <sage@redhat.com>
2015-04-21 09:31:15 -07:00
Yehuda Sadeh
bfb112406b 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>
2015-04-21 08:44:52 -07:00
Yan, Zheng
12f1b30947 client: add failure injection for not advancing oldest_tid
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2015-04-21 23:14:22 +08:00
Yan, Zheng
901fd1a5c6 mds: include size of completed_requests in session dump
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2015-04-21 23:14:21 +08:00
Yan, Zheng
dcd9302227 mds: warn when clients are not advancing their oldest_client_tid
Fixes: #10657
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2015-04-21 23:14:15 +08:00
Orit Wasserman
009664e560 rgw: force content-type header for swift account responses without body
This regression was introduced in commit 4cfeca03ad

Fixes: #11438

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2015-04-21 16:31:57 +02:00
Loic Dachary
008b151958 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>
2015-04-21 13:50:51 +02:00
huangjun
d85e0f8c50 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>
2015-04-21 17:50:03 +08:00
Yan, Zheng
a5c067427d client: inlcude inline data in FLUSHSNAP cap message
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2015-04-21 13:56:17 +08:00
Yan, Zheng
2fad86e2f1 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>
2015-04-21 13:56:17 +08:00
Yan, Zheng
d08d834d53 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>
2015-04-21 13:56:17 +08:00
Yan, Zheng
c9fe13fddc 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>
2015-04-21 13:56:17 +08:00
Yan, Zheng
fa34e04587 mds: do null snap flush when processing embeded cap releases
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2015-04-21 13:56:16 +08:00
Yan, Zheng
ab44e5971f 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>
2015-04-21 13:56:16 +08:00
Yan, Zheng
fc758ce7f1 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>
2015-04-21 13:56:16 +08:00
Yan, Zheng
5c09be262c mds: move snap inode to new dirfrag's dirty_rstat_inodes
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2015-04-21 13:56:16 +08:00
Yan, Zheng
d900252729 mds: keep auth pin on CDir when marking it dirty
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2015-04-21 13:55:43 +08:00
Jianpeng Ma
2e90fa3d5d osd/PG: check scrub state when handle CEPH_OSD_OP_SCRUB_MAP.
There is a chance which cause scrub stop before replica-node send
scrub-map.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2015-04-21 11:48:41 +08:00
Yehuda Sadeh
d9bf04fdb6 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>
2015-04-20 17:24:11 -07:00
Yehuda Sadeh
d2a67282e0 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>
2015-04-20 16:03:44 -07:00
Yehuda Sadeh
58a144de56 rgw: adjust return code if can't find upload
Fixes: #11436

Return NoSuchUpload (instead of NoSuchKey).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-04-20 15:01:34 -07:00
Yehuda Sadeh
6ee4f64973 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>
2015-04-20 14:47:16 -07:00
Josh Durgin
66edf625b4 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 6055df3985, but it's
not necessary to delay perf counter initialization for any extra
configuration.

Fixes: #11433
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2015-04-20 11:34:31 -07:00
Gregory Farnum
c1de23ff45 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>
2015-04-20 11:12:38 -07:00
Gregory Farnum
392e824736 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
2015-04-20 11:10:21 -07:00
Josh Durgin
1e912b79f5 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>
2015-04-20 10:23:54 -07:00
Josh Durgin
7147708483 Merge pull request #4402 from ceph/wip-rbd-unmap-by-spec
rbd unmap <image-name>

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-04-20 10:19:27 -07:00
Jason Dillaman
66493b7e83 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>
2015-04-20 12:40:33 -04:00
Yehuda Sadeh
7efea25c6c Merge pull request #3991 from rzarzynski/wip-11087
rgw: multiple fixes for copying Swift objects

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-04-20 09:38:20 -07:00
Yehuda Sadeh
eb787a403b 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>
2015-04-20 09:21:24 -07:00
Radoslaw Zarzynski
7dd54fa362 rgw: make rgw_read_user_buckets() backward compatible.
Fixes: #10683
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2015-04-20 15:04:57 +02:00
Radoslaw Zarzynski
f7b92f9988 rgw: rectify support for GET on Swift's account with limit == 0.
Fixes: #10683
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2015-04-20 15:04:53 +02:00
Kefu Chai
9403df27f6 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>
2015-04-20 16:04:25 +08:00
Haomai Wang
b05d144c2f AsyncConnection: Fix deadlock cause by throttle block
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2015-04-20 14:51:05 +08:00
Haomai Wang
0c75b8804a AsyncConnection: Avoid lockdep check assert failure
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2015-04-20 11:38:16 +08:00
Haomai Wang
69bedcd692 Event: Fix memory leak for notify fd
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2015-04-20 11:01:15 +08:00
Gregory Farnum
a84ae7b14e 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>
2015-04-19 17:53:52 -07:00
Gregory Farnum
0f2de92db3 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>
2015-04-19 17:53:00 -07:00
Gregory Farnum
0b94bf547d Merge pull request #4218 from ceph/wip-11048
mds: persist completed_requests reliably

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-04-19 17:52:09 -07:00
Gregory Farnum
b25e9e130b Merge pull request #4204 from ceph/wip-10368-mk3
mds: separate MDLog::safe_pos from journaler

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-04-19 17:51:12 -07:00
Mykola Golub
cc5f144a51 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>
2015-04-19 20:18:24 +03:00
Ilya Dryomov
e4ebe10894 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>
2015-04-19 14:45:37 +03:00
Ilya Dryomov
b1d3f918fb 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>
2015-04-19 14:45:37 +03:00
Ilya Dryomov
087ed06340 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>
2015-04-19 14:41:53 +03:00
Ilya Dryomov
a1363c41f2 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>
2015-04-19 14:41:53 +03:00
Yan, Zheng
7df2cf243b 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>
2015-04-19 11:01:08 +08:00
Josh Durgin
69e3ec8a6b Merge pull request #4380 from ceph/wip-nodebug-build
tests: separate check_PROGRAMS from TESTS

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-04-17 21:52:21 -07:00
Jason Dillaman
933332be6f 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>
2015-04-17 20:08:59 -04:00
Sage Weil
4a1de06128 Merge pull request #4311 from yuyuyu101/wip-async-fix-4
Wip async fix 4

Reviewed-by: Sage Weil <sage@redhat.com>
2015-04-17 10:58:53 -07:00
Sage Weil
e948a3c659 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>
2015-04-16 10:14:23 -07:00
Samuel Just
27aac3d070 Merge pull request #4012 from majianpeng/cache-tier-fadvise
Cache tier fadvise

Reviewed-by: Sage Weil <sage@redhat.com>
2015-04-16 09:58:55 -07:00
Samuel Just
1ee0a7101b 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>
2015-04-16 09:58:17 -07:00
Gerhard Muntingh
16a3fbd56b 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>
2015-04-16 16:42:13 +02:00
Kefu Chai
409cd51692 Merge pull request #4339 from ceph/wip-da-SCA-20150317
Various SCA and Coverity fixes

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-04-16 14:46:26 +08:00
Loic Dachary
414b613255 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>
2015-04-16 08:41:27 +02:00
Xiaoxi Chen
932d59d084 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>
2015-04-16 13:43:23 +08:00
Xiaoxi Chen
36db6d2dc4 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>
2015-04-16 13:39:57 +08:00
Yehuda Sadeh
518931be58 Merge pull request #4366 from BCLibCoop/bclibcoop/rgw-hostnames
rgw: Document & improve region hostnames

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-04-15 09:20:24 -07:00
Danny Al-Gaaf
3b60f5f69d TestPGLog.cc: fix -Wsign-compare
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-04-15 12:34:51 +02:00
Danny Al-Gaaf
b1dd699adb TestErasureCodeShec.cc: fix -Wsign-compare
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-04-15 12:34:50 +02:00
Danny Al-Gaaf
c77ee1339d 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>
2015-04-15 12:34:50 +02:00
Danny Al-Gaaf
655c12ac50 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>
2015-04-15 12:34:50 +02:00
Danny Al-Gaaf
c3b2e872d3 systest_runnable.h: mark copy ctor as explicit
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-04-15 12:34:50 +02:00
Danny Al-Gaaf
d508510d70 common/Thread.h: mark copy/move ctor as explicit
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-04-15 12:34:50 +02:00
Danny Al-Gaaf
dfe9f1d06b cls_rbd.cc: reduce scope of local variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-04-15 12:34:50 +02:00
Danny Al-Gaaf
dc50f43572 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>
2015-04-15 12:34:50 +02:00
Danny Al-Gaaf
d36f665aa6 osd/PG.h: mark copy ctor explicit
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-04-15 12:24:12 +02:00
Danny Al-Gaaf
ed8c284709 msg/Dispatcher.h: make copy/move ctor explicit
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-04-15 12:24:12 +02:00
Danny Al-Gaaf
cebeac94ae test_shared_cache.cc: reduce scope of variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-04-15 12:24:12 +02:00
Danny Al-Gaaf
feb989cdaa 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>
2015-04-15 12:24:12 +02:00
Danny Al-Gaaf
8077b5232d 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>
2015-04-15 12:24:12 +02:00
Danny Al-Gaaf
53c9dd4d2d 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>
2015-04-15 12:24:12 +02:00
Danny Al-Gaaf
4a1bdc72b9 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>
2015-04-15 12:21:15 +02:00
Danny Al-Gaaf
35f61a30dc mds/MDCache.cc: fix potential null pointer dereference
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-04-15 12:21:15 +02:00
Danny Al-Gaaf
3ed57641a2 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>
2015-04-15 12:21:15 +02:00
Danny Al-Gaaf
6a69e9020d TestErasureCodeShec: fix some -Wsign-compare
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-04-15 12:21:15 +02:00
Danny Al-Gaaf
0074e0947a 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>
2015-04-15 12:21:15 +02:00
Guang Yang
e4df0345f1 qa : misc fixes to stabilize test-erasure-code suite
Signed-off-by: Guang Yang <yguang@yahoo-inc.com>
2015-04-15 09:42:40 +00:00
Kefu Chai
ba57fb68cf ceph-disk: set '--cluster=ceph' in 'prepare' subcommand
otherwise the 'ceph' default value won't be catched by "main_prepare()",
this breaks TEST_corrupt_and_repair_replicated. seems the behaviour
was changed in python 2.7.9, so we move the default value to where
the '--cluster' argument is added instead of setting it in the
main argument parser.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-04-15 16:07:28 +08:00
Kefu Chai
b0435e0d4f Merge pull request #4335 from liewegas/wip-osd-df
mon: fix min/max variance for 'cpeh osd df' when osds are marked out

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-04-15 14:18:48 +08:00
Robin H. Johnson
b55f3dbbfe rgw: Document a lurking problem I see with subdomain/domain splitting
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2015-04-14 18:31:18 -07:00
Robin H. Johnson
044060fd40 rgw: Speed up the building of valid de-duplicated hostnames for regions.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2015-04-14 18:30:16 -07:00
Josh Durgin
275c1be604 Merge pull request #4316 from Ved-vampir/librdb
librdb: add perf counters descriptions

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-04-14 13:40:56 -07:00
Yehuda Sadeh
4cfeca03ad Merge pull request #4361 from oritwas/wip-11091
rgw: shouldn't return content-type: application/xml if content length is 0

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-04-14 11:53:49 -07:00
Josh Durgin
3819055c75 Merge pull request #4351 from ceph/wip-11256
Wip 11256

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-04-14 10:45:34 -07:00
Sage Weil
718faf0e69 mon: make note about osd df calc bug
Signed-off-by: Sage Weil <sage@redhat.com>
2015-04-14 09:35:04 -07:00