LVM2/VG.pm

filter: Statementstmt 89.3% 42 / 47 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 70.0% 7 / 10 Podpod 100% 1 / 1 totaltotal 86.2% 50 / 58 CC 1 SCAR 2.6
CC
1
Cov
89%
__ANON__
2.0
__ANON__
2.0
update
2.0
CRAP 1.3
« LVM2/LV.pm ↑ Summary LVM2/PV.pm »
1 package Linux::LVM2::VG;
2 {
3 3 $Linux::LVM2::VG::VERSION = '0.14';
4 }
5 3 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 $Linux::LVM2::VG::AUTHORITY = 'cpan:TEX';
7 }
8 # ABSTRACT: a class representing an VG in a Linux LVM2
9  
10 3 ▶use 5.010_000;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 3 ▶use mro 'c3';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 3 ▶use feature ':5.10';
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 3 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 3 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 # use IO::Handle;
18 # use autodie;
19 # use MooseX::Params::Validate;
20  
21 3 has 'parent' => (
22 'is' => 'ro',
23 'isa' => 'Linux::LVM2',
24 'required' => 1,
25 'weak_ref' => 1,
26 );
27  
28 3 has 'name' => (
29 'is' => 'ro',
30 'isa' => 'Str',
31 'required' => 1,
32 );
33  
34 3 has 'access' => (
35 'is' => 'rw',
36 'isa' => 'Str',
37 'required' => 1,
38 );
39  
40 3 has 'status' => (
41 'is' => 'rw',
42 'isa' => 'Int',
43 'required' => 1,
44 );
45  
46 3 has 'vgid' => (
47 'is' => 'ro',
48 'isa' => 'Int',
49 'required' => 1,
50 );
51  
52 3 has 'maxlvs' => (
53 'is' => 'ro',
54 'isa' => 'Int',
55 'required' => 1,
56 );
57  
58 3 has 'curlvs' => (
59 'is' => 'rw',
60 'isa' => 'Int',
61 'required' => 1,
62 );
63  
64 3 has 'openlvs' => (
65 'is' => 'rw',
66 'isa' => 'Int',
67 'required' => 1,
68 );
69  
70 3 has 'maxlvsize' => (
71 'is' => 'ro',
72 'isa' => 'Int',
73 'required' => 1,
74 );
75  
76 3 has 'maxpvs' => (
77 'is' => 'ro',
78 'isa' => 'Int',
79 'required' => 1,
80 );
81  
82 3 has 'curpvs' => (
83 'is' => 'rw',
84 'isa' => 'Int',
85 'required' => 1,
86 );
87  
88 3 has 'numpvs' => (
89 'is' => 'rw',
90 'isa' => 'Int',
91 'required' => 1,
92 );
93  
94 3 has 'vgsize' => (
95 'is' => 'rw',
96 'isa' => 'Int',
97 'required' => 1,
98 );
99  
100 3 has 'pesize' => (
101 'is' => 'rw',
102 'isa' => 'Int',
103 'required' => 1,
104 );
105  
106 3 has 'totalpe' => (
107 'is' => 'rw',
108 'isa' => 'Int',
109 'required' => 1,
110 );
111  
112 3 has 'allocpe' => (
113 'is' => 'rw',
114 'isa' => 'Int',
115 'required' => 1,
116 );
117  
118 3 has 'freepe' => (
119 'is' => 'rw',
120 'isa' => 'Int',
121 'required' => 1,
122 );
123  
124 3 has 'uuid' => (
125 'is' => 'rw',
126 'isa' => 'Str',
127 'required' => 1,
128 );
129  
130 has 'pvs' => (
131 'is' => 'rw',
132 'isa' => 'HashRef[Linux::LVM2::PV]',
133 0 ▶ 'default' => sub { {} },
Subroutine __ANON__: not called CC=1 SCAR=6.9
134 3 );
135  
136 has 'lvs' => (
137 'is' => 'rw',
138 'isa' => 'HashRef[Linux::LVM2::LV]',
139 0 ▶ 'default' => sub { {} },
Subroutine __ANON__: not called CC=1 SCAR=6.9
140 3 );
141  
142 0 ▶sub update {
Subroutine update: not called CC=1 SCAR=6.9
Pod documented
143 0 my $self = shift;
144 0 $self->parent()->update();
145 0 return 1;
146 }
147  
148 3 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
149 3 __PACKAGE__->meta->make_immutable;
150  
151 3 1;
152  
153 =pod
154  
155 =encoding utf-8
156  
157 =head1 NAME
158  
159 Linux::LVM2::VG - a class representing an VG in a Linux LVM2
160  
161 =head1 SYNOPSIS
162  
163 Instances of this class are usually create by Linux::LVM2::_find_vgs.
164  
165 =head1 DESCRIPTION
166  
167 This clas models a volume-group inside a Linux LVM2 setup.
168  
169 =head1 ATTRIBUTES
170  
171 =head2 parent
172  
173 Our parent node, must be an instance of Linux::LVM2
174  
175 =head2 name
176  
177 The name of this VG.
178  
179 =head2 access
180  
181 UNDOCUMENTED
182  
183 =head2 status
184  
185 UNDOCUMENTED
186  
187 =head2 vgid
188  
189 UNDOCUMENTED
190  
191 =head2 maxlvs
192  
193 UNDOCUMENTED
194  
195 =head2 curlvs
196  
197 UNDOCUMENTED
198  
199 =head2 openlvs
200  
201 UNDOCUMENTED
202  
203 =head2 maxlvsize
204  
205 UNDOCUMENTED
206  
207 =head2 maxpvs
208  
209 UNDOCUMENTED
210  
211 =head2 curpvs
212  
213 UNDOCUMENTED
214  
215 =head2 numpvs
216  
217 UNDOCUMENTED
218  
219 =head2 vgsize
220  
221 UNDOCUMENTED
222  
223 =head2 pesize
224  
225 UNDOCUMENTED
226  
227 =head2 totalpe
228  
229 UNDOCUMENTED
230  
231 =head2 allocpe
232  
233 UNDOCUMENTED
234  
235 =head2 freepe
236  
237 UNDOCUMENTED
238  
239 =head2 uuid
240  
241 UNDOCUMENTED
242  
243 =head2 pvs
244  
245 UNDOCUMENTED
246  
247 =head2 lvs
248  
249 UNDOCUMENTED
250  
251 =head1 METHODS
252  
253 =head2 update
254  
255 Synchronize the model with the underlying data structures.
256  
257 =head1 NAME
258  
259 Linux::LVM2::VG - Model a LVM2 volume-group.
260  
261 =head1 AUTHOR
262  
263 Dominik Schulz <dominik.schulz@gauner.org>
264  
265 =head1 COPYRIGHT AND LICENSE
266  
267 This software is copyright (c) 2012 by Dominik Schulz.
268  
269 This is free software; you can redistribute it and/or modify it under
270 the same terms as the Perl 5 programming language system itself.
271  
272 =cut
273  
274 __END__
« LVM2/LV.pm ↑ Summary LVM2/PV.pm »