]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-osd: infer objectstore type of 'type' file is missing 26720/head
authorSage Weil <sage@redhat.com>
Fri, 1 Mar 2019 14:57:36 +0000 (08:57 -0600)
committerSage Weil <sage@redhat.com>
Fri, 1 Mar 2019 21:51:38 +0000 (15:51 -0600)
commit9c09ff2d0c78fbaeab3d7f55108409fc88766ea3
treeee5fdfb09a30edd317524d330b647d9f46cd91b3
parent34f04be35bb9abcb5860b4c975b105adacc7a3aa
ceph-osd: infer objectstore type of 'type' file is missing

The current value of osd_objectstore should have no bearing--we should
rely on the state in front of us.

- If there is a directory called current/, assume filestore.
- If there is a symlink called block, assume bluestore.
- If we see none of those, fail.

Fixes: http://tracker.ceph.com/issues/38517
Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph_osd.cc