mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
If a whole disk is already used in a RAID, don't offer to add partitions https://github.com/webmin/webmin/issues/269
This commit is contained in:
@@ -647,8 +647,8 @@ local @disks;
|
||||
local $d;
|
||||
foreach $d (&fdisk::list_disks_partitions()) {
|
||||
foreach $p (@{$d->{'parts'}}) {
|
||||
next if ($used{$p->{'device'}} || $p->{'extended'} ||
|
||||
$skip{$p->{'device'}});
|
||||
next if ($used{$p->{'device'}} || $used{$d->{'device'}} ||
|
||||
$p->{'extended'} || $skip{$p->{'device'}});
|
||||
local @st = &device_status($p->{'device'});
|
||||
next if (@st);
|
||||
$tag = $p->{'type'} ? &fdisk::tag_name($p->{'type'}) : undef;
|
||||
|
||||
Reference in New Issue
Block a user