OSD::calc_priors_during: fix confusing for loop bracing (cosmetic)

Confusing lack of braces is confusing.

Signed-off-by: Samuel Just <sam.just@inktank.com>
OSD::calc_priors_during: handle CRUSH_ITEM_NONE correctly

Fixes: #8507
Signed-off-by: Samuel Just <sam.just@inktank.com>
ceph: output prompt only if stdin is tty

In loop mode, output prompt only if stdin is tty, i.e. if we are
interactive.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
  Fix EINVAL err when use "ceph tell osd.* bench"

  Signed-off-by: huangjun <hjwsm1989@gmail.com>
support dmcrypt partitions when activating

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
Merge pull request #1968 from ceph/wip-ceph-isatty

ceph: output prompt only if stdin is tty

Reviewed-by: Sage Weil <sage@inktank.com>
osd: introduce simple sleep during scrub

This option is similar to osd_snap_trim_sleep: simply inject an optional
sleep in the thread that is doing scrub work.  This is a very kludgey and
coarse knob for limiting the impact of scrub on the cluster, but can help
until we have a more robust and elegant solution.

Only sleep if we are in the NEW_CHUNK state to avoid delaying processing of
an in-progress chunk.  In this state nothing is blocked on anything.
Conveniently, chunky_scrub() requeues itself for each new chunk.

Backport: firefly, dumpling
Signed-off-by: Sage Weil <sage@inktank.com>
tests: remove spurious and harmless find command

Signed-off-by: Loic Dachary <loic@dachary.org>
enforce rados put aligment

Signed-off-by: Lluis Pamies-Juarez <lluis.pamies-juarez@hgst.com>
rgw-admin: Fix the 'show log' command

Fixes: #8553

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Signed-off-by: Sylvain Munaut <s.munaut@whatever-company.com>
ReplicatedPG: 'ajusted' typo

Signed-off-by: <Tyler Brekke> tyler.brekke@inktank.com
Merge pull request #1985 from concubidated/master

ReplicatedPG: Fix 'ajusted' typo

Reviewed-by: Sage Weil <sage@inktank.com>
Merge pull request #1986 from ceph/wip-scrub-sleep

osd: introduce simple sleep during scrub

Reviewed-by: Samuel Just <sam.just@inktank.com>
Merge pull request #1943 from athanatos/wip-8507

Wip 8507

Reviewed-by: Sage Weil <sage@inktank.com>
Merge pull request #1984 from llpamies/wip-8622

enforce rados put aligment

Reviewed-by: Loic Dachary <loic@dachary.org>
Merge pull request #1983 from dachary/wip-osd-config

tests: remove spurious and harmless find command

Reviewed-by: Florent Flament <florent.flament@cloudwatt.com>
erasure-code: verify that rados put enforces alignment

http://tracker.ceph.com/issues/8622 refs: #8622

Signed-off-by: Loic Dachary <loic@dachary.org>
Merge pull request #1987 from dachary/wip-8622-rados-alignment

erasure-code: verify that rados put enforces alignment

Reviewed-by: Lluis Pamies-Juarez <lluis@pamies.cat>
test: fix -Wsign-compare warnings

Signed-off-by: Loic Dachary <loic@dachary.org>
tests: prevent gitbuilder trigger in test-erasure-code.sh

Use the INFO keywork instead of WARNING so that gitbuilder does not
confuse this with a warning worth fixing.

Signed-off-by: Loic Dachary <loic@dachary.org>