]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
os/bluestore: ensure block device size is a multiple of the block size
authorSage Weil <sage@redhat.com>
Wed, 24 Aug 2016 17:02:07 +0000 (13:02 -0400)
committerSage Weil <sage@redhat.com>
Wed, 24 Aug 2016 17:02:31 +0000 (13:02 -0400)
commit7290f34101c46ff02cf8606ad534467be09486d0
tree537b42feb701e6af4d9377e26d0167fb74ab31e2
parent108ee77b54a17cb6d25730bd764691a21931a920
os/bluestore: ensure block device size is a multiple of the block size

We might have a backing device that is an odd number of 512-byte sectors
but have the block_size configured to 4096.  Ensure the reported size
rounds down to avoid confusing other layers of the stack.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/KernelDevice.cc
src/os/bluestore/NVMEDevice.cc