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¶
- augeas_error($g, $@)
- Output an error message which includes any augeas errors in full, in addition to the given error message.
- parse_libvirt_volinfo(vol)
- Return name, format, size, is_sparse, is_block for a given a libvirt volume.
- rhev_ids
- Return the uid and gid required by RHEV.
- rhev_helper(sub)
- 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.
- scsi_first_cmp(a, b)
- 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.
- logmsg_init(method)
- 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().
- logmsg_level(level)
- Set the level at which messages will be logged. Options are DEBUG, INFO, NOTICE, WARN and FATAL.
- logmsg(level, msg)
- Send msg to the previously configured log destination. level can be DEBUG, INFO, NOTICE, WARN or FATAL.
- v2vdie(msg)
- 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 |