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.
1 parent b8db14c commit 548d069Copy full SHA for 548d069
src/os/bluestore/BlueFS.cc
@@ -4817,11 +4817,16 @@ void BlueFS::trim_free_space(const string& type, std::ostream& outss)
4817
outss << "device " << type << " is not configured";
4818
return;
4819
}
4820
- if (alloc[bdev_id] && !is_shared_alloc(bdev_id)) {
+ if (alloc[bdev_id]) {
4821
if (!bdev[bdev_id]->is_discard_supported()) {
4822
outss << "device " << type << " does not support trim";
4823
4824
4825
+ if (is_shared_alloc(bdev_id)) {
4826
+ outss << "device " << type
4827
+ << " shares allocations with main device, trimming skipped.";
4828
+ return;
4829
+ }
4830
alloc[bdev_id]->foreach(iterated_allocation);
4831
outss << "device " << type << " trim done";
4832
0 commit comments