Lines Matching refs:create_opt
143 } create_opt = {
158 OPT("nsze", 's', arg_uint64, create_opt, nsze,
160 OPT("ncap", 'c', arg_uint64, create_opt, cap,
162 OPT("lbaf", 'f', arg_uint32, create_opt, lbaf,
164 OPT("mset", 'm', arg_uint32, create_opt, mset,
166 OPT("nmic", 'n', arg_uint32, create_opt, nmic,
168 OPT("pi", 'p', arg_uint32, create_opt, pi,
170 OPT("pil", 'l', arg_uint32, create_opt, pil,
172 OPT("flbas", 'L', arg_uint32, create_opt, flbas,
174 OPT("dps", 'd', arg_uint32, create_opt, dps,
176 // OPT("block-size", 'b', arg_uint32, create_opt, block_size,
182 { arg_string, &create_opt.dev, "controller-id|namespace-id" },
190 .ctx_size = sizeof(create_opt),
557 if (create_opt.cap == NONE64)
558 create_opt.cap = create_opt.nsze;
559 if (create_opt.nsze == NONE64) {
565 open_dev(create_opt.dev, &fd, 1, 1);
581 if (create_opt.nmic == NONE) {
582 create_opt.nmic = cd.mic ? (NVME_NS_DATA_NMIC_MAY_BE_SHARED_MASK <<
587 nsdata.nsze = create_opt.nsze;
588 nsdata.ncap = create_opt.cap;
589 if (create_opt.flbas == NONE)
590 nsdata.flbas = ((create_opt.lbaf & NVME_NS_DATA_FLBAS_FORMAT_MASK)
592 ((create_opt.mset & NVME_NS_DATA_FLBAS_EXTENDED_MASK)
595 nsdata.flbas = create_opt.flbas;
596 if (create_opt.dps == NONE)
597 nsdata.dps = ((create_opt.pi & NVME_NS_DATA_DPS_MD_START_MASK)
599 ((create_opt.pil & NVME_NS_DATA_DPS_PIT_MASK)
602 nsdata.dps = create_opt.dps;
603 nsdata.nmic = create_opt.nmic;
613 errx(EX_IOERR, "ioctl request to %s failed: %d", create_opt.dev, result);