1Sys::VirtConvert::Util(U3s)er Contributed Perl DocumentatSiyosn::VirtConvert::Util(3)
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

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

METHODS

20       augeas_error($g, $@)
21           Output an error message which includes any augeas errors in full,
22           in addition to the given error message.
23
24       parse_libvirt_volinfo(vol)
25           Return name, format, size, is_sparse, is_block for a given a
26           libvirt volume.
27
28       rhev_helper(sub)
29           Execute sub sete(u|g)id 36:36. Signals will be deferred until after
30           sub exits, and if it die()s, the die() will be thrown after
31           resetting permissions to root.
32
33       logmsg_init(method)
34           Initialise the log output method. method can be an open filehandle,
35           one of *STDOUT or *STDERR, or the string 'syslog'. This method must
36           be called before calling logmsg().
37
38       logmsg_level(level)
39           Set the level at which messages will be logged. Options are DEBUG,
40           INFO, NOTICE, WARN and FATAL.
41
42       logmsg(level, msg)
43           Send msg to the previously configured log destination. level can be
44           DEBUG, INFO, NOTICE, WARN or FATAL.
45
46       v2vdie(msg)
47           Log msg at FATAL priority, and die().
48
50       Copyright (C) 2010-2011 Red Hat Inc.
51

LICENSE

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

SEE ALSO

56       virt-v2v(1), <http://libguestfs.org/>.
57
58
59
60perl v5.12.3                      2011-08-30         Sys::VirtConvert::Util(3)
Impressum