direct-io.hg

changeset 6816:9c9a3bb878c2

merge?
author cl349@firebug.cl.cam.ac.uk
date Wed Sep 14 17:06:37 2005 +0000 (2005-09-14)
parents 541a3239f352 810039218827
children 1184286a2ee6 eb6fbb3d0a7b
files docs/misc/sedf_scheduler_mini-HOWTO.txt tools/examples/network-bridge tools/libxc/xc_private.c tools/python/xen/xm/main.py
line diff
     2.1 --- a/tools/examples/network-bridge	Wed Sep 14 17:06:25 2005 +0000
     2.2 +++ b/tools/examples/network-bridge	Wed Sep 14 17:06:37 2005 +0000
     2.3 @@ -222,27 +222,31 @@ op_stop () {
     2.4          return
     2.5      fi
     2.6  
     2.7 -    brctl delif ${bridge} ${netdev}
     2.8 +    if ifconfig peth0 2>/dev/null | grep -q peth0 ; then
     2.9  
    2.10 -    if ifconfig veth0 2>/dev/null | grep -q veth0 ; then
    2.11 -        brctl delif ${bridge} vif0.0
    2.12          ifconfig vif0.0 down
    2.13 -        mac=`ifconfig veth0 | grep HWadd | sed -e 's/.*\(..:..:..:..:..:..\).*/\1/'`
    2.14 -        ifconfig ${netdev} down
    2.15 -        ifconfig ${netdev} hw ether ${mac}
    2.16 -        ifconfig ${netdev} arp up
    2.17 -        transfer_addrs veth0 ${netdev}
    2.18 -        transfer_routes veth0 ${netdev}
    2.19 -        del_addrs veth0
    2.20 -        ifconfig veth0 -arp down
    2.21 -        ifconfig veth0 hw ether 00:00:00:00:00:00
    2.22 +        mac=`ifconfig eth0 | grep HWadd | \
    2.23 +            sed -e 's/.*\(..:..:..:..:..:..\).*/\1/'`
    2.24 +        ifconfig ${netdev} 0.0.0.0 down
    2.25 +        ifconfig ${netdev} hw ether fe:ff:ff:ff:ff:ff
    2.26 +
    2.27 +        ifconfig p${netdev} down
    2.28 +        ifconfig p${netdev} hw ether ${mac} arp 
    2.29 +        brctl delif ${bridge} p${netdev}
    2.30 +
    2.31 +        ip link set eth0 name veth0
    2.32 +        ip link set peth0 name eth0
    2.33 +        ifconfig ${bridge} down
    2.34 +        brctl delbr ${bridge}
    2.35 +        ifup eth0
    2.36 +
    2.37      else
    2.38          transfer_routes ${bridge} ${netdev}
    2.39      fi
    2.40  }
    2.41  
    2.42  case ${OP} in
    2.43 -  start)
    2.44 +    start)
    2.45          op_start
    2.46          ;;
    2.47      
     3.1 --- a/tools/libxc/xc_private.c	Wed Sep 14 17:06:25 2005 +0000
     3.2 +++ b/tools/libxc/xc_private.c	Wed Sep 14 17:06:37 2005 +0000
     3.3 @@ -456,14 +456,14 @@ unsigned long xc_make_page_below_4G(
     3.4      unsigned long new_mfn;
     3.5  
     3.6      if ( xc_domain_memory_decrease_reservation( 
     3.7 -	xc_handle, domid, 1, 0, &mfn) != 1 )
     3.8 +	xc_handle, domid, 1, 0, &mfn) != 0 )
     3.9      {
    3.10  	fprintf(stderr,"xc_make_page_below_4G decrease failed. mfn=%lx\n",mfn);
    3.11  	return 0;
    3.12      }
    3.13  
    3.14      if ( xc_domain_memory_increase_reservation(
    3.15 -        xc_handle, domid, 1, 0, 32, &new_mfn) != 1 )
    3.16 +        xc_handle, domid, 1, 0, 32, &new_mfn) != 0 )
    3.17      {
    3.18  	fprintf(stderr,"xc_make_page_below_4G increase failed. mfn=%lx\n",mfn);
    3.19  	return 0;