Lines Matching full:option

42                   Option
60 /* Send an option request.
62 * The request is for option @opt, with @data containing @len bytes of
81 stl_be_p(&req.option, opt); in nbd_send_option_request()
85 error_prepend(errp, "Failed to send option request header: "); in nbd_send_option_request()
90 error_prepend(errp, "Failed to send option request data: "); in nbd_send_option_request()
110 /* Receive the header of an option reply, which should match the given
118 if (nbd_read(ioc, reply, sizeof(*reply), "option reply", errp) < 0) { in nbd_receive_option_reply()
123 reply->option = be32_to_cpu(reply->option); in nbd_receive_option_reply()
127 trace_nbd_receive_option_reply(reply->option, nbd_opt_lookup(reply->option), in nbd_receive_option_reply()
132 error_setg(errp, "Unexpected option reply magic"); in nbd_receive_option_reply()
136 if (reply->option != opt) { in nbd_receive_option_reply()
137 error_setg(errp, "Unexpected option type %u (%s), expected %u (%s)", in nbd_receive_option_reply()
138 reply->option, nbd_opt_lookup(reply->option), in nbd_receive_option_reply()
173 error_prepend(errp, "Failed to read option error %" PRIu32 in nbd_handle_reply_err()
184 trace_nbd_reply_err_ignored(reply->option, in nbd_handle_reply_err()
185 nbd_opt_lookup(reply->option), in nbd_handle_reply_err()
192 error_setg(errp, "Denied by server for option %" PRIu32 " (%s)", in nbd_handle_reply_err()
193 reply->option, nbd_opt_lookup(reply->option)); in nbd_handle_reply_err()
197 error_setg(errp, "Invalid parameters for option %" PRIu32 " (%s)", in nbd_handle_reply_err()
198 reply->option, nbd_opt_lookup(reply->option)); in nbd_handle_reply_err()
202 error_setg(errp, "Server lacks support for option %" PRIu32 " (%s)", in nbd_handle_reply_err()
203 reply->option, nbd_opt_lookup(reply->option)); in nbd_handle_reply_err()
207 error_setg(errp, "TLS negotiation required before option %" PRIu32 in nbd_handle_reply_err()
208 " (%s)", reply->option, nbd_opt_lookup(reply->option)); in nbd_handle_reply_err()
217 error_setg(errp, "Server shutting down before option %" PRIu32 " (%s)", in nbd_handle_reply_err()
218 reply->option, nbd_opt_lookup(reply->option)); in nbd_handle_reply_err()
222 error_setg(errp, "Server requires INFO_BLOCK_SIZE for option %" PRIu32 in nbd_handle_reply_err()
223 " (%s)", reply->option, nbd_opt_lookup(reply->option)); in nbd_handle_reply_err()
227 error_setg(errp, "Unknown error code when asking for option %" PRIu32 in nbd_handle_reply_err()
228 " (%s)", reply->option, nbd_opt_lookup(reply->option)); in nbd_handle_reply_err()
271 error_setg(errp, "length too long for option end"); in nbd_receive_list()
285 error_setg(errp, "incorrect option length %" PRIu32, len); in nbd_receive_list()
289 if (nbd_read32(ioc, &namelen, "option name length", errp) < 0) { in nbd_receive_list()
333 * Send option for NBD_OPT_INFO or NBD_OPT_GO and parse the reply.
334 * Returns -1 if the option proves the export @info->name cannot be
335 * used, 0 if the option is unsupported (fall back to NBD_OPT_LIST and
556 * nbd_request_simple_option: Send an option request, and parse the reply.
581 error_setg(errp, "Server answered option %d (%s) with unexpected " in nbd_request_simple_option()
589 error_setg(errp, "Option %d ('%s') response length is %" PRIu32 in nbd_request_simple_option()
628 error_setg(errp, "Server don't support STARTTLS option"); in nbd_receive_starttls()
712 * 0 if iteration is complete (including if option is unsupported),