ia64/xen-unstable

changeset 19350:b4f3a52c359e

xend: fix regression in c/s 19330

attached patch fixes a regression in c/s 19330 which
prevents to start guests on a Linux Dom0.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Mar 12 15:40:52 2009 +0000 (2009-03-12)
parents 97f78142cd4c
children d4ad5dd4f411
files tools/python/xen/xend/image.py
line diff
     1.1 --- a/tools/python/xen/xend/image.py	Thu Mar 12 15:37:12 2009 +0000
     1.2 +++ b/tools/python/xen/xend/image.py	Thu Mar 12 15:40:52 2009 +0000
     1.3 @@ -232,7 +232,11 @@ class ImageHandler:
     1.4              # If we use a device model, the pipes for communication between
     1.5              # blktapctrl and ioemu must be present before the devices are 
     1.6              # created (blktapctrl must access them for new block devices)
     1.7 -            os.makedirs('/var/run/tap', 0755)
     1.8 +
     1.9 +            try:
    1.10 +                os.makedirs('/var/run/tap', 0755)
    1.11 +            except:
    1.12 +                pass
    1.13  
    1.14              try:
    1.15                  os.mkfifo('/var/run/tap/qemu-read-%d' % domid, 0600)