minios, blkfront: set default block path.

remove unnecessary path head stripping.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
This commit is contained in:
Keir Fraser committed 2008-01-22 09:46:15 +00:00
1 parent d6398adb03
commit e5445ffa54
1 file changed
+2 -2
+2 -2
View File
@@ -71,8 +71,8 @@ struct blkfront_dev *init_blkfront(char *nodename, uint64_t *sectors, unsigned *
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];
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.