anchor.diff:  % storage quotas, mem quotas, etc.
   %
   -module(ns_storage_conf).
  +
  +-include_lib("eunit/include/eunit.hrl").
   
   -include("ns_common.hrl").
   
  
positive.code:                "/" -> "/";
                 X -> X ++ "/"
             end,
      extract_disk_stats_for_path_rec(StatsList, Path).
  
  disk_stats_for_path(Node, Path) ->
      case rpc:call(Node, disksup, get_disk_data, [], 2000) of
  
negative.code:                     {ok, {_MPoint, KBytes, Cap}} -> {ok, KBytes, Cap}
                  end
      end.
  
  -ifdef(EUNIT).
  extract_disk_stats_for_path_test() ->
      DiskSupStats = [{"/",297994252,97},
               {"/lib/init/rw",1921120,1},
               {"/dev",10240,2},
               {"/dev/shm",1921120,0},
               {"/var/separate",1921120,0},
               {"/media/p2",9669472,81}],
      ?assertEqual({ok, {"/media/p2",9669472,81}},
                   extract_disk_stats_for_path(DiskSupStats,
                                               "/media/p2/mbdata")).
  -endif.
  