]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore/BlueFS: revamp bdev ids
authorSage Weil <sage@redhat.com>
Mon, 4 Apr 2016 18:39:18 +0000 (14:39 -0400)
committerSage Weil <sage@redhat.com>
Tue, 5 Apr 2016 15:19:04 +0000 (11:19 -0400)
commit75ddd73c31dc183ef03cfc4fb719123ed423b0da
tree3faf3957cfda92589a5cf8c391599a10e19d48b5
parent9470969da1154edbc3f9c39b42101a38b61921c2
os/bluestore/BlueFS: revamp bdev ids

You cannot tell from the old bdev vector which device
was which.

- use a fixed id for each type/slot
- go from fast(small) to slow(big)
- normalize the allocation fallback to try any slower
  device.
- clean up the BlueStore instantiation/setup accordingly

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueFS.cc
src/os/bluestore/BlueFS.h
src/os/bluestore/BlueStore.cc
src/test/objectstore/test_bluefs.cc