Lines Matching full:node

40             'node-name': 'hd%d' % idx,
42 'node-name': 'hd%d-file' % idx,
122 for node in result['return']:
123 if node['node-name'] == node_name:
124 return node
149 … self.reopen(opts, {'node-name': 'not-found'}, "Failed to find node with node-name='not-found'")
150 self.reopen(opts, {'node-name': ''}, "Failed to find node with node-name=''")
151 …self.reopen(opts, {'node-name': None}, "Invalid parameter type for 'options[0].node-name', expecte…
155 self.reopen(opts, {'file': 'not-found'}, "Cannot find device='' nor node-name='not-found'")
156 self.reopen(opts, {'file': ''}, "Cannot find device='' nor node-name=''")
158 self.reopen(opts, {'file.node-name': 'newname'}, "Cannot change the option 'node-name'")
165 # node-name is optional in BlockdevOptions, but blockdev-reopen needs it
166 del opts['node-name']
167 self.reopen(opts, {}, "node-name not specified")
172 # Remove the node
187 # Everything works if we pass 'backing' using the existing node name
188 for node in original_graph['return']:
189 if node['drv'] == iotests.imgfmt and node['file'] == hd_path[0]:
190 backing_node_name = node['node-name']
193 # We can't use a non-existing or empty (non-NULL) node as the backing image
194 … self.reopen(opts, {'backing': 'not-found'}, "Cannot find device=\'\' nor node-name=\'not-found\'")
195 self.reopen(opts, {'backing': ''}, "Cannot find device=\'\' nor node-name=\'\'")
204 self.reopen(opts, {'backing.node-name': 'newname'}, "Cannot change the option 'node-name'")
206 … self.reopen(opts, {'backing.file.node-name': 'newname'}, "Cannot change the option 'node-name'")
212 # Remove the node
292 # Check that the node names (other than the top-level one) are optional
293 del opts['file']['node-name']
294 del opts['backing']['node-name']
295 del opts['backing']['file']['node-name']
320 … self.assert_qmp(result, 'error/desc', "Node 'hd0' is busy: node is used as backing hd of 'hd1'")
328 opts = {'driver': 'raw', 'node-name': 'hd0',
331 'node-name': 'hd0-file' } }
362 opts = {'driver': 'qcow2', 'node-name': 'hd0',
367 'node-name': 'hd0-file' } }
388 # This test modifies the node graph a few times by changing the
456node 'hd0-file': permissions 'write, resize' are both required by node 'hd0' (uses node 'hd0-file'…
460 … self.assert_qmp(result, 'error/desc', "Node 'hd2' is busy: node is used as backing hd of 'hd0'")
480 # cycles in the node graph
515 # Add a blkverify node using hd0 and hd1 #
518 'node-name': 'bv',
524 self.reopen(bvopts, {}, "Block format 'blkverify' used by node 'bv'" +
527 # Illegal: hd0 is a child of the blkverify node
531 # Delete the blkverify node
540 hd0_opts = {'driver': 'file', 'node-name': 'hd0-file', 'filename': hd_path[0] }
541 hd1_opts = {'driver': 'file', 'node-name': 'hd1-file', 'filename': hd_path[1] }
547 opts = {'driver': 'raw', 'node-name': 'hd', 'file': 'hd0-file'}
581 opts = { 'driver': 'throttle', 'node-name': 'throttle0',
595 opts = {'driver': 'raw', 'node-name': 'hd', 'file': hd_opts(0), 'discard': 'unmap'}
600 'node-name': 'compress0',
654 "Permission conflict on node 'hd2-file': permissions "
655 "'write, resize' are both required by node 'hd2' (uses "
656 "node 'hd2-file' as 'file' child) and unshared by node "
657 "'hd0' (uses node 'hd2-file' as 'file' child).")
659 "Permission conflict on node 'hd0-file': permissions "
660 "'write, resize' are both required by node 'hd0' (uses "
661 "node 'hd0-file' as 'file' child) and unshared by node "
662 "'hd2' (uses node 'hd0-file' as 'file' child).")
692 'node-name': 'quorum0',
698 self.reopen(opts, {}, "Block format 'quorum' used by node 'quorum0'" +
718 'node-name': 'bd',
733 # Delete the blkdebug node
739 opts = {'driver': 'null-co', 'node-name': 'root', 'size': 1024}
765 # Trying to reopen the 'file' node directly does not make a difference
785 opts = { 'driver': 'throttle', 'node-name': 'throttle0',
817 # Let's delete the filter node
847 … self.assert_qmp(result, 'error/desc', "Node 'hd2' is busy: node is used as backing hd of 'hd0'")
898 'node-name': 'hd0',
1010 "Cannot change the option 'backing.backing.file.node-name'")
1015 "Read-only block node 'hd1' cannot support read-write users")
1142 'node-name': f'hd{idx}',
1144 'node-name': f'hd{idx}-throttle',
1149 'node-name': f'hd{idx}-file',