2 # Script to create device nodes for SMART array controllers
4 # mkdev.ida [num controllers] [num log volumes] [num partitions]
6 # With no arguments, the script assumes 1 controller, 16 logical volumes,
7 # and 16 partitions/volume, which is adequate for most configurations.
9 # If you had 5 controllers and were planning on no more than 4 logical volumes
10 # each, using a maximum of 8 partitions per volume, you could say:
14 # Of course, this has no real benefit over "mkdev.ida 5" except that it
15 # doesn't create so many device nodes in /dev/ida.
21 if [ ! -d /dev
/ida
]; then
25 C
=0; while [ $C -lt $NR_CTLR ]; do
27 D
=0; while [ $D -lt $NR_VOL ]; do
28 P
=0; while [ $P -lt $NR_PART ]; do
29 MIN
=`expr $D \* 16 + $P`
31 mknod
/dev
/ida
/c
${C}d
${D} b
$MAJ $MIN
33 mknod
/dev
/ida
/c
${C}d${D}p${P} b
$MAJ $MIN