* grub-core/disk/raid.c (insert_array): Don't add spurious members.
This commit is contained in:
parent
022d01b807
commit
190a011a8b
2 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
|
||||||
|
|
||||||
|
* grub-core/disk/raid.c (insert_array): Don't add spurious members.
|
||||||
|
|
||||||
2010-12-25 Shea Levy <shlevy>
|
2010-12-25 Shea Levy <shlevy>
|
||||||
|
|
||||||
* grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
|
* grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
|
||||||
|
|
|
@ -522,13 +522,15 @@ insert_array (grub_disk_t disk, struct grub_raid_array *new_array,
|
||||||
/* We found more members of the array than the array
|
/* We found more members of the array than the array
|
||||||
actually has according to its superblock. This shouldn't
|
actually has according to its superblock. This shouldn't
|
||||||
happen normally. */
|
happen normally. */
|
||||||
grub_dprintf ("raid", "array->nr_devs > array->total_devs (%d)?!?",
|
return grub_error (GRUB_ERR_BAD_DEVICE,
|
||||||
|
"superfluous RAID member (%d found)",
|
||||||
array->total_devs);
|
array->total_devs);
|
||||||
|
|
||||||
if (array->members[new_array->index].device != NULL)
|
if (array->members[new_array->index].device != NULL)
|
||||||
/* We found multiple devices with the same number. Again,
|
/* We found multiple devices with the same number. Again,
|
||||||
this shouldn't happen. */
|
this shouldn't happen. */
|
||||||
grub_dprintf ("raid", "Found two disks with the number %d?!?",
|
return grub_error (GRUB_ERR_BAD_DEVICE,
|
||||||
|
"found two disks with the number %d",
|
||||||
new_array->number);
|
new_array->number);
|
||||||
|
|
||||||
if (new_array->disk_size < array->disk_size)
|
if (new_array->disk_size < array->disk_size)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue