Lines Matching full:node
291 error_setg(errp, "Can't set node '%s' to r/o with copy-on-read enabled", in bdrv_can_set_read_only()
300 error_setg(errp, "Node '%s' is read only", in bdrv_can_set_read_only()
311 * Returns 0 if the node is already read-only or it could switch the node to
314 * Returns -EACCES if the node is read-write and BDRV_O_AUTO_RDONLY is not set
315 * or bdrv_can_set_read_only() forbids making the node read-only. If @errmsg
754 error_setg(errp, "Block node '%s' is not opened", bs->filename); in bdrv_co_delete_file()
1200 return g_strdup_printf("node '%s'", bdrv_get_node_name(parent)); in bdrv_child_get_parent_desc()
1270 "node is used as backing hd of '%s'", in bdrv_backing_attach()
1378 * be probed by default (even when the node itself has BDRV_O_PROTOCOL in bdrv_inherited_options()
1616 error_setg(errp, "Invalid node-name: '%s'", node_name); in bdrv_assign_node_name()
1622 error_setg(errp, "node-name=%s is conflicting with a device id", in bdrv_assign_node_name()
1627 /* takes care of avoiding duplicates node names */ in bdrv_assign_node_name()
1629 error_setg(errp, "Duplicate nodes with node-name='%s'", node_name); in bdrv_assign_node_name()
1633 /* Make sure that the node name isn't truncated */ in bdrv_assign_node_name()
1635 error_setg(errp, "Node name too long"); in bdrv_assign_node_name()
1639 /* copy node name into the bs and insert it into the graph list */ in bdrv_assign_node_name()
1737 * Create and open a block node.
1775 /* Create and open a block node. */
1788 .name = "node-name",
1790 .help = "Node name of the block device node",
1795 .help = "Block driver to use for the node",
1810 .help = "Node is activated",
1815 .help = "Node is opened in read-only mode",
1820 .help = "Node can become read-only if opening read-write fails",
1992 node_name = qemu_opt_get(opts, "node-name"); in bdrv_open_common()
2212 * child node.
2234 error_setg(errp, "Permission conflict on node '%s': permissions '%s' are " in bdrv_a_allow_b()
2235 "both required by %s (uses node '%s' as '%s' child) and " in bdrv_a_allow_b()
2236 "unshared by %s (uses node '%s' as '%s' child).", in bdrv_a_allow_b()
2294 * On function start @list must be already topologically sorted and for any node
2295 * in the @list the whole subtree of the node must be in the @list as well. The
2525 error_setg(errp, "Block node is read-only"); in bdrv_node_refresh_perm()
2527 error_setg(errp, "Read-only block node '%s' cannot support " in bdrv_node_refresh_perm()
2550 /* Check this node */ in bdrv_node_refresh_perm()
2613 * topologically sorted. It's not a problem if some node occurs in the @list
2928 * Replaces the node that a BdrvChild points to without updating permissions.
2942 * If we want to change the BdrvChild to point to a drained node as its new in bdrv_replace_child_noperm()
2987 * is not drained, allow requests to come in only after the new node has in bdrv_replace_child_noperm()
3096 error_setg(errp, "Permission '%s' unavailable on inactive node", in bdrv_attach_child_common()
3323 * Update permissions for old node. We're just taking a parent away, so in bdrv_root_unref_child()
3331 * node moves back to the main AioContext in bdrv_root_unref_child()
3466 * If the respective child is already present (i.e. we're detaching a node),
3467 * that child node must be drained.
3495 * Node without drv is an object without a class :/. TODO: finally fix in bdrv_set_file_or_backing_noperm()
3499 error_setg(errp, "Node corrupted"); in bdrv_set_file_or_backing_noperm()
3512 error_setg(errp, "Driver '%s' of node '%s' does not support backing " in bdrv_set_file_or_backing_noperm()
3527 error_setg(errp, "Cannot set file child to format node without " in bdrv_set_file_or_backing_noperm()
3825 * child of a node. A notable difference from bdrv_open_child() is that it
3852 * option inheritance to work. Existing callers use it for the root node.
4042 * parent->drv is not set yet because this node is opened for in bdrv_open_inherit()
4044 * to be a format node. in bdrv_open_inherit()
4119 * same BDS, which is why we put the node name back into options. */ in bdrv_open_inherit()
4307 "node-name", "discard", "cache.direct", "cache.no-flush", in bdrv_reset_options_allowed()
4406 * 3. Inherited from parent node in bdrv_reopen_queue_child()
4421 /* Inherit from parent node */ in bdrv_reopen_queue_child()
4492 * reference is null or points to a different node. in bdrv_reopen_queue_child()
4701 * If 'backing' contains the node name of the backing file of
4704 * If 'backing' contains a different node name (or is null) then check
4798 error_setg(errp, "'%s' is a %s filter node that does not support a " in bdrv_reopen_parse_file_or_backing()
4911 /* All other options (including node-name and driver) must be unchanged. in bdrv_reopen_prepare()
4958 error_setg(errp, "Block format '%s' used by node '%s' " in bdrv_reopen_prepare()
4986 * either a reference to an existing node (using its node name) in bdrv_reopen_prepare()
5244 * guest device -> node A -> further backing chain... in should_update_child()
5247 * chain, so we first attach A as its backing node: in should_update_child()
5249 * node B in should_update_child()
5252 * guest device -> node A -> further backing chain... in should_update_child()
5259 * guest device -> node B in should_update_child()
5262 * node A -> further backing chain... in should_update_child()
5264 * In general, when replacing a node A (c->bs) by a node B (@to), in should_update_child()
5580 * Replace @bs by newly created block node.
5612 node_name = qdict_get_try_str(options, "node-name"); in bdrv_insert_node()
5622 error_prepend(errp, "Could not create node: "); in bdrv_insert_node()
5641 error_prepend(errp, "Could not replace node: "); in bdrv_insert_node()
5722 * Finds the first non-filter node above bs in the chain between
5723 * active and bs. The returned node is either an immediate parent of
5905 * If 'top' is an implicit node (e.g. "commit_top") we should skip in bdrv_drop_intermediate()
6141 * Return whether the given node supports compressed writes.
6237 /* This function is to find a node in the bs graph */
6301 static uintptr_t xdbg_graph_node_num(XDbgBlockGraphConstructor *gr, void *node) in xdbg_graph_node_num() argument
6303 uintptr_t ret = (uintptr_t)g_hash_table_lookup(gr->graph_nodes, node); in xdbg_graph_node_num()
6314 g_hash_table_insert(gr->graph_nodes, node, (void *)ret); in xdbg_graph_node_num()
6319 static void xdbg_graph_add_node(XDbgBlockGraphConstructor *gr, void *node, in xdbg_graph_add_node() argument
6326 n->id = xdbg_graph_node_num(gr, node); in xdbg_graph_add_node()
6440 error_setg(errp, "Cannot find device=\'%s\' nor node-name=\'%s\'", in bdrv_lookup_bs()
6511 * name associated. Since node and device names live in the same
6765 * directly against the backing node's filename. in bdrv_find_backing_image()
7008 * Inactivating an already inactive node on user request is harmless, but if in bdrv_inactivate_recurse()
7016 /* Inactivate this node */ in bdrv_inactivate_recurse()
7068 error_setg(errp, "Node has active parent node"); in bdrv_inactivate()
7074 error_setg_errno(errp, -ret, "Failed to inactivate node"); in bdrv_inactivate()
7228 "Node '%s' is busy: ", in bdrv_op_is_blocked()
7497 * moving the node to a different AioContext. Read new_ctx only afterwards. in bdrv_co_enter()
7743 * Run all callbacks collected in the recursion to switch every node's in bdrv_try_change_aio_context_locked()
7830 error_setg(errp, "Node is ejected"); in bdrv_amend_options()
7844 * replaced by a node that always shows the same data as @bs. This is
7885 * Check whether the given @node_name can be replaced by a node that
7892 * The result (whether the node can be replaced or not) is only valid
7903 error_setg(errp, "Failed to find node with node-name='%s'", node_name); in check_to_replace_node()
7911 /* We don't want arbitrary node of the BDS chain to be replaced only the top in check_to_replace_node()
7917 error_setg(errp, "Cannot replace '%s' by a node mirrored from '%s', " in check_to_replace_node()
8184 error_setg(errp, "Node '%s' is ejected", bs->node_name); in bdrv_dirname()
8218 error_setg(errp, "The node %s does not support adding a child", in bdrv_add_child()
8243 error_setg(errp, "The node %s already has a parent", in bdrv_add_child()
8263 error_setg(errp, "The node %s does not support removing a child", in bdrv_del_child()
8275 error_setg(errp, "The node %s does not have a child named %s", in bdrv_del_child()
8380 * Return the primary child of this node: For filters, that is the
8419 * not return a filter node that is not expected by the in bdrv_do_skip_filters()