anchor.diff:              error
       end.
   
  +stage_resize_ring(["abort"]) ->
  +    try
  +        case riak_core_claimant:abort_resize() of
  +            ok ->
  +                io:format("Success: staged abort resize ring request~n"),
  +                ok;
  +            {error, not_resizing} ->
  +                io:format("Failed: ring is not resizing or resize has completed"),
  +                error
  +        end
  +    catch
  +        Exception:Reason ->
  +            lager:error("Abort resize ring request failed ~p:~p",
  +                        [Exception, Reason]),
  +            io:format("Abort resize ring request failed, see log for details~n"),
  +            error
  +    end;
  +stage_resize_ring([SizeStr]) ->
  +    try list_to_integer(SizeStr) of
  +        Size -> stage_resize_ring(Size)
  +    catch
  +        error:badarg ->
  +            io:format("Failed: Ring size must be an integer.")
  +    end;
  +stage_resize_ring(NewRingSize) ->
  +    try
  +        case riak_core_claimant:resize_ring(NewRingSize) of
  +            ok ->
  +                io:format("Success: staged resize ring request with new size: ~p~n",
  +                          [NewRingSize]),
  +                ok;
  +            {error, not_capable} ->
  +                io:format("Failed: at least one node is not capable of performing the operation~n"),
  +                error;
  +            {error, same_size} ->
  +                io:format("Failed: current ring size is already ~p~n",
  +                          [NewRingSize]),
  +                error
  +        end
  +    catch
  +        Exception:Reason ->
  +            lager:error("Resize ring request failed ~p:~p",
  +                        [Exception, Reason]),
  +            io:format("Resize ring request failed, see log for details~n"),
  +            error
  +    end.
  +
   clear_staged([]) ->
       try
           case riak_core_claimant:clear() of
  
positive.code: 
  -module(riak_core_console).
  -export([member_status/1, ring_status/1, print_member_status/2,
           stage_leave/1, stage_remove/1, stage_replace/1,
           stage_force_replace/1, print_staged/1, commit_staged/1,
           clear_staged/1, transfer_limit/1, pending_claim_percentage/2,
           pending_nodes_and_claim_percentages/1]).
  
negative.code:                  ({Node, {replace, NewNode}}) ->
                        io:format("replace        ~p with ~p~n", [Node, NewNode]);
                   ({Node, {force_replace, NewNode}}) ->
                        io:format("force-replace  ~p with ~p~n", [Node, NewNode]);
                   ({_, {resize, NewRingSize}}) ->
                        CurrentSize = riak_core_ring:num_partitions(Ring),
                        io:format("resize-ring    ~p to ~p partitions~n",[CurrentSize,NewRingSize]);
                   ({_, abort_resize}) ->
                        CurrentSize = riak_core_ring:num_partitions(Ring),
                        io:format("resize-ring    abort. current size: ~p~n", [CurrentSize])
                end, Changes),
      io:format("~79..-s~n", [""]),
      io:format("~n"),
  