ia64/xen-unstable

view tools/misc/xen-mkdevnodes @ 811:b644fab116b4

bitkeeper revision 1.500 (3f86be35Q1ywfgRyq1VKkvPUP_JZ_A)

xi_vif_params.c:
new file
dev.c, vif.h, network.h, network.c, xen_read_console.c, Makefile:
Credit-based network scheduling.
author kaf24@scramble.cl.cam.ac.uk
date Fri Oct 10 14:12:05 2003 +0000 (2003-10-10)
parents f6f2a326ccaa
children f8c20f68e4d5
line source
1 #! /bin/bash
3 BASE=${1:?"base directory missing (eg. /dev)"}
5 rm -f ${BASE}/xvd[abcdefghijklmnop]*
7 # XLVIRT is 16 devices of 15 partitions
9 LETTERS="a b c d e f g h i j k l m n o p"
10 PARTITIONS="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15"
12 j=0
13 for l in ${LETTERS}; do
14 mknod ${BASE}/xvd${l} b 125 ${j}
15 for i in ${PARTITIONS}; do
16 mknod ${BASE}/xvd${l}${i} b 125 $(($i+$j))
17 done
18 j=$(($j+16))
19 done