* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
real_sb->size is zero (e.g. RAID-0), get the disk size from real_sb->data_size instead. Fixes Ubuntu bug #743136.
This commit is contained in:
parent
35e5f84c18
commit
b4db4f39f0
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2011-03-29 Colin Watson <cjwatson@ubuntu.com>
|
||||
|
||||
* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
|
||||
real_sb->size is zero (e.g. RAID-0), get the disk size from
|
||||
real_sb->data_size instead.
|
||||
Fixes Ubuntu bug #743136.
|
||||
|
||||
2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
|
||||
|
|
|
@ -192,7 +192,10 @@ grub_mdraid_detect (grub_disk_t disk, struct grub_raid_array *array,
|
|||
array->level = grub_le_to_cpu32 (real_sb->level);
|
||||
array->layout = grub_le_to_cpu32 (real_sb->layout);
|
||||
array->total_devs = grub_le_to_cpu32 (real_sb->raid_disks);
|
||||
array->disk_size = grub_le_to_cpu64 (real_sb->size);
|
||||
if (real_sb->size)
|
||||
array->disk_size = grub_le_to_cpu64 (real_sb->size);
|
||||
else
|
||||
array->disk_size = grub_le_to_cpu64 (real_sb->data_size);
|
||||
array->chunk_size = grub_le_to_cpu32 (real_sb->chunksize);
|
||||
|
||||
if (grub_le_to_cpu32 (real_sb->dev_number) >=
|
||||
|
|
Loading…
Reference in a new issue