We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d0d4b60 + 548d069 commit eb01854Copy full SHA for eb01854
src/os/bluestore/BlueFS.cc
@@ -4867,11 +4867,16 @@ void BlueFS::trim_free_space(const string& type, std::ostream& outss)
4867
outss << "device " << type << " is not configured";
4868
return;
4869
}
4870
- if (alloc[bdev_id] && !is_shared_alloc(bdev_id)) {
+ if (alloc[bdev_id]) {
4871
if (!bdev[bdev_id]->is_discard_supported()) {
4872
outss << "device " << type << " does not support trim";
4873
4874
4875
+ if (is_shared_alloc(bdev_id)) {
4876
+ outss << "device " << type
4877
+ << " shares allocations with main device, trimming skipped.";
4878
+ return;
4879
+ }
4880
alloc[bdev_id]->foreach(iterated_allocation);
4881
outss << "device " << type << " trim done";
4882
0 commit comments