Lines Matching defs:name

722      * in 'opts->list'.  So if the protocol has options with the same name
845 * Return the actual file name used upon success, otherwise NULL.
1336 * 'raw' as the format instead of putting the protocol name as the
1617 error_setg(errp, "Invalid node-name: '%s'", node_name);
1623 error_setg(errp, "node-name=%s is conflicting with a device id",
1630 error_setg(errp, "Duplicate nodes with node-name='%s'", node_name);
1634 /* Make sure that the node name isn't truncated */
1636 error_setg(errp, "Node name too long");
1640 /* copy node name into the bs and insert it into the graph list */
1785 .name = "bdrv_common",
1789 .name = "node-name",
1791 .help = "Node name of the block device node",
1794 .name = "driver",
1799 .name = BDRV_OPT_CACHE_DIRECT,
1804 .name = BDRV_OPT_CACHE_NO_FLUSH,
1809 .name = BDRV_OPT_ACTIVE,
1814 .name = BDRV_OPT_READ_ONLY,
1819 .name = BDRV_OPT_AUTO_READ_ONLY,
1824 .name = "detect-zeroes",
1829 .name = BDRV_OPT_DISCARD,
1834 .name = BDRV_OPT_FORCE_SHARE,
1843 .name = "simple-create-opts",
1847 .name = BLOCK_OPT_SIZE,
1852 .name = BLOCK_OPT_PREALLOC,
1925 error_setg(errp, "The '%s' block driver requires a file name",
1993 node_name = qemu_opt_get(opts, "node-name");
2109 /* Fetch the file name from the options QDict if necessary */
2239 b_user, child_bs_name, b->name,
2240 a_user, child_bs_name, a->name);
2656 const char *name;
2668 for (p = permissions; p->name; p++) {
2673 g_string_append(result, p->name);
3011 g_free(child->name);
3105 .name = g_strdup(child_name),
3506 child->name, parent_bs->node_name, child->bs->node_name);
4120 * same BDS, which is why we put the node name back into options. */
4201 child_key_dot = g_strdup_printf("%s.", child->name);
4204 qdict_del(bs->explicit_options, child->name);
4205 qdict_del(bs->options, child->name);
4308 "node-name", "discard", "cache.direct", "cache.no-flush",
4489 if (qdict_haskey(options, child->name)) {
4490 const char *childref = qdict_get_try_str(options, child->name);
4505 /* Extract child options ("child-name.*") */
4506 char *child_key_dot = g_strdup_printf("%s.", child->name);
4702 * If 'backing' contains the node name of the backing file of
4705 * If 'backing' contains a different node name (or is null) then check
4912 /* All other options (including node-name and driver) must be unchanged.
4971 * file or if the image file has a backing file name as part of
4987 * either a reference to an existing node (using its node name)
5022 if (!strcmp(child->name, entry->key)) {
5030 continue; /* Found child with this name, skip option */
5119 qdict_del(bs->explicit_options, child->name);
5120 qdict_del(bs->options, child->name);
5367 c->name, from->node_name);
5372 c->name, from->node_name);
5613 node_name = qdict_get_try_str(options, "node-name");
5779 child->name, i->node_name, child->bs->node_name);
5810 child->name, child->bs->node_name);
6176 void bdrv_iterate_format(void (*it)(void *opaque, const char *name),
6321 XDbgBlockGraphNodeType type, const char *name)
6329 n->name = g_strdup(name);
6345 edge->name = g_strdup(child->name);
6374 const char *name = blk_name(blk);
6376 if (!*name) {
6377 name = allocated_name = blk_get_attached_dev_id(blk);
6380 name);
6441 error_setg(errp, "Cannot find device=\'%s\' nor node-name=\'%s\'",
6488 const char *name;
6491 /* If multiple parents have a name, just pick the first one. */
6494 name = c->klass->get_name(c);
6495 if (name && *name) {
6496 return name;
6512 * name associated. Since node and device names live in the same
7374 error_setg(errp, "Expected backing file name, got empty string");
7904 error_setg(errp, "Failed to find node with node-name='%s'", node_name);
8064 /* This BDS's file name may depend on any of its children's file names, so
8102 * options, or name them differently from BdrvChild.name */
8111 qdict_put(opts, child->name,
8127 /* Obsolete information is of no use here, so drop the old file name