search for: getparentnode

Displaying 15 results from an estimated 15 matches for "getparentnode".

2010 Jan 06
0
[PATCH] Converter: Fixes to Xen metadata conversion
...- if($node->isa('XML::DOM::Attr')) { - $node->setNodeValue($default->getNodeValue()); - } else { - my $replacement = $default->cloneNode(1); - $replacement->setOwnerDocument($dom); - - $node->getParentNode()->replaceChild($replacement, $node); - } - } - - else { - # Warn if a replacement is required, but none was found - print STDERR user_message - (__x("WARNING: No replacement found for {xpath} in ". - &qu...
2009 Dec 21
1
[PATCH] Converter: Blacklist ACPI for RHEL 3 x86_64
...nt STDERR user_message (__x("The connected hypervisor does not support ". - "feature {feature}", feature => $feature->getNodeName())); + "feature {feature}", feature => $name)); + $feature->getParentNode()->removeChild($feature); + } + + if ($name eq 'acpi' && !$guestcaps->{acpi}) { + print STDERR user_message + (__"The target guest does not support acpi under KVM. ACPI ". + "will be disabled.");...
2009 Dec 21
1
[PATCH] snapshot: Explicitly remove unused disk source attribute
...path $source->setAttribute("file", $vol->get_path()); + # Remove the dev attribute in case it was set + $source->removeAttribute("dev"); + # Also update the disk element to be a "file" $source->getParentNode()->setAttribute('type', 'file'); -- 1.6.5.2
2010 Sep 27
2
[PATCH 0/2] Remove troublesome devices when outputting to libvirt
These 2 patches remove devices which can prevent a guest from starting after conversion if they aren't supported by the target. This solution isn't ideal. We would preferrably query the target for supported models and update if necessary, however there's no API for this yet. Matthew Booth (2): Remove converted SCSI controllers Remove sound cards when outputting to libvirt
2008 Jun 15
11
[PATCH] helper to create fb css stylized table
I attached a rails helper implementation of the fb_table described here: http://wiki.developers.facebook.com/index.php/Facebook_Styles I included testing and comments. I hope you find it useful. Curiously, it''s really a small extension of FBML. Richard -------------- next part -------------- Index: test/rails_integration_test.rb
2008 Jun 10
1
Parse XML
...ould someone provide a link or examples of parsing XML document in R? Few specific questions below: For instance I can retrieve specific nodes using this: node <- xpathApply(xml, "//" %+% xtag, xmlValue) 1) I want to be able to retrieve parent node for this node, how can I do this? getParentNode() does not seem to cut it. 2) How can I retrieve children nodes for a particular node? 3) How can I create an iterator to iterate through the whole tree? Thank you, Pratt -- View this message in context: http://www.nabble.com/Parse-XML-tp17757373p17757373.html Sent from the R help mailing lis...
2011 Mar 11
2
[PATCH 1/2] Allow reading more data than the reported size of a volume
If a volume is not an exact multiple of 512 bytes, qemu-img will report its size rounded down to a 512 byte boundary. However, when copying, the file is still read until EOF, which will return more data than was expected. This change prevents that causing a failure in itself. The situation is still not resolved, however, as there are still situations where this will cause a failure. For example,
2010 Mar 31
1
[PATCH] Default to IDE when VirtIO isn't available
...get->setAttribute('dev', "hd$suffix"); $suffix++; } else { - push(@removed, $target->getAttribute('dev')); + push(@removed, $target->getAttribute('dev')."(cdrom)"); my $disk = $target->getParentNode(); $disk->getParentNode()->removeChild($disk); } - $i++; } if (@removed > 0) { - print user_message(__x("WARNING: Only 4 CDROM drives are supported. ". - "The following CDROM drives have been remov...
2010 Feb 19
2
[PATCH 1/2] Fix remapping of block devices
...) { + $target->setAttribute('bus', 'ide'); + $target->setAttribute('dev', "hd$suffix"); + $suffix++; + } else { + push(@removed, $target->getAttribute('dev')); + + my $disk = $target->getParentNode(); + $disk->getParentNode()->removeChild($disk); + } + $i++; + } + + if (@removed > 0) { + print user_message(__x("WARNING: Only 4 CDROM drives are supported. ". + "The following CDROM drives have been remov...
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
2010 Feb 01
9
[ESX support] Working ESX conversion for RHEL 5
With this patchset I have successfully[1] imported a RHEL 5 guest directly from ESX with the following command line: virt-v2v -ic 'esx://yellow.marston/?no_verify=1' -op transfer RHEL5-64 Login details are stored in ~/.netrc Note that this is the only guest I've tested against. I haven't for example, checked that I haven't broken Xen imports. Matt [1] With the exception of
2010 Mar 30
3
[PATCH 1/2] Refactor guest and volume creation into Sys::VirtV2V::Target::LibVirt
...t;getNodeName(); - - if (!exists($features{$name})) { - print STDERR user_message - (__x("The connected hypervisor does not support ". - "feature {feature}", feature => $name)); - $feature->getParentNode()->removeChild($feature); - } - - if ($name eq 'acpi' && !$guestcaps->{acpi}) { - print STDERR user_message - (__"The target guest does not support acpi under KVM. ACPI ". - "will be dis...
2010 Mar 31
3
[PATCH] Remove v2v-snapshot
...path - $source->setAttribute("file", $vol->get_path()); - - # Remove the dev attribute in case it was set - $source->removeAttribute("dev"); - - # Also update the disk element to be a "file" - $source->getParentNode()->setAttribute('type', 'file'); - - # Replace the driver element with one which describes the qcow2 file - my ($driver) = $disk->findnodes('driver'); - - # Initialise the driver if it's not set - $driver ||= $disk->ap...
2010 Feb 12
11
[PATCH 1/9] Convert config file to XML, and translate networks/bridge for all connections
Previously, only the LibVirtXML connection translated network and bridge names in imported metadata. This change moves this functionality in Converter, making it available to LibVirt connections as well. At the same time, the format of the config file is switched to XML. The primary driver for this is that the allowable syntax of a foreign network/bridge name is not known. Rather than create a
2010 Feb 09
5
[PATCH 1/6] Convert config file to XML, and translate networks/bridge for all connections
Previously, only the LibVirtXML connection translated network and bridge names in imported metadata. This change moves this functionality in Converter, making it available to LibVirt connections as well. At the same time, the format of the config file is switched to XML. The primary driver for this is that the allowable syntax of a foreign network/bridge name is not known. Rather than create a