Signed-off-by: Zhang Song <zhangsong02@qianxin.com>
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
level: advanced
desc: Size in bytes per second written to the hot devices, 0 indicates no limit
default: 0
+- name: seastore_cold_devices_count
+ type: uint
+ level: dev
+ desc: create cold devices during mkfs
+ default: 0
- name: seastore_cold_device_type
type: str
level: dev
// use a random osd uuid if not specified
osd_uuid.generate_random();
}
+ if (auto c = local_conf().get_val<uint64_t>("seastore_cold_devices_count");
+ c != 0) {
+ auto root = local_conf().get_val<std::string>("osd_data");
+ for (size_t i = 1; i <= c; i++) {
+ auto path = fmt::format("{}/block.{}", root, i);
+ seastar::touch_directory(path).get();
+ }
+ seastar::sync_directory(root).get();
+ }
osd.mkfs(
*store,
whoami,