Skip to content

Commit ab19ac7

Browse files
committed
fabrics: rename fabrics_args to nvmf_args
Use the nvmf prefix for the common fabrics command line arguments, instead the fabrics prefix. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 3a72d66 commit ab19ac7

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

fabrics.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static const char *nvmf_concat = "enable secure concatenation";
9494
static const char *nvmf_config_file = "Use specified JSON configuration file or 'none' to disable";
9595
static const char *nvmf_context = "execution context identification string";
9696

97-
struct fabric_args {
97+
struct nvmf_args {
9898
const char *subsysnqn;
9999
const char *transport;
100100
const char *traddr;
@@ -169,7 +169,7 @@ static void save_discovery_log(char *raw, struct nvmf_discovery_log *log)
169169
}
170170

171171
static int setup_common_context(struct nvmf_context *fctx,
172-
struct fabric_args *fa);
172+
struct nvmf_args *fa);
173173

174174
struct cb_fabrics_data {
175175
struct nvme_fabrics_config *cfg;
@@ -272,7 +272,7 @@ static int cb_parser_next_line(struct nvmf_context *fctx, void *user_data)
272272
{
273273
struct cb_fabrics_data *cfd = user_data;
274274
struct nvme_fabrics_config cfg;
275-
struct fabric_args fa = {};
275+
struct nvmf_args fa = {};
276276
char *ptr, *p, line[4096];
277277
int argc, ret = 0;
278278
bool force = false;
@@ -317,7 +317,7 @@ static int cb_parser_next_line(struct nvmf_context *fctx, void *user_data)
317317
}
318318

319319
static int setup_common_context(struct nvmf_context *fctx,
320-
struct fabric_args *fa)
320+
struct nvmf_args *fa)
321321
{
322322
int err;
323323

@@ -344,7 +344,7 @@ static int setup_common_context(struct nvmf_context *fctx,
344344
}
345345

346346
static int create_common_context(struct nvme_global_ctx *ctx,
347-
bool persistent, struct fabric_args *fa,
347+
bool persistent, struct nvmf_args *fa,
348348
struct nvme_fabrics_config *cfg,
349349
void *user_data, struct nvmf_context **fctxp)
350350
{
@@ -390,7 +390,7 @@ static int create_common_context(struct nvme_global_ctx *ctx,
390390

391391
static int create_discovery_context(struct nvme_global_ctx *ctx,
392392
bool persistent, const char *device,
393-
struct fabric_args *fa,
393+
struct nvmf_args *fa,
394394
struct nvme_fabrics_config *cfg,
395395
void *user_data, struct nvmf_context **fctxp)
396396
{
@@ -480,7 +480,7 @@ int fabrics_discovery(const char *desc, int argc, char **argv, bool connect)
480480
int ret;
481481
char *format = "normal";
482482
struct nvme_fabrics_config cfg;
483-
struct fabric_args fa = { .subsysnqn = NVME_DISC_SUBSYS_NAME };
483+
struct nvmf_args fa = { .subsysnqn = NVME_DISC_SUBSYS_NAME };
484484
char *device = NULL;
485485
bool force = false;
486486
bool json_config = false;
@@ -597,7 +597,7 @@ int fabrics_connect(const char *desc, int argc, char **argv)
597597
int ret;
598598
nvme_print_flags_t flags;
599599
struct nvme_fabrics_config cfg = { 0 };
600-
struct fabric_args fa = { 0 };
600+
struct nvmf_args fa = { 0 };
601601
char *format = "normal";
602602

603603
NVMF_ARGS(opts, fa, cfg,
@@ -900,7 +900,7 @@ int fabrics_config(const char *desc, int argc, char **argv)
900900
_cleanup_nvme_global_ctx_ struct nvme_global_ctx *ctx = NULL;
901901
char *config_file = PATH_NVMF_CONFIG;
902902
struct nvme_fabrics_config cfg;
903-
struct fabric_args fa = { };
903+
struct nvmf_args fa = { };
904904
unsigned int verbose = 0;
905905
int ret;
906906

0 commit comments

Comments
 (0)