| n_shelves=${n_shelves:-10} |
| n_partitions=${n_partitions:-16} |
| if test "$#" != "1"; then |
| echo "Usage: sh `basename $0` {dir}" 1>&2 |
| echo " n_partitions=16 sh `basename $0` {dir}" 1>&2 |
| echo "Creating AoE devnode files in $dir ..." |
| # (Status info is in sysfs. See status.sh.) |
| # mknod -m 0400 $dir/stat c $MAJOR 1 |
| mknod -m 0400 $dir/err c $MAJOR 2 |
| mknod -m 0200 $dir/discover c $MAJOR 3 |
| mknod -m 0200 $dir/interfaces c $MAJOR 4 |
| mknod -m 0200 $dir/revalidate c $MAJOR 5 |
| mknod -m 0200 $dir/flush c $MAJOR 6 |
| mkshelf=`echo $0 | sed 's!mkdevs!mkshelf!'` |
| while test $i -lt $n_shelves; do |
| sh -xc "sh $mkshelf $dir $i" |