line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package VFS::Filesystem; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
10
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
31
|
|
4
|
1
|
|
|
1
|
|
464
|
use VFS::File; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
228
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
0
|
|
|
0
|
0
|
|
my $class = shift; |
8
|
0
|
0
|
|
|
|
|
my $self = ($#_ == 0) ? { %{ (shift) } } : { @_ }; |
|
0
|
|
|
|
|
|
|
9
|
0
|
|
|
|
|
|
return bless $self, $class; |
10
|
|
|
|
|
|
|
} |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub open { |
13
|
0
|
|
|
0
|
0
|
|
my ($self, $path, $attr) = @_; |
14
|
0
|
|
|
|
|
|
return new VFS::File(); |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub remove { |
18
|
0
|
|
|
0
|
0
|
|
my ($self, $path, $attr) = @_; |
19
|
0
|
|
|
|
|
|
return undef; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub create { |
23
|
0
|
|
|
0
|
0
|
|
my ($self, $path, $attr) = @_; |
24
|
0
|
|
|
|
|
|
return new VFS::File(); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub link { |
28
|
0
|
|
|
0
|
0
|
|
return 1; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub mount { |
32
|
0
|
|
|
0
|
0
|
|
my ($self, $fs, $dir, $attr) = @_; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub umount { |
36
|
0
|
|
|
0
|
0
|
|
my ($self, $dir) = @_; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 NAME |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
VFS::Filesystem - A virtual filesystem layer for Perl |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 SYNOPSIS |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Unimplemented. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 DESCRIPTION |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
An implementation of a virtual file system in Perl. It will allow |
50
|
|
|
|
|
|
|
creation, reading and writing of files, mounting of systems in other |
51
|
|
|
|
|
|
|
systems, ... |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=cut |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
1; |
56
|
|
|
|
|
|
|
__END__; |