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