aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/cache/driver/null.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/cache/driver/null.php')
0 files changed, 0 insertions, 0 deletions
dada75d3b9e6736b00fd2e0aabc5e'>treecommitdiffstats
path: root/perl-install/partition_table/gpt.pm
blob: 10eab253bf352eaaff71bcf7d1de1253f3468049 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package partition_table::gpt; # $Id$

use diagnostics;
use strict;
use vars qw(@ISA);

@ISA = qw(partition_table::raw);

use partition_table::raw;
use c;

#sub use_pt_type { 1 }

sub read_one {
    my ($hd, $sector) = @_;
    my $info;

    c::get_disk_type($hd->{file}) eq "gpt" or die "not a GPT disk";
    my @pt = map {
        my %p;
        print $_;
        if (/^([^ ]*) ([^ ]*) ([^ ]*) (.*) \((\d*),(\d*),(\d*)\)$/) {
            $p{part_number} = $1;
            $p{real_device} = $2;
            $p{fs_type} = $3;
            $p{pt_type} = 0xba;
            $p{start} = $5;
            $p{size} = $7;
        }
        \%p;
    } c::get_disk_partitions($hd->{file});

    use Data::Dumper;