Added a button to remove a detached partition, thanks to Caspar Smit.

This commit is contained in:
Jamie Cameron
2009-11-17 11:55:48 -08:00
parent f894a84b60
commit bf5f808a1d
5 changed files with 25 additions and 0 deletions

View File

@ -87,6 +87,13 @@ elsif ($in{'remove'}) {
&webmin_log("remove", undef, $old->{'value'}, { 'disk' => $in{'rdisk'} } );
&redirect("");
}
elsif ($in{'remove_det'}) {
# Remove detached disk(s) from a RAID set
&lock_raid_files();
&remove_detached($old);
&unlock_raid_files();
&redirect("");
}
elsif ($in{'mount'} || $in{'mountswap'}) {
# Re-direct to mount module
$type = $in{'mountswap'} ? "swap" :