print &ui_columns_start([ $text{'index_name'},
$text{'index_active'},
$text{'index_level'},
+ $text{'index_size'},
$text{'index_members'} ]);
foreach $c (@$conf) {
$lvl = &find_value('raid-level', $c->{'members'});
"<font color=#00aa00>$text{'yes'}</font>" :
"<font color=#ff0000>$text{'no'}</font>",
$lvl eq 'linear' ? $text{'linear'} : $text{'raid'.$lvl},
+ $c->{'size'} ? &nice_size($c->{'size'}*1024) : "",
&ui_links_row(\@mems),
]);
}
index_name=Device name
index_active=Active?
index_level=RAID level
+index_size=Usable size
index_members=Member disk devices
index_header=RAID problem notification options
index_mailaddr=Send notifications to
@mounted = &foreign_call("mount", "list_mounted") if (!@mounted);
@mounts = &foreign_call("mount", "list_mounts") if (!@mounts);
local $label = &fdisk::get_label($_[0]);
+local $volid = &fdisk::get_volid($_[0]);
local ($mounted) = grep { &same_file($_->[1], $_[0]) ||
- $_->[1] eq "LABEL=$label" } @mounted;
+ $_->[1] eq "LABEL=$label" ||
+ $_->[1] eq "UUID=$volid" } @mounted;
local ($mount) = grep { &same_file($_->[1], $_[0]) ||
- $_->[1] eq "LABEL=$label" } @mounts;
+ $_->[1] eq "LABEL=$label" ||
+ $_->[1] eq "UUID=$volid" } @mounts;
if ($mounted) { return ($mounted->[0], $mounted->[2], 1,
&indexof($mount, @mounts),
&indexof($mounted, @mounted)); }
}
if (@grid) {
- print &ui_grid_table(\@grid, 2, 100, [ "width=20% nowrap" ]);
+ print &ui_grid_table(\@grid, 2, 100, [ "width=20% nowrap" ],
+ "cellpadding=5"),"<p>\n";
}
if ($st[2]) {
print "<b>$text{'view_cannot2'}</b><p>\n";