aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/driver/postgres.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/db/driver/postgres.php')
0 files changed, 0 insertions, 0 deletions
'q' value=''/>
path: root/perl-install/lvm.pm
blob: c2b15e6134f43482b15bc114a1ac4c7b3774a333 (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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
package lvm; # $Id$

use diagnostics;
use strict;

#-######################################################################################
#- misc imports
#-######################################################################################
use common qw(:common :functional :system :file);
use modules;
use fsedit;
use devices;
use run_program;

#- for partition_table_xxx emulation
sub hasExtended { 0 }
sub adjustStart {}
sub adjustEnd {}
sub write {}
sub cylinder_size { 
    my ($hd) = @_;
    $hd->{PE_size};
}


modules::load('lvm-mod');
run_program::run('vgscan') if !-e '/etc/lvmtab';
run_program::run('vgchange', '-a', 'y');

sub get_vg {
    my ($part) = @_;
    my $dev = devices::make($part->{device});
    (split(':', `pvdisplay -c $dev`))[1];
}