search for: find_metadata

Displaying 3 results from an estimated 3 matches for "find_metadata".

2009 Dec 21
4
Refactor virt-v2v to be more like a 'big script'
These patches combine HVSource and HVTarget into a single Converter. This should make it more obvious where to hack without losing any practical flexibility. GuestOS remains separate. GuestOS is now a misnomer, because it's really only a Linux distro abstraction. It will be useless for Windows, for example. Functions which you'd expect to be different on a non-RH distro should live in
2009 Jul 24
2
[PATCH] Initial drop of virt-v2v
...my $guestos = shift; + carp("find_kernels called without guestos argument") + unless defined($guestos); + + my @kernels = (); + foreach my $module ($class->modules()) { + push(@kernels, $module->find_drivers($guestos)); + } + + return @kernels; +} + +sub find_metadata +{ + my $class = shift; + + my $dom = shift; + carp("find_metadata called without dom argument") unless defined($dom); + + my @nodes = (); + foreach my $module ($class->modules()) { + push(@nodes, $module->find_metadata($dom)); + } + + return @nodes; +} +...
2010 Jan 06
0
[PATCH] Converter: Fixes to Xen metadata conversion
...n XML. The node was removed.", + xpath => $xpath)); - return _find_xen_metadata($dom); + $node->getParentNode()->removeChild($node); + } } -sub _find_xen_metadata +sub _unconfigure_xen_metadata { - my $dom = shift; - defined($dom) or carp("find_metadata called without dom argument"); - - # List of nodes requiring changes if they exist and match a particular - # pattern, and whether they need to be replaced for a guest to function - # Most of this is taken from inspection of domain.rng - my @check_nodes = ( - [ '/domain/...