]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: do not extend blobs with unused bitmap
authorSage Weil <sage@redhat.com>
Tue, 4 Apr 2017 15:52:24 +0000 (11:52 -0400)
committerSage Weil <sage@redhat.com>
Tue, 4 Apr 2017 16:12:26 +0000 (12:12 -0400)
commitf8f909496435dcb889cd7fe7339b1e393abfbbb0
tree2d2f120860c30e3db313b07c5ab2510f767a3b98
parent83e7b81737a832e6e3211f18cf635677843330cf
os/bluestore: do not extend blobs with unused bitmap

If we resize the blob we need to adjust the resolution of the
unused bitmap, and that is only possible for some bit patterns.
For now just ignore blobs with unused blocks.

Add an assert in add_tail() so that we don't forget that
add_tail is (probably) where we'd would do that adjustment.

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