minios: fix block path
PATCH 1/1 minios: fix block path
set default block path.
remove unnecessary path head stripping.
Signed-off-by Samuel Thibault <[email protected]>
extras/mini-os/blkfront.c +2 -2
@@ -85,8 +85,8 @@ struct blkfront_dev *init_blkfront(charstruct blkfront_dev *dev; -ASSERT (!strncmp (nodename,"/local/domain/" ,14 )); - nodename =strchr (nodename +14 ,'/' ) +1 ; +if (!nodename) + nodename ="device/vbd/768" ;char path[strlen (nodename) +1 +10 +1 ];