]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/osd: add osd to crush when it boots
authorKefu Chai <kchai@redhat.com>
Fri, 21 Jun 2019 11:00:56 +0000 (19:00 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 21 Jun 2019 12:31:47 +0000 (20:31 +0800)
commit4fa91535907e9ba042c9ce48815cd2eea49cc448
tree7c08e563970476c8a95084fcd3f5aa2879b7f4f1
parent9de25a7992a55314d0a2dc97f12bc34fd9347604
crimson/osd: add osd to crush when it boots

this maps the corresponding behavior of classic OSD, we could rely on
the start script to do this job. but statfs reported by object storage
is more accurate than what we have using `df`.

in future, we could extract this feature out of crimson-osd by querying
crimson-osd for the size of underlying storage. and prepare the mon
command using a script. but let's have this function builtin in
crimson-osd at this moment. so it's compatible with classic OSD.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/osd.cc
src/crimson/osd/osd.h