Lines Matching refs:protocol

157 /* check if the path starts with "<protocol>:" */
239 * protocol prefixes (especially "file:") from a filename and for putting the
246 /* Stripping the explicit protocol prefix may result in a protocol
255 /* And we can thus fix the protocol detection issue by prefixing it
265 /* If no protocol prefix was detected, we can use the shortened
627 * Simple implementation of bdrv_co_create_opts for protocol drivers
715 * 'opts' contains a QemuOptsList with a combination of format and protocol
719 * in 'opts->list'. So if the protocol has options with the same name
725 * create_opts of the protocol. So the new QemuOpts, will contain only the
726 * protocol defaults.
903 static BlockDriver *bdrv_do_find_protocol(const char *protocol)
909 if (drv1->protocol_name && !strcmp(drv1->protocol_name, protocol)) {
922 char protocol[128];
932 * override an explicit protocol specification, but moving this
949 if (len > sizeof(protocol) - 1)
950 len = sizeof(protocol) - 1;
951 memcpy(protocol, filename, len);
952 protocol[len] = '\0';
954 drv1 = bdrv_do_find_protocol(protocol);
961 !strcmp(block_driver_modules[i].protocol_name, protocol)) {
964 drv1 = bdrv_do_find_protocol(protocol);
973 error_setg(errp, "Unknown protocol '%s'", protocol);
1972 /* Open the image, either directly or using a protocol */
2025 /* Parse json: pseudo-protocol */
2053 bool protocol = *flags & BDRV_O_PROTOCOL;
2076 protocol = drv->bdrv_file_open;
2079 if (protocol) {
2089 if (protocol && filename) {
2104 if (!drvname && protocol) {
2119 assert(drv || !protocol);
4158 /* BDRV_O_PROTOCOL must be set iff a protocol BDS is about to be created */
4160 /* file must be NULL if a protocol BDS is about to be created
4204 error_setg(errp, "Block protocol '%s' doesn't support the option "
5081 * filenames using the json:{} pseudo-protocol, they will be
6808 /* backing_file can either be relative, or absolute, or a protocol. If it is
6870 * If either of the filename paths is actually a protocol, then
8163 * "json:" (for use through the JSON pseudo protocol) and put here.
8265 * - the file is a protocol BDS, and