line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Eixo::Zone::Artifact::FSVolumeTmp; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1461
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
4
|
1
|
|
|
1
|
|
5
|
use parent qw(Eixo::Zone::Artifact::FSVolume); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
0
|
|
|
0
|
0
|
|
my ($class, %args) = @_; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
return bless({ |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
size=>$args{size}, |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
path=>$args{path} || '/tmp', |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
ctl=>$args{ctl}, |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
0
|
|
|
|
f_mounted=>undef, |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
}, $class); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub create{ |
23
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub mount{ |
27
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
$self->{ctl}->tmpfsCreate( |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
size=>$self->{size}, |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
path=>$self->{path} |
34
|
0
|
|
|
|
|
|
); |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
|
|
|
$self->{f_mounted} = 1; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |