Scroll to navigation

Sys::VirtConvert::Util(3) User Contributed Perl Documentation Sys::VirtConvert::Util(3)

NAME

Sys::VirtConvert::Util - Utility functions for virt-v2v

SYNOPSIS

 use Sys::VirtConvert::Util qw(augeas_error);
 augeas_error($g, $@) if ($@);
 v2vdie __x("Couldn't open {file}: {error}", file => $file, error => $error);

DESCRIPTION

Sys::VirtConvert::Util contains utility functions used throughout virt-v2v.

METHODS

Output an error message which includes any augeas errors in full, in addition to the given error message.
Return name, format, size, is_sparse, is_block for a given a libvirt volume.
Return the uid and gid required by RHEV.
Execute sub sete(u|g)id vdsm:kvm. Signals will be deferred until after sub exits, and if it die()s, the die() will be thrown after resetting permissions to root.
Compare device names a and b, returning -1, 0 or 1 as for the <=> operator. SCSI devices, named sdX, are ordered before all other devices.
Initialise the log output method. method can be an open filehandle, one of *STDOUT or *STDERR, or the string 'syslog'. This method must be called before calling logmsg().
Set the level at which messages will be logged. Options are DEBUG, INFO, NOTICE, WARN and FATAL.
Send msg to the previously configured log destination. level can be DEBUG, INFO, NOTICE, WARN or FATAL.
Log msg at FATAL priority, and die().

COPYRIGHT

Copyright (C) 2010-2012 Red Hat Inc.

LICENSE

Please see the file COPYING.LIB for the full license.

SEE ALSO

virt-v2v(1), <http://libguestfs.org/>.

2013-12-03 perl v5.10.1