[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Add support for /dev/md/N style mdraid devices
From: |
Felix Zielcke |
Subject: |
[PATCH] Add support for /dev/md/N style mdraid devices |
Date: |
Wed, 30 Jul 2008 21:11:22 +0200 |
Here's a patch to add support for the /dev/md/N form of mdraid devices.
2008-07-30 Felix Zielcke <address@hidden>
* util/getroot.c: Add support for /dev/md/N style mdraid devices.
Index: util/getroot.c
===================================================================
--- util/getroot.c (Revision 1753)
+++ util/getroot.c (Arbeitskopie)
@@ -460,6 +460,12 @@
memcpy (grub_dev, os_dev + 5, 7);
grub_dev[7] = '\0';
}
+ else if (os_dev[7] == '/' && os_dev[8] >= '0' && os_dev[8] <= '9')
+ {
+ memcpy (grub_dev, os_dev + 5, 2);
+ memcpy (grub_dev + 2, os_dev + 8, 5);
+ grub_dev[7] = '\0';
+ }
else
grub_util_error ("Unknown kind of RAID device `%s'", os_dev);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Add support for /dev/md/N style mdraid devices,
Felix Zielcke <=