Hello community, here is the log from the commit of package perl-Sys-Virt for openSUSE:Factory checked in at 2012-09-25 10:46:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Sys-Virt (Old) and /work/SRC/openSUSE:Factory/.perl-Sys-Virt.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Sys-Virt", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Sys-Virt/perl-Sys-Virt.changes 2012-06-05 15:34:13.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Sys-Virt.new/perl-Sys-Virt.changes 2012-09-25 10:46:11.000000000 +0200 @@ -1,0 +2,6 @@ +Wed Sep 12 10:13:01 MDT 2012 - [email protected] + +- Update to 0.9.13 + - Add all new APIs in libvirt 0.9.13 + +------------------------------------------------------------------- Old: ---- Sys-Virt-0.9.11.tar.gz New: ---- Sys-Virt-0.9.13.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Sys-Virt.spec ++++++ --- /var/tmp/diff_new_pack.fmfXzx/_old 2012-09-25 10:46:13.000000000 +0200 +++ /var/tmp/diff_new_pack.fmfXzx/_new 2012-09-25 10:46:13.000000000 +0200 @@ -17,7 +17,7 @@ Name: perl-Sys-Virt -Version: 0.9.11 +Version: 0.9.13 Release: 0 %define cpan_name Sys-Virt Summary: Represent and manage a libvirt hypervisor connection ++++++ Sys-Virt-0.9.11.tar.gz -> Sys-Virt-0.9.13.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-0.9.11/Changes new/Sys-Virt-0.9.13/Changes --- old/Sys-Virt-0.9.11/Changes 2012-04-16 12:24:52.000000000 +0200 +++ new/Sys-Virt-0.9.13/Changes 2012-07-02 15:35:20.000000000 +0200 @@ -1,5 +1,13 @@ Revision history for perl module Sys::Virt +0.9.13 2012-07-02 + + - Add all new APIs and constants in libvirt 0.9.13 + +0.9.12 2012-05-21 + + - Add all new constants in libvirt 0.9.12 + 0.9.11 2012-04-16 - Add all new APIs in libvirt 0.9.11 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-0.9.11/MANIFEST new/Sys-Virt-0.9.13/MANIFEST --- old/Sys-Virt-0.9.11/MANIFEST 2012-04-16 12:25:09.000000000 +0200 +++ new/Sys-Virt-0.9.13/MANIFEST 2012-07-02 15:35:41.000000000 +0200 @@ -37,6 +37,7 @@ MANIFEST.SKIP META.yml META.yml.PL +MYMETA.json MYMETA.yml perl-Sys-Virt.spec perl-Sys-Virt.spec.PL diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-0.9.11/META.yml new/Sys-Virt-0.9.13/META.yml --- old/Sys-Virt-0.9.11/META.yml 2012-04-16 12:25:08.000000000 +0200 +++ new/Sys-Virt-0.9.13/META.yml 2012-07-02 15:35:41.000000000 +0200 @@ -1,7 +1,7 @@ --- #YAML:1.0 name: Sys-Virt abstract: Extension for the libvirt library -version: 0.9.11 +version: 0.9.13 author: - Daniel P. Berrange <[email protected]> license: perl diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-0.9.11/MYMETA.json new/Sys-Virt-0.9.13/MYMETA.json --- old/Sys-Virt-0.9.11/MYMETA.json 1970-01-01 01:00:00.000000000 +0100 +++ new/Sys-Virt-0.9.13/MYMETA.json 2012-07-02 15:35:24.000000000 +0200 @@ -0,0 +1,46 @@ +{ + "abstract" : "unknown", + "author" : [ + "Daniel Berrange <[email protected]>" + ], + "dynamic_config" : 0, + "generated_by" : "ExtUtils::MakeMaker version 6.62, CPAN::Meta::Converter version 2.120921", + "license" : [ + "unknown" + ], + "meta-spec" : { + "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", + "version" : "2" + }, + "name" : "Sys-Virt", + "no_index" : { + "directory" : [ + "t", + "inc" + ] + }, + "prereqs" : { + "build" : { + "requires" : { + "ExtUtils::MakeMaker" : "0" + } + }, + "configure" : { + "requires" : { + "ExtUtils::MakeMaker" : "0" + } + }, + "runtime" : { + "requires" : { + "Test::CPAN::Changes" : "0", + "Test::More" : "0", + "Test::Pod" : "0", + "Test::Pod::Coverage" : "0", + "Time::HiRes" : "0", + "XML::XPath" : "0" + } + } + }, + "release_status" : "stable", + "version" : "v0.9.13" +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-0.9.11/MYMETA.yml new/Sys-Virt-0.9.13/MYMETA.yml --- old/Sys-Virt-0.9.11/MYMETA.yml 2012-04-16 12:24:58.000000000 +0200 +++ new/Sys-Virt-0.9.13/MYMETA.yml 2012-07-02 15:35:24.000000000 +0200 @@ -1,14 +1,13 @@ --- -abstract: ~ +abstract: unknown author: - 'Daniel Berrange <[email protected]>' build_requires: ExtUtils::MakeMaker: 0 configure_requires: ExtUtils::MakeMaker: 0 -distribution_type: module dynamic_config: 0 -generated_by: 'ExtUtils::MakeMaker version 6.57_05' +generated_by: 'ExtUtils::MakeMaker version 6.62, CPAN::Meta::Converter version 2.120921' license: unknown meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -25,4 +24,4 @@ Test::Pod::Coverage: 0 Time::HiRes: 0 XML::XPath: 0 -version: 0.9.11 +version: v0.9.13 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-0.9.11/Makefile.PL new/Sys-Virt-0.9.13/Makefile.PL --- old/Sys-Virt-0.9.11/Makefile.PL 2012-04-16 12:24:52.000000000 +0200 +++ new/Sys-Virt-0.9.13/Makefile.PL 2012-07-02 15:35:20.000000000 +0200 @@ -3,7 +3,7 @@ # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. -my $libvirtver = "0.9.11"; +my $libvirtver = "0.9.13"; my $stat = system "pkg-config --atleast-version=$libvirtver libvirt"; die "cannot run pkg-config to check libvirt version" if $stat == -1; die "libvirt >= $libvirtver is required\n" unless $stat == 0; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-0.9.11/README new/Sys-Virt-0.9.13/README --- old/Sys-Virt-0.9.11/README 2012-04-16 12:24:52.000000000 +0200 +++ new/Sys-Virt-0.9.13/README 2012-07-02 15:35:20.000000000 +0200 @@ -7,6 +7,6 @@ The only pre-requisite for this module is libvirt itself. For installation instructions, consult the INSTALL file. -The current minimum required version of libvirt is 0.9.11 +The current minimum required version of libvirt is 0.9.13 -- End diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-0.9.11/Virt.xs new/Sys-Virt-0.9.13/Virt.xs --- old/Sys-Virt-0.9.11/Virt.xs 2012-04-16 12:24:52.000000000 +0200 +++ new/Sys-Virt-0.9.13/Virt.xs 2012-07-02 15:35:20.000000000 +0200 @@ -1762,6 +1762,27 @@ Safefree(names); +void +list_all_domains(con, flags=0) + virConnectPtr con; + unsigned int flags; + PREINIT: + virDomainPtr *doms; + int i, ndom; + SV *domrv; + PPCODE: + if ((ndom = virConnectListAllDomains(con, &doms, flags)) < 0) + _croak_error(); + + EXTEND(SP, ndom); + for (i = 0 ; i < ndom ; i++) { + domrv = sv_newmortal(); + sv_setref_pv(domrv, "Sys::Virt::Domain", doms[i]); + PUSHs(domrv); + } + free(doms); + + int num_of_networks(con) virConnectPtr con; @@ -3841,6 +3862,27 @@ Safefree(names); +void +list_all_snapshots(dom, flags=0) + virDomainPtr dom; + unsigned int flags; + PREINIT: + virDomainSnapshotPtr *domsss; + int i, ndomss; + SV *domssrv; + PPCODE: + if ((ndomss = virDomainListAllSnapshots(dom, &domsss, flags)) < 0) + _croak_error(); + + EXTEND(SP, ndomss); + for (i = 0 ; i < ndomss ; i++) { + domssrv = sv_newmortal(); + sv_setref_pv(domssrv, "Sys::Virt::DomainSnapshot", domsss[i]); + PUSHs(domssrv); + } + free(domsss); + + int has_current_snapshot(dom, flags=0) virDomainPtr dom; @@ -5232,6 +5274,28 @@ RETVAL +int +is_current(domss, flags=0) + virDomainSnapshotPtr domss; + unsigned int flags; + CODE: + if ((RETVAL = virDomainSnapshotIsCurrent(domss, flags)) < 0) + _croak_error(); + OUTPUT: + RETVAL + + +int +has_metadata(domss, flags=0) + virDomainSnapshotPtr domss; + unsigned int flags; + CODE: + if ((RETVAL = virDomainSnapshotHasMetadata(domss, flags)) < 0) + _croak_error(); + OUTPUT: + RETVAL + + void list_child_snapshot_names(domss, maxnames, flags=0) virDomainSnapshotPtr domss; @@ -5256,6 +5320,27 @@ void +list_all_children(domss, flags=0) + virDomainSnapshotPtr domss; + unsigned int flags; + PREINIT: + virDomainSnapshotPtr *domsss; + int i, ndomss; + SV *domssrv; + PPCODE: + if ((ndomss = virDomainSnapshotListAllChildren(domss, &domsss, flags)) < 0) + _croak_error(); + + EXTEND(SP, ndomss); + for (i = 0 ; i < ndomss ; i++) { + domssrv = sv_newmortal(); + sv_setref_pv(domssrv, "Sys::Virt::DomainSnapshot", domsss[i]); + PUSHs(domssrv); + } + free(domsss); + + +void DESTROY(domss_rv) SV *domss_rv; PREINIT: @@ -5650,6 +5735,7 @@ REGISTER_CONSTANT(VIR_DUMP_LIVE, DUMP_LIVE); REGISTER_CONSTANT(VIR_DUMP_BYPASS_CACHE, DUMP_BYPASS_CACHE); REGISTER_CONSTANT(VIR_DUMP_RESET, DUMP_RESET); + REGISTER_CONSTANT(VIR_DUMP_MEMORY_ONLY, DUMP_MEMORY_ONLY); REGISTER_CONSTANT(VIR_DOMAIN_SAVE_BYPASS_CACHE, SAVE_BYPASS_CACHE); REGISTER_CONSTANT(VIR_DOMAIN_SAVE_RUNNING, SAVE_RUNNING); @@ -5823,9 +5909,11 @@ REGISTER_CONSTANT(VIR_DOMAIN_BLOCK_JOB_TYPE_UNKNOWN, BLOCK_JOB_TYPE_UNKNOWN); REGISTER_CONSTANT(VIR_DOMAIN_BLOCK_JOB_TYPE_PULL, BLOCK_JOB_TYPE_PULL); + REGISTER_CONSTANT(VIR_DOMAIN_BLOCK_JOB_TYPE_COPY, BLOCK_JOB_TYPE_COPY); REGISTER_CONSTANT(VIR_DOMAIN_BLOCK_JOB_COMPLETED, BLOCK_JOB_COMPLETED); REGISTER_CONSTANT(VIR_DOMAIN_BLOCK_JOB_FAILED, BLOCK_JOB_FAILED); + REGISTER_CONSTANT(VIR_DOMAIN_BLOCK_JOB_CANCELED, BLOCK_JOB_CANCELED); REGISTER_CONSTANT(VIR_DOMAIN_EVENT_ID_LIFECYCLE, EVENT_ID_LIFECYCLE); REGISTER_CONSTANT(VIR_DOMAIN_EVENT_ID_REBOOT, EVENT_ID_REBOOT); @@ -5950,6 +6038,30 @@ REGISTER_CONSTANT(VIR_DOMAIN_DISK_ERROR_UNSPEC, DISK_ERROR_UNSPEC); + REGISTER_CONSTANT(VIR_DOMAIN_BLOCK_JOB_ABORT_ASYNC, BLOCK_JOB_ABORT_ASYNC); + REGISTER_CONSTANT(VIR_DOMAIN_BLOCK_JOB_ABORT_PIVOT, BLOCK_JOB_ABORT_PIVOT); + + REGISTER_CONSTANT(VIR_DOMAIN_BLOCK_REBASE_SHALLOW, BLOCK_REBASE_SHALLOW); + REGISTER_CONSTANT(VIR_DOMAIN_BLOCK_REBASE_REUSE_EXT, BLOCK_REBASE_REUSE_EXT); + REGISTER_CONSTANT(VIR_DOMAIN_BLOCK_REBASE_COPY_RAW, BLOCK_REBASE_COPY_RAW); + REGISTER_CONSTANT(VIR_DOMAIN_BLOCK_REBASE_COPY, BLOCK_REBASE_COPY); + + REGISTER_CONSTANT(VIR_CONNECT_LIST_DOMAINS_ACTIVE, LIST_ACTIVE); + REGISTER_CONSTANT(VIR_CONNECT_LIST_DOMAINS_AUTOSTART, LIST_AUTOSTART); + REGISTER_CONSTANT(VIR_CONNECT_LIST_DOMAINS_HAS_SNAPSHOT, LIST_HAS_SNAPSHOT); + REGISTER_CONSTANT(VIR_CONNECT_LIST_DOMAINS_INACTIVE, LIST_INACTIVE); + REGISTER_CONSTANT(VIR_CONNECT_LIST_DOMAINS_MANAGEDSAVE, LIST_MANAGEDSAVE); + REGISTER_CONSTANT(VIR_CONNECT_LIST_DOMAINS_NO_AUTOSTART, LIST_NO_AUTOSTART); + REGISTER_CONSTANT(VIR_CONNECT_LIST_DOMAINS_NO_MANAGEDSAVE, LIST_NO_MANAGEDSAVE); + REGISTER_CONSTANT(VIR_CONNECT_LIST_DOMAINS_NO_SNAPSHOT, LIST_NO_SNAPSHOT); + REGISTER_CONSTANT(VIR_CONNECT_LIST_DOMAINS_OTHER, LIST_OTHER); + REGISTER_CONSTANT(VIR_CONNECT_LIST_DOMAINS_PAUSED, LIST_PAUSED); + REGISTER_CONSTANT(VIR_CONNECT_LIST_DOMAINS_PERSISTENT, LIST_PERSISTENT); + REGISTER_CONSTANT(VIR_CONNECT_LIST_DOMAINS_RUNNING, LIST_RUNNING); + REGISTER_CONSTANT(VIR_CONNECT_LIST_DOMAINS_SHUTOFF, LIST_SHUTOFF); + REGISTER_CONSTANT(VIR_CONNECT_LIST_DOMAINS_TRANSIENT, LIST_TRANSIENT); + + stash = gv_stashpv( "Sys::Virt::DomainSnapshot", TRUE ); REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN, DELETE_CHILDREN); REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_DELETE_METADATA_ONLY, DELETE_METADATA_ONLY); @@ -5968,6 +6080,9 @@ REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_LIST_DESCENDANTS, LIST_DESCENDANTS); REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_LIST_METADATA, LIST_METADATA); REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_LIST_LEAVES, LIST_LEAVES); + REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_LIST_NO_LEAVES, LIST_NO_LEAVES); + REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_LIST_NO_METADATA, LIST_NO_METADATA); + REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_REVERT_RUNNING, REVERT_RUNNING); REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_REVERT_PAUSED, REVERT_PAUSED); @@ -5989,6 +6104,8 @@ REGISTER_CONSTANT(VIR_STORAGE_POOL_DELETE_NORMAL, DELETE_NORMAL); REGISTER_CONSTANT(VIR_STORAGE_POOL_DELETE_ZEROED, DELETE_ZEROED); + REGISTER_CONSTANT(VIR_STORAGE_XML_INACTIVE, XML_INACTIVE); + stash = gv_stashpv( "Sys::Virt::Network", TRUE ); REGISTER_CONSTANT(VIR_NETWORK_XML_INACTIVE, XML_INACTIVE); @@ -6002,6 +6119,7 @@ REGISTER_CONSTANT(VIR_STORAGE_VOL_FILE, TYPE_FILE); REGISTER_CONSTANT(VIR_STORAGE_VOL_BLOCK, TYPE_BLOCK); REGISTER_CONSTANT(VIR_STORAGE_VOL_DIR, TYPE_DIR); + REGISTER_CONSTANT(VIR_STORAGE_VOL_NETWORK, TYPE_DIR); REGISTER_CONSTANT(VIR_STORAGE_VOL_DELETE_NORMAL, DELETE_NORMAL); REGISTER_CONSTANT(VIR_STORAGE_VOL_DELETE_ZEROED, DELETE_ZEROED); @@ -6092,6 +6210,7 @@ REGISTER_CONSTANT(VIR_FROM_CAPABILITIES, FROM_CAPABILITIES); REGISTER_CONSTANT(VIR_FROM_AUTH, FROM_AUTH); REGISTER_CONSTANT(VIR_FROM_URI, FROM_URI); + REGISTER_CONSTANT(VIR_FROM_DBUS, FROM_DBUS); REGISTER_CONSTANT(VIR_ERR_OK, ERR_OK); @@ -6177,4 +6296,5 @@ REGISTER_CONSTANT(VIR_ERR_NO_DOMAIN_METADATA, ERR_NO_DOMAIN_METADATA); REGISTER_CONSTANT(VIR_ERR_MIGRATE_UNSAFE, ERR_MIGRATE_UNSAFE); REGISTER_CONSTANT(VIR_ERR_OVERFLOW, ERR_OVERFLOW); + REGISTER_CONSTANT(VIR_ERR_BLOCK_COPY_ACTIVE, ERR_BLOCK_COPY_ACTIVE); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-0.9.11/lib/Sys/Virt/Domain.pm new/Sys-Virt-0.9.13/lib/Sys/Virt/Domain.pm --- old/Sys-Virt-0.9.11/lib/Sys/Virt/Domain.pm 2012-04-16 12:24:52.000000000 +0200 +++ new/Sys-Virt-0.9.13/lib/Sys/Virt/Domain.pm 2012-07-02 15:35:20.000000000 +0200 @@ -944,6 +944,8 @@ Return a list of all snapshots currently known to the domain. The elements in the returned list are instances of the L<Sys::Virt::DomainSnapshot> class. +This method requires O(n) RPC calls, so the C<list_all_snapshots> method is +recommended as a more efficient alternative. =cut @@ -967,6 +969,14 @@ } + +=item my @snapshots = $dom->list_all_snapshots($flags) + +Return a list of all domain snapshots associated with this domain. +The elements in the returned list are instances of the +L<Sys::Virt::DomainSnapshot> class. The C<$flags> parameter can be +used to filter the list of return domain snapshots. + =item my $snapshot = $dom->get_snapshot_by_name($name) Return the domain snapshot with a name of C<$name>. The returned object is @@ -2089,6 +2099,10 @@ The block pull job type +=item Sys::Virt::Domain::BLOCK_JOB_TYPE_COPY + +The block copy job type + =back =head2 DOMAIN BLOCK JOB COMPLETION CONSTANTS @@ -2106,6 +2120,50 @@ An unsuccessful block job +=item Sys::Virt::Domain::BLOCK_JOB_CANCELED + +A block job canceled byy the user + +=back + +=head2 DOMAIN BLOCK REBASE CONSTANTS + +The following constants are useful when rebasing block devices + +=over 4 + +=item Sys::Virt::Domain::BLOCK_REBASE_SHALLOW + +Limit copy to top of source backing chain + +=item Sys::Virt::Domain::BLOCK_REBASE_REUSE_EXT + +Reuse existing external file for copy + +=item Sys::Virt::Domain::BLOCK_REBASE_COPY_RAW + +Make destination file raw + +=item Sys::Virt::Domain::BLOCK_REBASE_COPY + +Start a copy job + +=back + +=head2 DOMAIN BLOCK JOB ABORT CONSTANTS + +The following constants are useful when aborting job copy jobs + +=over 4 + +=item Sys::Virt::Domain::BLOCK_JOB_ABORT_ASYNC + +Request only, do not wait for completion + +=item Sys::Virt::Domain::BLOCK_JOB_ABORT_PIVOT + +Pivot to mirror when ending a copy job + =back =head2 DOMAIN SAVE / RESTORE CONSTANTS @@ -2154,6 +2212,11 @@ Reset the virtual machine after finishing the dump +=item Sys::Virt::Domain::DUMP_MEMORY_ONLY + +Only include guest RAM in the dump, not the device +state + =back =head2 DESTROY CONSTANTS @@ -2295,6 +2358,70 @@ =back +=head2 DOMAIN LIST CONSTANTS + +The following constants can be used when listing domains + +=over 4 + +=item Sys::Virt::Domain::LIST_ACTIVE + +Only list domains that are currently active (running, or paused) + +=item Sys::Virt::Domain::LIST_AUTOSTART + +Only list domains that are set to automatically start on boot + +=item Sys::Virt::Domain::LIST_HAS_SNAPSHOT + +Only list domains that have a stored snapshot + +=item Sys::Virt::Domain::LIST_INACTIVE + +Only list domains that are currently inactive (shutoff, saved) + +=item Sys::Virt::Domain::LIST_MANAGEDSAVE + +Only list domains that have current managed save state + +=item Sys::Virt::Domain::LIST_NO_AUTOSTART + +Only list domains that are not set to automatically start on boto + +=item Sys::Virt::Domain::LIST_NO_MANAGEDSAVE + +Only list domains that do not have any managed save state + +=item Sys::Virt::Domain::LIST_NO_SNAPSHOT + +Only list domains that do not have a stored snapshot + +=item Sys::Virt::Domain::LIST_OTHER + +Only list domains that are not running, paused or shutoff + +=item Sys::Virt::Domain::LIST_PAUSED + +Only list domains that are paused + +=item Sys::Virt::Domain::LIST_PERSISTENT + +Only list domains which have a persistent config + +=item Sys::Virt::Domain::LIST_RUNNING + +Only list domains that are currently running + +=item Sys::Virt::Domain::LIST_SHUTOFF + +Only list domains that are currently shutoff + +=item Sys::Virt::Domain::LIST_TRANSIENT + +Only list domains that do not have a persistent config + +=back + =head1 AUTHORS Daniel P. Berrange <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-0.9.11/lib/Sys/Virt/DomainSnapshot.pm new/Sys-Virt-0.9.13/lib/Sys/Virt/DomainSnapshot.pm --- old/Sys-Virt-0.9.11/lib/Sys/Virt/DomainSnapshot.pm 2012-04-16 12:24:52.000000000 +0200 +++ new/Sys-Virt-0.9.13/lib/Sys/Virt/DomainSnapshot.pm 2012-07-02 15:35:20.000000000 +0200 @@ -85,6 +85,15 @@ Return the parent of the snapshot, if any +=item $res = $domss->is_current() + +Returns a true value if this is the current snapshot. False otherwise. + +=item $res = $domss->has_metadata() + +Returns a true value if this snapshot has metadata associated with +it. + =item $count = $domss->num_of_child_snapshots() Return the number of saved snapshots which are children of this snapshot @@ -98,6 +107,8 @@ Return a list of all snapshots that are children of this snapshot. The elements in the returned list are instances of the L<Sys::Virt::DomainSnapshot> class. +This method requires O(n) RPC calls, so the C<list_all_children> method is +recommended as a more efficient alternative. =cut @@ -120,6 +131,12 @@ return @snapshots; } +=item my @snapshots = $dom->list_all_children($flags) + +Return a list of all domain snapshots that are children of this +snapshot. The elements in the returned list are instances of the +L<Sys::Virt::DomainSnapshot> class. The C<$flags> parameter can be +used to filter the list of return domain snapshots. =back @@ -206,7 +223,15 @@ =item Sys::Virt::DomainSnapshot::LIST_LEAVES -Only list leave nodes in the snapshot tree +Only list leaf nodes in the snapshot tree + +=item Sys::Virt::DomainSnapshot::LIST_NO_LEAVES + +Only list non-leaf nodes in the snapshot tree + +=item Sys::Virt::DomainSnapshot::LIST_NO_METADATA + +Only list snapshots without metadata =back diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-0.9.11/lib/Sys/Virt/Error.pm new/Sys-Virt-0.9.13/lib/Sys/Virt/Error.pm --- old/Sys-Virt-0.9.11/lib/Sys/Virt/Error.pm 2012-04-16 12:24:52.000000000 +0200 +++ new/Sys-Virt-0.9.13/lib/Sys/Virt/Error.pm 2012-07-02 15:35:20.000000000 +0200 @@ -322,6 +322,10 @@ The URI handling code +=item Sys::Virt::Error::FROM_DBUS + +The DBus handling code + =back =head2 ERROR CODE CONSTANTS @@ -660,10 +664,14 @@ The migration operation would be unsafe to perform -=item Sys::Virt::ERror::ERR_OVERFLOW +=item Sys::Virt::Error::ERR_OVERFLOW The calculation would overflow +=item Sys::Virt::Error::ERR_BLOCK_COPY_ACTIVE + +Action prevented by block copy job + =back =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-0.9.11/lib/Sys/Virt/StoragePool.pm new/Sys-Virt-0.9.13/lib/Sys/Virt/StoragePool.pm --- old/Sys-Virt-0.9.11/lib/Sys/Virt/StoragePool.pm 2012-04-16 12:24:52.000000000 +0200 +++ new/Sys-Virt-0.9.13/lib/Sys/Virt/StoragePool.pm 2012-07-02 15:35:20.000000000 +0200 @@ -344,6 +344,20 @@ =back +=head2 XML DOCUMENTS + +The following constants are useful when requesting +XML for storage pools + +=over 4 + +=item Sys::Virt::StoragePool::XML_INACTIVE + +Return XML describing the inactive state of the storage +pool. + +=back + =head1 AUTHORS Daniel P. Berrange <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-0.9.11/lib/Sys/Virt.pm new/Sys-Virt-0.9.13/lib/Sys/Virt.pm --- old/Sys-Virt-0.9.11/lib/Sys/Virt.pm 2012-04-16 12:24:52.000000000 +0200 +++ new/Sys-Virt-0.9.13/lib/Sys/Virt.pm 2012-07-02 15:35:20.000000000 +0200 @@ -78,7 +78,7 @@ use Sys::Virt::DomainSnapshot; use Sys::Virt::Stream; -our $VERSION = '0.9.11'; +our $VERSION = '0.9.13'; require XSLoader; XSLoader::load('Sys::Virt', $VERSION); @@ -373,8 +373,10 @@ =item my @doms = $vmm->list_domains() -Return a list of all domains currently known to the VMM. The elements -in the returned list are instances of the L<Sys::Virt::Domain> class. +Return a list of all running domains currently known to the VMM. The elements +in the returned list are instances of the L<Sys::Virt::Domain> class. This +method requires O(n) RPC calls, so the C<list_all_domains> method is +recommended as a more efficient alternative. =cut @@ -409,7 +411,8 @@ Return a list of all domains defined, but not currently running, on the VMM. The elements in the returned list are instances of the -L<Sys::Virt::Domain> class. +L<Sys::Virt::Domain> class. This method requires O(n) RPC calls, so the +C<list_all_domains> method is recommended as a more efficient alternative. =cut @@ -441,6 +444,13 @@ Return a list of names of all domains defined, but not currently running, on the VMM. The names can be used with the C<get_domain_by_name> method. +=item my @doms = $vmm->list_all_domains($flags) + +Return a list of all domains currently known to the VMM, whether +running or shutoff. The elements in the returned list are instances +of the L<Sys::Virt::Domain> class. The C<$flags> parameter can be +used to filter the list of return domains. + =item my @nets = $vmm->list_networks() Return a list of all networks currently known to the VMM. The elements diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-0.9.11/perl-Sys-Virt.spec new/Sys-Virt-0.9.13/perl-Sys-Virt.spec --- old/Sys-Virt-0.9.11/perl-Sys-Virt.spec 2012-04-16 12:25:09.000000000 +0200 +++ new/Sys-Virt-0.9.13/perl-Sys-Virt.spec 2012-07-02 15:35:41.000000000 +0200 @@ -1,7 +1,7 @@ # Automatically generated by perl-Sys-Virt.spec.PL Name: perl-Sys-Virt -Version: 0.9.11 +Version: 0.9.13 Release: 1%{?dist}%{?extra_release} Summary: Represent and manage a libvirt hypervisor connection License: GPLv2+ or Artistic @@ -15,7 +15,7 @@ BuildRequires: perl(Test::CPAN::Changes) BuildRequires: perl(XML::XPath) BuildRequires: perl(Time::HiRes) -BuildRequires: libvirt-devel >= 0.9.11 +BuildRequires: libvirt-devel >= 0.9.13 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-0.9.11/perl-Sys-Virt.spec.PL new/Sys-Virt-0.9.13/perl-Sys-Virt.spec.PL --- old/Sys-Virt-0.9.11/perl-Sys-Virt.spec.PL 2012-04-16 12:24:52.000000000 +0200 +++ new/Sys-Virt-0.9.13/perl-Sys-Virt.spec.PL 2012-07-02 15:35:20.000000000 +0200 @@ -37,7 +37,7 @@ BuildRequires: perl(Test::CPAN::Changes) BuildRequires: perl(XML::XPath) BuildRequires: perl(Time::HiRes) -BuildRequires: libvirt-devel >= 0.9.11 +BuildRequires: libvirt-devel >= 0.9.13 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-0.9.11/t/200-domains.t new/Sys-Virt-0.9.13/t/200-domains.t --- old/Sys-Virt-0.9.11/t/200-domains.t 2012-04-16 12:24:52.000000000 +0200 +++ new/Sys-Virt-0.9.13/t/200-domains.t 2012-07-02 15:35:20.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 56; +use Test::More tests => 58; BEGIN { use_ok('Sys::Virt'); @@ -21,6 +21,10 @@ my @domids = $conn->list_domain_ids($nid); is_deeply(\@domids, [1], "domain ids"); +my @doms = $conn->list_all_domains(); +is(int(@doms), 1, "1 active domain"); +is($doms[0]->get_id, "1", "domain id matches"); + my $dom = $conn->get_domain_by_id($domids[0]); isa_ok($dom, "Sys::Virt::Domain"); @@ -45,7 +49,7 @@ is($dom3->get_name, "test", "name"); is($dom3->get_id, "1", "id"); -my @doms = $conn->list_domains(); +@doms = $conn->list_domains(); is($#doms, 0, "one domain"); isa_ok($doms[0], "Sys::Virt::Domain"); -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
