Lines Matching +full:dry +full:- +full:run
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2019-2021 Netflix, Inc
95 * Argument names and short names selected to match the nvme-cli program
96 * so vendor-siupplied formulas work out of the box on FreeBSD with a simple
120 ARG("data-len", 'l', arg_uint32, opt, data_len,
122 ARG("metadata-len", 'm', arg_uint32, opt, metadata_len,
126 ARG("input-file", 'i', arg_path, opt, ifn,
128 ARG("namespace-id", 'n', arg_uint32, opt, nsid,
136 ARG("raw-binary", 'b', arg_none, opt, binary,
138 ARG("dry-run", 'd', arg_none, opt, dry_run,
142 ARG("show-command", 's', arg_none, opt, show_command,
150 { arg_string, &opt.dev, "controller-id|namespace-id" },
157 int fd = -1, ifd = -1; in passthru()
167 errx(EX_USAGE, "need exactly one of --read or --write"); in passthru()
169 errx(EX_USAGE, "need exactly one of --read or --write"); in passthru()
170 if (*opt.ifn && (ifd = open(opt.ifn, O_RDONLY)) == -1) { in passthru()
221 warn("Doing a dry-run, no actual I/O"); in passthru()
258 if (ifd > -1) in passthru()
279 .name = "admin-passthru",
288 .name = "io-passthru",