| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package IBM::StorageSystem::VDisk::Copy; |
|
2
|
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
5
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
27
|
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
22
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use Carp qw(croak); |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
96
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
|
9
|
|
|
|
|
|
|
our @ATTR = qw(autoexpand capacity copy_id easy_tier easy_tier_status fast_write_state |
|
10
|
|
|
|
|
|
|
free_capacity grainsize mdisk_grp_id mdisk_grp_name mdisk_id mdisk_name overallocation |
|
11
|
|
|
|
|
|
|
primary real_capacity se_copy status sync tier tier_capacity type used_capacity |
|
12
|
|
|
|
|
|
|
vdisk_id vdisk_name warning); |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
foreach my $attr ( @ATTR ) { |
|
15
|
|
|
|
|
|
|
{ |
|
16
|
1
|
|
|
1
|
|
6
|
no strict 'refs'; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
213
|
|
|
17
|
|
|
|
|
|
|
*{ __PACKAGE__ .'::'. $attr } = sub { |
|
18
|
0
|
|
|
0
|
|
|
my( $self, $val ) = @_; |
|
|
|
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
19
|
0
|
0
|
|
|
|
|
$self->{$attr} = $val if $val; |
|
20
|
0
|
|
|
|
|
|
return $self->{$attr} |
|
21
|
|
|
|
|
|
|
} |
|
22
|
|
|
|
|
|
|
} |
|
23
|
|
|
|
|
|
|
} |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub new { |
|
26
|
0
|
|
|
0
|
0
|
|
my( $class, $ibm, %args ) = @_; |
|
27
|
0
|
|
|
|
|
|
my $self = bless {}, $class; |
|
28
|
0
|
0
|
|
|
|
|
defined $args{copy_id} or croak 'Constructor failed: mandatory copy_id argument not supplied'; |
|
29
|
0
|
|
|
|
|
|
foreach my $attr ( @ATTR ) { $self->{$attr} = $args{$attr} } |
|
|
0
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
|
31
|
0
|
|
|
|
|
|
return $self |
|
32
|
|
|
|
|
|
|
} |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |