direct-io.hg
changeset 7635:a4bff55d4a16
Diagnostic for hitting the nloopbacks limit. This is presumably the cause of
all the "two bridges don't work" bugs that have been reported (bug #381).
Consideration will be given to raising the default limit -- this is just a
diagnostic of the problem.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
all the "two bridges don't work" bugs that have been reported (bug #381).
Consideration will be given to raising the default limit -- this is just a
diagnostic of the problem.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
author | emellor@leeni.uk.xensource.com |
---|---|
date | Mon Nov 07 12:36:35 2005 +0100 (2005-11-07) |
parents | ecb5997f7b25 |
children | f392a8fc7494 |
files | tools/examples/network-bridge |
line diff
1.1 --- a/tools/examples/network-bridge Mon Nov 07 12:36:16 2005 +0100 1.2 +++ b/tools/examples/network-bridge Mon Nov 07 12:36:35 2005 +0100 1.3 @@ -195,11 +195,17 @@ op_start () { 1.4 return 1.5 fi 1.6 1.7 - create_bridge ${bridge} 1.8 + if ! ip link show 2>/dev/null | grep -q "^[0-9]*: ${vdev}"; then 1.9 + echo " 1.10 +Link $vdev is missing. 1.11 +This may be because you have reached the limit of the number of interfaces 1.12 +that the loopback driver supports. If the loopback driver is a module, you 1.13 +may raise this limit by passing it as a parameter (nloopbacks=<N>). 1.14 +" >&2 1.15 + exit 1 1.16 + fi 1.17 1.18 - if ! ip link show 2>/dev/null | grep -q "^[0-9]*: ${vdev}"; then 1.19 - return 1.20 - fi 1.21 + create_bridge ${bridge} 1.22 1.23 if ip link show ${vdev} 2>/dev/null >/dev/null; then 1.24 mac=`ip link show ${netdev} | grep 'link\/ether' | sed -e 's/.*ether \(..:..:..:..:..:..\).*/\1/'`