mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
Merge pull request #17874 from ShowingCloud/master
ceph-bluestore-tool: check if bdev is empty on 'bluefs-bdev-expand' Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
4c19f6f2da
@ -471,6 +471,7 @@ int main(int argc, char **argv)
|
||||
for (int devid : { BlueFS::BDEV_WAL, BlueFS::BDEV_DB }) {
|
||||
interval_set<uint64_t> before;
|
||||
fs->get_block_extents(devid, &before);
|
||||
if (before.empty()) continue;
|
||||
uint64_t end = before.range_end();
|
||||
uint64_t size = fs->get_block_device_size(devid);
|
||||
if (end < size) {
|
||||
|
Loading…
Reference in New Issue
Block a user