mirror of
https://github.com/ceph/ceph
synced 2024-12-18 01:16:55 +00:00
Merge pull request #7943 from llua/init-ceph
init-ceph.in: allow case-insensitive true in `osd crush update on start' Reviewed-by: Sage Weil <sage@redhat.com> Reviewed-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
This commit is contained in:
commit
c55de00382
@ -398,7 +398,7 @@ for name in $what; do
|
||||
|
||||
if [ "$type" = "osd" ]; then
|
||||
get_conf update_crush "" "osd crush update on start"
|
||||
if [ "${update_crush:-1}" = "1" -o "${update_crush:-1}" = "true" ]; then
|
||||
case "${update_crush:-1}" in 1|[Tt][Rr][Uu][Ee])
|
||||
# update location in crush
|
||||
get_conf osd_location_hook "$BINDIR/ceph-crush-location" "osd crush location hook"
|
||||
osd_location=`$osd_location_hook --cluster $cluster --id $id --type osd`
|
||||
@ -410,7 +410,7 @@ for name in $what; do
|
||||
EXIT_STATUS=$ERR
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
esac
|
||||
fi
|
||||
|
||||
echo Starting Ceph $name on $host...
|
||||
|
Loading…
Reference in New Issue
Block a user