Raid expansion support

This commit is contained in:
Jamie Cameron
2009-02-18 06:13:20 +00:00
parent fe0b3b8d93
commit 949adee18a
5 changed files with 40 additions and 2 deletions

View File

@ -71,6 +71,14 @@ elsif ($in{'add'}) {
&webmin_log("add", undef, $old->{'value'}, { 'disk' => $in{'disk'} } );
&redirect("");
}
elsif ($in{'grow'}) {
# Grow the array
&lock_raid_files();
&grow($old, $in{'ndisk'});
&unlock_raid_files();
&webmin_log("grow", undef, $old->{'value'}, { 'disk' => $in{'ndisk'} } );
&redirect("");
}
elsif ($in{'remove'}) {
# Remove a disk from a RAID set
&lock_raid_files();