2008-02-08 Robert Millan <rmh@aybabtu.com>

* include/grub/raid.h (struct grub_raid_array): Change type of `device'
        to a grub_disk_t array.
        * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
        `device[x]'.
        (grub_raid_scan_device): Replace `device[x].name' accesses with
        `device[x]->name'.  Simplify initialization of `array->device[x]'.
This commit is contained in:
robertmh 2008-02-08 12:32:25 +00:00
parent 554f018744
commit 5626aee186
3 changed files with 20 additions and 19 deletions

View file

@ -37,11 +37,7 @@ struct grub_raid_array
char *name; /* That will be "md<number>". */
grub_uint64_t disk_size; /* Size of an individual disk, in 512 byte
sectors. */
struct
{
char *name; /* Name of the device */
grub_disk_t disk; /* The device itself. */
} device[32]; /* Array of total_devs devices. */
grub_disk_t device[32]; /* Array of total_devs devices. */
struct grub_raid_array *next;
};