Am 2010-11-01 23:11, schrieb Robert Millan:
I backported the patch, please can you test this?
i had some simple compilation errors:
../../disk/mdraid_linux.c:257: error: request for member ‘this_disk’ in
something not a structure or union
fixed it:
--- disk/mdraid_linux.c-old 2010-11-02 02:10:23.000000000 +0100
+++ disk/mdraid_linux.c 2010-11-02 02:13:51.000000000 +0100
@@ -255,5 +255,5 @@
return grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
"unsupported RAID level: %d", sb->level);
- if (sb.this_disk.number == 0xffff || sb.this_disk.number == 0xfffe)
+ if (sb->this_disk.number == 0xffff || sb->this_disk.number == 0xfffe)
return grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
"spares aren't implemented");
the resulting binaries seem to work fine:
r...@sow:~# for array in /boot / /mnt; do echo -e "\n testing:
$array"; for target in fs drive device abstraction; do
/usr/sbin/grub-probe -t $target $array; done ; done
testing: /boot
ext2
(md/boot)
/dev/md127
raid mdraid
testing: /
ext2
(md/root)
/dev/md125
raid mdraid
testing: /mnt
ext2
(md0)
/dev/md0
raid mdraid
thanks for this effort!
martin
--- disk/mdraid_linux.c-old 2010-11-02 02:10:23.000000000 +0100
+++ disk/mdraid_linux.c 2010-11-02 02:13:51.000000000 +0100
@@ -255,5 +255,5 @@
return grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
"unsupported RAID level: %d", sb->level);
- if (sb.this_disk.number == 0xffff || sb.this_disk.number == 0xfffe)
+ if (sb->this_disk.number == 0xffff || sb->this_disk.number == 0xfffe)
return grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
"spares aren't implemented");