]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: make block device fsid probing generic
authorSage Weil <sage@redhat.com>
Tue, 1 Dec 2015 22:16:11 +0000 (17:16 -0500)
committerSage Weil <sage@redhat.com>
Tue, 1 Dec 2015 22:16:11 +0000 (17:16 -0500)
commit880a59d1b769d689361af08ce46fa811e9e37196
treebf5080d8ead4dd7d556d0f848a7abc3c69f4195a
parent18c5e18fc59ce89f56479c97bffb64de3a0dae51
osd: make block device fsid probing generic

Currently the option name and invocation assume that the block device
is a journal (and FileStore journal, managed by FileJournal).  Rework
the interface so that we can probe any block device and other ObjectStore
implementations will have a chance to identify the device (and return the
osd fsid).

Switch to a static method while we are at it so we avoid instantiating
each backend.

Note that only FileStore is probed at the moment; that will change soon!

Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-disk
src/ceph_osd.cc
src/os/FileStore.cc
src/os/FileStore.h
src/os/KeyValueStore.h
src/os/MemStore.cc
src/os/MemStore.h
src/os/ObjectStore.cc
src/os/ObjectStore.h