mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Show number of mirrors
This commit is contained in:
@@ -217,6 +217,10 @@ elsif (!$lv->{'is_snap'}) {
|
||||
print &ui_table_row($text{'lv_stripesize'},
|
||||
&nice_size($lv->{'stripesize'}*1024));
|
||||
}
|
||||
|
||||
if ($lv->{'mirrors'}) {
|
||||
print &ui_table_row($text{'lv_mirror'}, $lv->{'mirrors'});
|
||||
}
|
||||
}
|
||||
|
||||
if (!$lv->{'is_snap'}) {
|
||||
|
||||
@@ -82,6 +82,7 @@ lv_alloc=Allocation method
|
||||
lv_allocy=Contiguous
|
||||
lv_allocn=Non-contiguous
|
||||
lv_stripe=Volume striping
|
||||
lv_mirror=Number of mirrors
|
||||
lv_nostripe=Disabled (always allocate from start)
|
||||
lv_stripes=Stripe across $1 physical volumes
|
||||
lv_stripes2=Physical volumes to stripe across
|
||||
|
||||
@@ -361,6 +361,9 @@ else {
|
||||
elsif (/Stripes\s+(\d+)/) {
|
||||
$lv->{'stripes'} = $1;
|
||||
}
|
||||
elsif (/Mirrored\s+volumes\s+(\d+)/) {
|
||||
$lv->{'mirrors'} = $1;
|
||||
}
|
||||
elsif (/Stripe\s+size\s+(\S+)\s+(\S+)/) {
|
||||
$lv->{'stripesize'} = &mult_units($1, $2);
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ for(my $i=0; defined($cron->{'arg'.$i}); $i++) {
|
||||
|
||||
# Force webmin script type to be cron
|
||||
$main::webmin_script_type = 'cron';
|
||||
$main::webmin_script_webmincron = $cron->{'module'}."::".$cron->{'func'};
|
||||
|
||||
# Require the module, call the function
|
||||
eval {
|
||||
|
||||
Reference in New Issue
Block a user