Lines Matching defs:hostnqn
234 char *hostnqn;
256 free(req->hostnqn);
323 {"hostnqn", offsetof(struct rpc_bdev_nvme_attach_controller, hostnqn), spdk_json_decode_string, true},
502 if (ctx->req.hostnqn) {
503 maxlen = sizeof(ctx->req.drv_opts.hostnqn);
504 len = strnlen(ctx->req.hostnqn, maxlen);
506 spdk_jsonrpc_send_error_response_fmt(request, -EINVAL, "hostnqn too long: %s",
507 ctx->req.hostnqn);
510 memcpy(ctx->req.drv_opts.hostnqn, ctx->req.hostnqn, len + 1);
582 if (strncmp(ctx->req.drv_opts.hostnqn, drv_opts->hostnqn, SPDK_NVMF_NQN_MAX_LEN) != 0) {
585 "A controller named %s already exists, but uses a different hostnqn (%s)",
586 ctx->req.name, drv_opts->hostnqn);
1629 char *hostnqn;
1644 free(req->hostnqn);
1653 {"hostnqn", offsetof(struct rpc_bdev_nvme_start_discovery, hostnqn), spdk_json_decode_string, true},
1752 if (ctx->req.hostnqn) {
1753 snprintf(ctx->req.opts.hostnqn, sizeof(ctx->req.opts.hostnqn), "%s",
1754 ctx->req.hostnqn);
2415 char *hostnqn;
2425 free(req->hostnqn);
2431 {"hostnqn", offsetof(struct rpc_bdev_nvme_start_mdns_discovery, hostnqn), spdk_json_decode_string, true},
2463 if (ctx->req.hostnqn) {
2464 snprintf(ctx->req.opts.hostnqn, sizeof(ctx->req.opts.hostnqn), "%s",
2465 ctx->req.hostnqn);