ia64/linux-2.6.18-xen.hg

view Documentation/aoe/mkdevs.sh @ 912:dd42cdb0ab89

[IA64] Build blktap2 driver by default in x86 builds.

add CONFIG_XEN_BLKDEV_TAP2=y to buildconfigs/linux-defconfig_xen_ia64.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 12:09:16 2009 +0900 (2009-06-29)
parents 831230e53067
children
line source
1 #!/bin/sh
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
9 exit 1
10 fi
11 dir=$1
13 MAJOR=152
15 echo "Creating AoE devnode files in $dir ..."
17 set -e
19 mkdir -p $dir
21 # (Status info is in sysfs. See status.sh.)
22 # rm -f $dir/stat
23 # mknod -m 0400 $dir/stat c $MAJOR 1
24 rm -f $dir/err
25 mknod -m 0400 $dir/err c $MAJOR 2
26 rm -f $dir/discover
27 mknod -m 0200 $dir/discover c $MAJOR 3
28 rm -f $dir/interfaces
29 mknod -m 0200 $dir/interfaces c $MAJOR 4
30 rm -f $dir/revalidate
31 mknod -m 0200 $dir/revalidate c $MAJOR 5
33 export n_partitions
34 mkshelf=`echo $0 | sed 's!mkdevs!mkshelf!'`
35 i=0
36 while test $i -lt $n_shelves; do
37 sh -xc "sh $mkshelf $dir $i"
38 i=`expr $i + 1`
39 done