os/bluestore: adds assert for device mounted before expand

Signed-off-by: Joshua Blanch <joshua.blanch@clyso.com>
This commit is contained in:
Joshua Blanch 2026-03-03 19:37:06 +00:00
parent 5962c7e8e9
commit 8d1dadb90c

View File

@ -9267,6 +9267,7 @@ int BlueStore::expand_devices(ostream& out)
<< std::dec << "(" << byte_u_t(size) << ")"
<< std::endl;
}
ceph_assert(mounted);
bluefs->expand_device(devid, size, old_size);
}
}