#!/bin/csh -f
#
# set up a config dir for MAX_OUTSTANDING variation
#
# Part of
#              The STARFISH Parallel file-system simulator
#        (Simulation Tool for Advanced Research in File Systems)
# 
#                               David Kotz
#                           Dartmouth College
#                              Version 3.0
#                              January 1996
#                          dfk@cs.dartmouth.edu

if (-d configs) then
    echo "configs exists! error"
    exit 1
endif

if (-d configs-max) then
    echo "configs-max exists! error"
    exit 1
endif

mkdir configs

foreach rsize (8192)
    foreach fsize (1280)
        foreach layout (contig rsectors)
    	    foreach fs (cache)
                foreach sort (nosort)
                    foreach maxout (1 2 3 4 8 16 32)
			config-one $rsize $fsize $fs $sort $layout 16 $maxout
		    end
    	    	end
    	    end
    	end
    end
end

mv configs configs-max
echo configs-max ready
