Skip to content

Commit

Permalink
add reset command.
Browse files Browse the repository at this point in the history
  • Loading branch information
dormando committed Sep 25, 2010
1 parent affc838 commit e36cd27
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mogadm
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ my $usage = {
test => {
des => 'Show what devices the current policy would match',
},
reset => {
des => 'Reset an existing policy',
},
policy => {
des => 'Add or adjust the current policy',
args => '[opts]',
Expand Down Expand Up @@ -936,6 +939,12 @@ sub cmd_rebalance_stop {
ok("rebalance stopped");
}

sub cmd_rebalance_reset {
my $mogadm = mogadm();
my $res = $mogadm->rebalance_reset || fail($mogadm->errstr);
ok("rebalance reset");
}

# TODO: Make output prettier? Put hostname next to device name, print device
# info?
sub cmd_rebalance_test {
Expand Down

0 comments on commit e36cd27

Please sign in to comment.