OPTION(osd_max_pgls, OPT_U64) // max number of pgls entries to return
OPTION(osd_client_message_size_cap, OPT_U64) // client data allowed in-memory (in bytes)
OPTION(osd_client_message_cap, OPT_U64) // num client messages allowed in-memory
-OPTION(osd_pg_bits, OPT_INT) // bits per osd
-OPTION(osd_pgp_bits, OPT_INT) // bits per osd
OPTION(osd_crush_update_weight_set, OPT_BOOL) // update weight set while updating weights
OPTION(osd_crush_chooseleaf_type, OPT_INT) // 1 = host
OPTION(osd_pool_use_gmt_hitset, OPT_BOOL) // try to use gmt for hitset archive names if all osds in cluster support it.
.set_default(100)
.set_description(""),
- Option("osd_pg_bits", Option::TYPE_INT, Option::LEVEL_ADVANCED)
- .set_default(6)
- .set_description(""),
-
- Option("osd_pgp_bits", Option::TYPE_INT, Option::LEVEL_ADVANCED)
- .set_default(6)
- .set_description(""),
-
Option("osd_crush_update_weight_set", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
.set_default(true)
.set_description(""),
bool createpool = false;
bool create_from_conf = false;
int num_osd = 0;
- int pg_bits = g_conf->osd_pg_bits;
- int pgp_bits = g_conf->osd_pgp_bits;
+ int pg_bits = 6;
+ int pgp_bits = 6;
bool clobber = false;
bool modified = false;
std::string export_crush, import_crush, test_map_pg, test_map_object;
if (!val.empty() && val != "plain") {
tree_formatter.reset(Formatter::create(val, "", "json"));
}
+ } else if (ceph_argparse_witharg(args, i, &pg_bits, err, "--osd-pg-bits", (char*)NULL)) {
+ } else if (ceph_argparse_witharg(args, i, &pgp_bits, err, "--osd-pgp-bits", (char*)NULL)) {
} else if (ceph_argparse_witharg(args, i, &upmap_file, "--upmap-cleanup", (char*)NULL)) {
upmap_cleanup = true;
} else if (ceph_argparse_witharg(args, i, &upmap_file, "--upmap-save", (char*)NULL)) {