]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: check OSDSuperblock in mkfs() when it already have superblock 6385/head
authorVicente Cheng <freeze.bilsted@gmail.com>
Tue, 27 Oct 2015 09:11:30 +0000 (17:11 +0800)
committerVicente Cheng <freeze.bilsted@gmail.com>
Tue, 27 Oct 2015 09:11:30 +0000 (17:11 +0800)
commit7fcd423706f129e83ada2b30bef598bc8136b340
tree8006fb1844e9e6beec50883d336a3e5eedaa8ba8
parente684e4252f1fad24e4d0dd5242e8de593f084868
osd: check OSDSuperblock in mkfs() when it already have superblock

    When we remove the ready flag from osd directory, it will execute mkfs again.
    It will read superblock but can not check osd id and cluster fsid correctly.

    It need to decode the superblock that we read from osd.
    It will always failure now, so I modify it for read osd id and fsid correctly.

http://tracker.ceph.com/issues/13586
Fixes: #13586
Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
src/osd/OSD.cc