bool mkfs = false;
unsigned num_collections = 128;
unsigned object_size = 4<<20 /* 4MB, rbd default */;
+ unsigned oi_size = 1<<9 /* 512b */;
std::optional<std::string> path;
bool is_futurized_store() const {
return type;
}
+ bool oi_enabled() const {
+ return oi_size > 0;
+ }
+
void populate_options(
boost::program_options::options_description &desc)
{
po::value<unsigned>()
->notifier([this](auto s) { num_collections = s; }),
"Number of collections to use for futurized_store backends"
+ ("object-info-size",
+ po::value<unsigned>()
+ ->notifier([this](auto s) { log_entry_size = s; }),
+ "Size of each log entry per pg to use for futurized_store backends"
+ ", 0 to disable"
)
("object-size",
po::value<unsigned>()
ptr.length(),
bl,
0);
+
+ if (config.oi_enabled() ) {
+ bufferlist attr;
+ attr.append(ceph::buffer::create(config.oi_size, '0'));
+ t.setattr(
+ mapping.chandle->get_cid(),
+ mapping.object,
+ "_",
+ attr);
+ }
+
return fs->do_transaction(
mapping.chandle,
std::move(t));