mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-26 00:59:55 +00:00
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:
1 parent
554f018744
commit
5626aee186
3 files changed
+20
-19
No files matched your search
+1
-5
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user