line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package IBM::StorageSystem::Disk; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
29
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
6
|
use Carp qw(croak); |
|
1
|
|
|
|
|
12
|
|
|
1
|
|
|
|
|
154
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
9
|
|
|
|
|
|
|
our @ATTR = qw(Name File_system Failure_group Type Pool Status Availability Timestamp Block_properties); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
foreach my $attr ( map lc, @ATTR ) { |
12
|
|
|
|
|
|
|
{ |
13
|
1
|
|
|
1
|
|
5
|
no strict 'refs'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
172
|
|
14
|
|
|
|
|
|
|
*{ __PACKAGE__ .'::'. $attr } = sub { |
15
|
0
|
|
|
0
|
|
|
my( $self, $val ) = @_; |
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
16
|
0
|
0
|
|
|
|
|
$self->{$attr} = $val if $val; |
17
|
0
|
|
|
|
|
|
return $self->{$attr} |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub new { |
23
|
0
|
|
|
0
|
0
|
|
my( $class, $ibm, %args ) = @_; |
24
|
0
|
|
|
|
|
|
my $self = bless {}, $class; |
25
|
0
|
0
|
|
|
|
|
defined $args{Name} or croak 'Constructor failed: mandatory Name argument not supplied'; |
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
|
|
|
foreach my $attr ( @ATTR ) { $self->{lc $attr} = $args{$attr} } |
|
0
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
return $self |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |