ia64/xen-unstable

changeset 16828:623d668b3029

minios, blkfront: set default block path.
remove unnecessary path head stripping.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jan 22 09:46:15 2008 +0000 (2008-01-22)
parents 5f3c236d1711
children 80e177b12fd2
files extras/mini-os/blkfront.c
line diff
     1.1 --- a/extras/mini-os/blkfront.c	Tue Jan 22 09:45:54 2008 +0000
     1.2 +++ b/extras/mini-os/blkfront.c	Tue Jan 22 09:46:15 2008 +0000
     1.3 @@ -71,8 +71,8 @@ struct blkfront_dev *init_blkfront(char 
     1.4  
     1.5      struct blkfront_dev *dev;
     1.6  
     1.7 -    ASSERT(!strncmp(nodename, "/local/domain/", 14));
     1.8 -    nodename = strchr(nodename + 14, '/') + 1;
     1.9 +    if (!nodename)
    1.10 +        nodename = "device/vbd/768";
    1.11  
    1.12      char path[strlen(nodename) + 1 + 10 + 1];
    1.13