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 main devices, 0 incidates no limit
default: 0
+- name: seastore_secondary_devices_count
+ type: size
+ level: dev
+ desc: create secondary devices during mkfs
+ default: 0
- name: seastore_secondary_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<Option::size_t>("seastore_secondary_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,