if (!dedupe_str.empty()) {
bool ws = false, wd = false;
for (const auto &tok : split_tokens(dedupe_str)) {
- if (tok == "src") ws = true;
- else if (tok == "dst") wd = true;
- else THROW_CONFIG_ERROR("filter." + name + ".dedupe", dedupe_str, "unknown token '" + tok + "': must be src or dst");
+ if (tok == "src") ws = true;
+ else if (tok == "dst") wd = true;
+ else THROW_CONFIG_ERROR("filter." + name + ".dedupe", dedupe_str, "unknown token '" + tok + "': must be src or dst");
}
rule.extent_conds.push_back(make_unique<DedupeCondition>(ws, wd));
rule.extent_conds.push_back(
make_unique<ReadonlyExtentCondition>(want_ro, true));
} else if (ro_match_str.empty() || ro_match_str == "some") {
- rule.extent_conds.push_back(
- make_unique<ReadonlyExtentCondition>(want_ro, false));
+ rule.extent_conds.push_back(
+ make_unique<ReadonlyExtentCondition>(want_ro, false));
} else {
- THROW_CONFIG_ERROR("filter." + name + ".readonly-match", ro_match_str, "must be every or some");
+ THROW_CONFIG_ERROR("filter." + name + ".readonly-match", ro_match_str, "must be every or some");
}
}
rule.extent_conds.push_back(
make_unique<PreallocExtentCondition>(want_prealloc, true));
} else if (prealloc_match_str.empty() || prealloc_match_str == "some") {
- rule.extent_conds.push_back(
- make_unique<PreallocExtentCondition>(want_prealloc, false));
+ rule.extent_conds.push_back(
+ make_unique<PreallocExtentCondition>(want_prealloc, false));
} else {
- THROW_CONFIG_ERROR("filter." + name + ".prealloc-match", prealloc_match_str, "must be every or some");
+ THROW_CONFIG_ERROR("filter." + name + ".prealloc-match", prealloc_match_str, "must be every or some");
}
}