1Sys::VirtConvert::Util(U3s)er Contributed Perl DocumentatSiyosn::VirtConvert::Util(3)
2
3
4
6 Sys::VirtConvert::Util - Utility functions for virt-v2v
7
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
16 Sys::VirtConvert::Util contains utility functions used throughout
17 virt-v2v.
18
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_ids
29 Return the uid and gid required by RHEV.
30
31 rhev_helper(sub)
32 Execute sub sete(u|g)id vdsm:kvm. Signals will be deferred until
33 after sub exits, and if it die()s, the die() will be thrown after
34 resetting permissions to root.
35
36 scsi_first_cmp(a, b)
37 Compare device names a and b, returning -1, 0 or 1 as for the <=>
38 operator. SCSI devices, named sdX, are ordered before all other
39 devices.
40
41 logmsg_init(method)
42 Initialise the log output method. method can be an open filehandle,
43 one of *STDOUT or *STDERR, or the string 'syslog'. This method must
44 be called before calling logmsg().
45
46 logmsg_level(level)
47 Set the level at which messages will be logged. Options are DEBUG,
48 INFO, NOTICE, WARN and FATAL.
49
50 logmsg(level, msg)
51 Send msg to the previously configured log destination. level can be
52 DEBUG, INFO, NOTICE, WARN or FATAL.
53
54 v2vdie(msg)
55 Log msg at FATAL priority, and die().
56
58 Copyright (C) 2010-2012 Red Hat Inc.
59
61 Please see the file COPYING.LIB for the full license.
62
64 virt-v2v(1), <http://libguestfs.org/>.
65
66
67
68perl v5.10.1 2013-12-03 Sys::VirtConvert::Util(3)