2009-11-16 Felix Zielcke <fzielcke@z-51.de>

* disk/mdraid_linux.c: Fix the unsupported RAID version error
	with metadata 1.x.
This commit is contained in:
Felix Zielcke 2009-11-16 21:46:43 +01:00
parent b870d7acfe
commit 4e962809b5
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2009-11-16 Felix Zielcke <fzielcke@z-51.de>
* disk/mdraid_linux.c: Fix the unsupported RAID version error
with metadata 1.x.
2009-11-06 Felix Zielcke <fzielcke@z-51.de> 2009-11-06 Felix Zielcke <fzielcke@z-51.de>
* disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL. * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.

View file

@ -346,9 +346,9 @@ superblock_0_90:
if (sb_1x->level != 0 && sb_1x->level != 1 && sb_1x->level != 4 && if (sb_1x->level != 0 && sb_1x->level != 1 && sb_1x->level != 4 &&
sb_1x->level != 5 && sb_1x->level != 6 && sb_1x->level != 10) sb_1x->level != 5 && sb_1x->level != 6 && sb_1x->level != 10)
{ {
grub_free (sb_1x);
return grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET, return grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
"Unsupported RAID level: %d", sb.level); "Unsupported RAID level: %d", sb_1x->level);
grub_free (sb_1x);
} }
/* 1.x superblocks don't have a fixed size on disk. So we have to /* 1.x superblocks don't have a fixed size on disk. So we have to
read it again now that we now the max device count. */ read it again now that we now the max device count. */