All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] minios: fix block path
@ 2008-01-21 20:31 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2008-01-21 20:31 UTC (permalink / raw)
  To: xen-devel

set default block path.
remove unnecessary path head stripping.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>

diff -r eef0beac7fe2 -r c7ba34bfe585 extras/mini-os/blkfront.c
--- a/extras/mini-os/blkfront.c	Mon Jan 21 11:32:53 2008 +0000
+++ b/extras/mini-os/blkfront.c	Mon Jan 21 16:45:16 2008 +0000
@@ -85,8 +85,8 @@ struct blkfront_dev *init_blkfront(char 
 
     struct 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];

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-21 20:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-21 20:31 [PATCH] minios: fix block path Samuel Thibault

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.